Ant Properties & References

These properties and references are available to Ant after executing the mx:init task.

Project Artifact Properties

groupId ${project.groupId}
artifactId ${project.artifactId}
version ${project.version}

Project Metadata Properties

name ${project.name}
description ${project.description}
organization ${project.organization}
organizationUrl ${project.organizationUrl}
issuesUrl ${project.issuesUrl}
forumUrl ${project.forumUrl}
blogUrl ${project.blogUrl}
socialNetworkUrl${project.socialNetworkUrl}
mavenUrl ${project.mavenUrl}
scmUrl ${project.scmUrl}
ciUrl ${project.ciUrl}
url ${project.url}
inceptionYear ${project.inceptionYear}
releaseVersion ${project.releaseVersion}
releaseDate ${project.releaseDate}
mainclass ${project.mainclass}

Build Transient Properties

buildDate ${project.buildDate}
buildTimestamp${project.buildTimestamp}

Build Directory Properties

outputDirectory ${project.outputDirectory}
compileOutputDirectory ${project.compileOutputDirectory}
testOutputDirectory ${project.testOutputDirectory}
targetDirectory ${project.targetDirectory}
reportTargetDirectory ${project.reportTargetDirectory}
javadocTargetDirectory ${project.javadocTargetDirectory}
siteSourceDirectory ${project.siteSourceDirectory}
siteTargetDirectory ${project.siteTargetDirectory}

Build Path Properties

compileSourcePath ${project.compileSourcePath}
testSourcePath ${project.testSourcePath}
Output directories including linked modules
compileOutputPath ${project.compileOutputPath}
testOutputPath ${project.testOutputPath}
Paths for scoped resources
compileResourcePath ${project.compileResourcePath}
runtimeResourcePath ${project.runtimeResourcePath}
testResourcePath ${project.testResourcePath}
Paths for scoped dependencies
compileDependencyPath ${project.compileDependencyPath}
runtimeDependencyPath ${project.runtimeDependencyPath}
testDependencyPath ${project.testDependencyPath}
Paths for output directories and scoped dependencies
compileClasspath ${project.compileClasspath}
runtimeClasspath ${project.runtimeClasspath}
testClasspath ${project.testClasspath}
buildClasspath ${project.buildClasspath}

Build Path References

May only work properly if Moxie is directly included on the Ant classpath.

compileSourcePath ${reference.compileSourcePath}
testSourcePath ${reference.testSourcePath}
compileClasspath ${reference.compileClasspath}
runtimeClasspath ${reference.runtimeClasspath}
testClasspath ${reference.testClasspath}
buildClasspath ${reference.buildClasspath}