|
AntConfiguration
Ant configuration for Vulcan.
IntroductionThis plugin requires a valid installation of Apache Ant. Once you've installed ant, you can configure Vulcan to point to the location where it was installed. All of the normal peculiarities of Ant apply when using it with Vulcan. For example, you still have to put the JUnit jar into $ANT_HOME/lib if you plan to execute JUnit tests. However, Vulcan executes Ant directly (instead of using ant.sh or ant.bat), so it is not necessary to modify them to return the exit code. Configuration
The last four properties, while optional, are intended to provide traceability between Vulcan build numbers, source repository revisions and your deliverables. You can inject these values into Jar manifests, properties files or anywhere else. For example: <target name="inject-version">
<echo file="docroot/WEB-INF/version.properties">version.build=${project.build.number}</echo>
<echo file="docroot/WEB-INF/version.properties" append="true">version.revision=${project.revision}</echo>
<echo file="docroot/WEB-INF/version.properties" append="true">version.tag=${project.tag}</echo>
</target>The Revision Number Property is intended for constructing ordinal version numbers. In other cases, the Revision Label Property may provide a better representation of the actual revision. |
Sign in to add a comment