troubleshooting Question

Ant Script Help

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

I need help with ant script. I have a and 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"
mkdir bin
echo "compiling java"
javac -d ./bin -classpath ./etc:./lib/log4j-1.2.9.jar:./lib/ src/com/sigma/amster/matcher/
 src/com/sigma/amster/matcher/ src/com/sigma/amster/matcher/
echo "copying contents of etc to bin"
cp etc/* bin this runs the code:
java -classpath ./lib/log4j-1.2.9.jar:./lib/ com.sigma.amster.matcher.matchData1,where

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

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
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