troubleshooting Question

Write build.xml's for Ant

Avatar of vlg
vlg asked on
JavaJava EE
5 Comments1 Solution1365 ViewsLast Modified:
Hello all,

I have a directory structure like so:
dir 'a' at the top level

in a, we have dirs b, c, d, and e

dir b just has some sql scripts, no java code.

dirs c & d  each have a subdir called fred, and then inside fred another subdir called c1 or d1, depending if it's dir c or d above.  In c1 there is, & c1.txt, and dir d1 has,, and d1.txt.

dir e is empty

The points are for build.xml scripts which go in dir a, c1, and d1 and allow this:
I want to be able to run ant in c1 or d1 individually, and have it build whatever .java files it finds in there, and make a .jar out of them, and put the jar file in dir e.
I also want to be able to run ant at the top level dir, a, and have it look down thru all the dirs and make the separate jar files which go in dir e.

If this question is ridiculously hard, just let me know and I'll delete it - I'm out of my depth here.



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 5 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 5 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