Monday, December 17, 2012

Apache ANT Install


APACHE ANT INSTALL

Apache Ant is a software tool for automating software build processes. It is similar toMake but is implemented using the Java language, requires the Java platform, and is best suited to building Java projects.

INSTALL -ANT

After doing tar and gzip then start doing it

[subha@VF1 ant]$  export ANT_HOME=/home/subha/ant/apache-ant-1.8.0

[subha@VF1 ant]$ ls
[subha@VF1 ant]$ cd /usr/java/
[subha@VF1 java]$ ls
default  jdk1.6.0_16  latest
[subha@VF1 java]$ cd
[subha@VF1 ~]$ ls
ant                          apacheappserver  jboss
apache-ant-1.8.0-bin.tar.gz  apachewebserver  vijay

[subha@VF1 ~]$ export JAVA_HOME=/usr/java/jdk1.6.0_16/
[subha@VF1 ~]$ ls
[subha@VF1 ~]$ ant
-bash: ant: command not found

[subha@VF1 ~]$ export PATH=$PATH:/home/subha/ant/apache-ant-1.8.0/bin
[subha@VF1 ~]$ ant
Buildfile: build.xml does not exist!
Build failed

create build.xml in the bin directory and copy the below 5 lines in that build.xml

<project name=”MyProject” basedir=”.”>
<description>
simple example build file
</description>
</project>

[subha@VF1 bin]$ ant
it says BUILD SUCCESSFUL

No comments:

Post a Comment