| java.lang.Object net.sourceforge.cruisecontrol.sourcecontrols.MavenSnapshotDependency
MavenSnapshotDependency | public class MavenSnapshotDependency implements SourceControl(Code) | | Checks binary dependencies listed in a Maven project rather than in a
repository.
Modifications 20060626 (jarkko.viinamaki at removethis.tietoenator.com):
- made POM scanning namespace aware. Dependencies were not detected if project.xml
had schema definition in the project element
- added support for "ejb-client" dependency type
- added echo for detected snapshot dependencies
- added support for build.properties or other similiar properties file which contains
key=value tags to replace ${key} type strings in project.xml
Modifications 20060627
- fixed a bug in replaceVariables method
author Tim Shadel
|
getModifications | public List getModifications(Date lastBuild, Date now)(Code) | | The quiet period is ignored. All dependencies changed since the last
build trigger a modification.
Parameters: lastBuild - date of last build Parameters: now - IGNORED |
getProperties | public Map getProperties()(Code) | | |
getSnapshotFilenames | List getSnapshotFilenames(File mavenFile)(Code) | | Parse the Maven project file, and file names
|
replaceVariables | String replaceVariables(Properties p, String value)(Code) | | Replaces variables in a string defined as ${key}.
Values for variables are taken from given properties or System properties.
Replacement is recursive. If ${key} maps to a string which has other ${keyN} values,
those ${keyN} values are replaced also if there is a matching value for them.
|
setLocalRepository | public void setLocalRepository(String s)(Code) | | Set the path for the local Maven repository
|
setProjectFile | public void setProjectFile(String s)(Code) | | Set the root folder of the directories that we are going to scan
|
setPropertiesFile | public void setPropertiesFile(String s)(Code) | | Sets the .properties file which contains overriding tags for POM.
Default is build.properties
|
setUser | public void setUser(String s)(Code) | | Set the username listed with changes found in binary dependencies
|
|
|