net.sourceforge.cruisecontrol.sourcecontrols
Class Maven2SnapshotDependency

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.sourcecontrols.Maven2SnapshotDependency
All Implemented Interfaces:
java.io.Serializable, SourceControl

public class Maven2SnapshotDependency
extends java.lang.Object
implements SourceControl

Checks snapshot dependencies listed in a Maven2 pom against the local repositorty. Date: Feb 8, 2006 Time: 9:15:47 PM

Author:
Dan Rollo
See Also:
Serialized Form

Constructor Summary
Maven2SnapshotDependency()
           
 
Method Summary
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          The quiet period is ignored.
 java.util.Map getProperties()
          Any properties that have been set in this sourcecontrol.
 void setPomFile(java.lang.String s)
          Set the root folder of the directories that we are going to scan
 void setProperty(java.lang.String property)
           
 void setUser(java.lang.String s)
          Set the username listed with changes found in binary dependencies
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Maven2SnapshotDependency

public Maven2SnapshotDependency()
Method Detail

setPomFile

public void setPomFile(java.lang.String s)
Set the root folder of the directories that we are going to scan


setUser

public void setUser(java.lang.String s)
Set the username listed with changes found in binary dependencies


setProperty

public void setProperty(java.lang.String property)

getProperties

public java.util.Map getProperties()
Description copied from interface: SourceControl
Any properties that have been set in this sourcecontrol. Will be passed onto the Builder, which may then pass the properties to the underlying build implementation. For example, the Ant builder will define these properties so that the underlying Ant script can use them.

Specified by:
getProperties in interface SourceControl

validate

public void validate()
              throws CruiseControlException
Specified by:
validate in interface SourceControl
Throws:
CruiseControlException

getModifications

public java.util.List getModifications(java.util.Date lastBuild,
                                       java.util.Date now)
The quiet period is ignored. All dependencies changed since the last build trigger a modification.

Specified by:
getModifications in interface SourceControl
Parameters:
lastBuild - date of last build
now - IGNORED
Returns:
List of Modification objects