hudson.plugins.filesfoundtrigger
Class FilesFoundTrigger

java.lang.Object
  extended by hudson.triggers.Trigger<hudson.model.BuildableItem>
      extended by hudson.plugins.filesfoundtrigger.FilesFoundTrigger
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.triggers.Trigger<?>>

public final class FilesFoundTrigger
extends hudson.triggers.Trigger<hudson.model.BuildableItem>

Build trigger that schedules a build when certain files are found. These files are declared using Ant-style file patterns.

Author:
Steven G. Brown

Nested Class Summary
static class FilesFoundTrigger.ConverterImpl
          Converter implementation for XStream.
static class FilesFoundTrigger.DescriptorImpl
          Registers FilesFoundTrigger as a Trigger extension.
 
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
FilesFoundTrigger(java.lang.String spec, java.util.List<FilesFoundTriggerConfig> configs)
          Create a new FilesFoundTrigger.
 
Method Summary
 java.util.List<FilesFoundTriggerConfig> getConfigs()
          Get the list of configured file patterns.
 void run()
          
 java.lang.String toString()
          
 
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, init, readResolve, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilesFoundTrigger

@DataBoundConstructor
public FilesFoundTrigger(java.lang.String spec,
                                              java.util.List<FilesFoundTriggerConfig> configs)
                  throws antlr.ANTLRException
Create a new FilesFoundTrigger.

Parameters:
spec - crontab specification that defines how often to poll
configs - the list of configured file patterns
Throws:
antlr.ANTLRException - if unable to parse the crontab specification
Method Detail

getConfigs

public java.util.List<FilesFoundTriggerConfig> getConfigs()
Get the list of configured file patterns.

Returns:
a list of FilesFoundTriggerConfig

run

public void run()

Overrides:
run in class hudson.triggers.Trigger<hudson.model.BuildableItem>

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2004-2011. All Rights Reserved.