Install ant in linux :
a. Download apache ant latest release always : http://ant.apache.org/bindownload.cgi
b. Extract the zip folder or .tar.gz
c. Set environment variable for ANT_HOME and JAVA_HOME in .bashrc file. Add ANT_HOME/bin into PATH Env variable.
i) which java (This command in terminal tells you the java installed path)
export JAVA_HOME="/usr/lib/jvm/java-6-openjdk"
export ANT_HOME="/home/gubendran/java/apache-ant-1.8.3"
export PATH="${PATH}:${ANT_HOME}/bin"
d. Execute the .bashrc file. source ~/.bashrc
e. Just Read manual from apache (Click tutorial to do Hello World using Apache Ant. Its simple and excellent : http://ant.apache.org/manual/)
f. Create build.xml file
g. Run the ant script using target name : ant clean compile jar run
a. Download apache ant latest release always : http://ant.apache.org/bindownload.cgi
b. Extract the zip folder or .tar.gz
c. Set environment variable for ANT_HOME and JAVA_HOME in .bashrc file. Add ANT_HOME/bin into PATH Env variable.
i) which java (This command in terminal tells you the java installed path)
export JAVA_HOME="/usr/lib/jvm/java-6-openjdk"
export ANT_HOME="/home/gubendran/java/apache-ant-1.8.3"
export PATH="${PATH}:${ANT_HOME}/bin"
d. Execute the .bashrc file. source ~/.bashrc
e. Just Read manual from apache (Click tutorial to do Hello World using Apache Ant. Its simple and excellent : http://ant.apache.org/manual/)
f. Create build.xml file
g. Run the ant script using target name : ant clean compile jar run
No comments :
Post a Comment