troubleshooting Question

Ant Script Help

Avatar of ams7503
ams7503 asked on
Java
9 Comments1 Solution311 ViewsLast Modified:
Hi ;

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
build.sh:
 if [ -d "bin" ]; then
        echo "removing old bin"
        rm -rf bin
fi
echo "creating new bin"
mkdir 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
 src/com/sigma/amster/matcher/documentRecord.java src/com/sigma/amster/matcher/matchData1.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
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros