org.jenkinsci.plugins.fstrigger.triggers
Class FolderContentTrigger

java.lang.Object
  extended by hudson.triggers.Trigger<hudson.model.BuildableItem>
      extended by org.jenkinsci.plugins.fstrigger.triggers.AbstractTrigger
          extended by org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.triggers.Trigger<?>>

public class FolderContentTrigger
extends AbstractTrigger

Author:
Gregory Boissinot

Nested Class Summary
static class FolderContentTrigger.FolderContentTriggerDescriptor
           
 
Nested classes/interfaces inherited from class org.jenkinsci.plugins.fstrigger.triggers.AbstractTrigger
AbstractTrigger.Runner
 
Nested classes/interfaces inherited from class hudson.triggers.Trigger
hudson.triggers.Trigger.Cron
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.triggers.Trigger
job, spec, tabs, timer
 
Constructor Summary
FolderContentTrigger(String cronTabSpec, String path, String includes, String excludes)
           
 
Method Summary
 boolean checkIfModified(FSTriggerLog log)
          Checks if the new folder Content has been modified The date time and the content file are used.
 String getCause()
           
 FolderContentTrigger.FolderContentTriggerDescriptor getDescriptor()
           
 String getExcludes()
           
 String getIncludes()
           
 String getPath()
           
 Collection<? extends hudson.model.Action> getProjectActions()
           
 void run()
           
 void start(hudson.model.BuildableItem project, boolean newInstance)
           
 
Methods inherited from class org.jenkinsci.plugins.fstrigger.triggers.AbstractTrigger
getLogFile
 
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getProjectAction, getSpec, init, readResolve, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FolderContentTrigger

@DataBoundConstructor
public FolderContentTrigger(String cronTabSpec,
                                                 String path,
                                                 String includes,
                                                 String excludes)
                     throws antlr.ANTLRException
Throws:
antlr.ANTLRException
Method Detail

getPath

public String getPath()

getIncludes

public String getIncludes()

getExcludes

public String getExcludes()

getCause

public String getCause()
Specified by:
getCause in class AbstractTrigger

checkIfModified

public boolean checkIfModified(FSTriggerLog log)
                        throws FSTriggerException
Description copied from class: AbstractTrigger
Checks if the new folder Content has been modified The date time and the content file are used.

Specified by:
checkIfModified in class AbstractTrigger
Returns:
true if the new folder content has been modifier
Throws:
FSTriggerException

start

public void start(hudson.model.BuildableItem project,
                  boolean newInstance)
Overrides:
start in class hudson.triggers.Trigger<hudson.model.BuildableItem>

run

public void run()
Overrides:
run in class hudson.triggers.Trigger<hudson.model.BuildableItem>

getProjectActions

public Collection<? extends hudson.model.Action> getProjectActions()
Overrides:
getProjectActions in class hudson.triggers.Trigger<hudson.model.BuildableItem>

getDescriptor

public FolderContentTrigger.FolderContentTriggerDescriptor getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.triggers.Trigger<?>>
Overrides:
getDescriptor in class hudson.triggers.Trigger<hudson.model.BuildableItem>


Copyright © 2004-2011. All Rights Reserved.