No, it is not common at all, to say the least, to try something like this.
Build files are overwhelmingly at the top level of a project, or in a
top-level subdirectory for build-related stuff. I cannot think of any reason
to organize a project like you propose.

If the intent was to compartmentalize compilation of different independent
piece of Java code, there are several other Ant idioms to achieve that:

1)
build.xml
src/java/piece1/com/foo/piece1  <java srcdir="src/java/piece1"/>
src/java/piece2/com/foo/piece2  <java srcdir="src/java/piece2"/>

2)
build.xml
piece1/build.xml
piece1/src/java/com/foo/piece1  <java srcdir="src/java"/>
piece2/build.xml
piece2/src/java/com/foo/piece2  <java srcdir="src/java"/>

--DD

-----Original Message-----
From: Ray Tayek [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 4:10 AM
To: [EMAIL PROTECTED]
Subject: build file in package (ant and netbeans)

hi, trying to use ant to build some java files in com.foo.package. but i 
would like to have the build.xml file in .../com/foo/package. so it looks 
like the path to the source has to be ../../../ - which will include all 
kinds of things that i do not want.

i suppose one could do this with includes or excludes or filesets, but i 
was wondering if any of you have found an idiom for doing this?

thanks

---
ray tayek http://home.attbi.com/~rtayek/ actively seeking telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to