Setup Ant
- Download latest stable zip file from http://ant.apache.org/bindownload.cgi
- Unzip downloaded file into a directory
- Setup Environment Variables Define ANT_HOME to be the location where Ant was unzipped.
- Define JAVA_HOME to be the location where the JDK is installed.
- Add %ANT_HOME%\bin to the PATH
Ant Project Help
ant -projecthelp
will list descriptions and targets for a build file.
Ant Command Line
ant [options] [target-names]
- runs targets with specified names, preceded by targets on which they depend
- can specify multiple target names separated by spaces
- omit target-name to run the default target
-D option specifies a property that can be used by targets and tasks.
e.g. -Dproperty-name=property-value
ant -help
lists other command line options
No comments:
Post a Comment
Note: only a member of this blog may post a comment.