Hi All,
Here some guidance to test ant. It's based on a unix like system. So steps
for windows are similar to the ones below, I guess you can work it out based
upon this.
Just donload the jre or jdk from sun, if you don't have it already:
http://java.sun.com/j2se/1.3/
untar it to your preffered dir i.e.: /opt/jdk.
Then go get ant from
http://jakarta.apache.org/builds/jakarta-ant/release/v1.4/bin/
Finally setup some env vars in your .bashrc (or where you do this kind of
stuff):
JAVA_HOME=/opt/jdk
ANT_HOME=/opt/ant
PATH="$PATH:/opt/jdk/bin:/opt/ant/bin"
That's it. Ah a note. The archives extract to subdirs with versionnumber
(i.e. jakarta-ant-1.4). I propose to untar it to /opt "as is" and make
symlinks (ln -s /opt/jakarta-ant-1.4 ant, etc).
You can call ant by typing "ant". It looks for a build file named build.xml
in the current directory and executes the stuff in it.
You also can invoke targets like in make: ant all, ant site, ant core,
whatever you've defined.
A good html based documentation can be found in /opt/ant/docs/manual.
I've attached a build.xml in my last mail. The originating package of this
file is EIRC (www.sourceforge.net/projects/eirc, you need also the eirc-lib
package), that compiles out of the box (but since it's java you need the
jdk).
A basic binarycloud conform build.xml will come soon, as I play around with
it currently.
Andi
|