I need help with ant script. I have a build.sh and go.sh that I created and would like to use ant instead,build compiles
the code and go runs it
if [ -d "bin" ]; then
echo "removing old bin"
rm -rf bin
echo "creating new bin"
echo "compiling java"
javac -d ./bin -classpath ./etc:./lib/log4j-1.2.9.jar:./lib/log4j.properties src/com/sigma/amster/matcher/DomParser.java
echo "copying contents of etc to bin"
cp etc/* bin
go.sh- this runs the code:
java -classpath ./lib/log4j-1.2.9.jar:./lib/log4j.properties:bin:etc com.sigma.amster.matcher.matchData1,where matchData1.java
I am trying to use ant for the above,compile the code and then run it. I have not used ant before and hence need some help.
Thanks in advance