J
Joshua Jones
The source structure looks like this:
-src
|--a
| |--com
| | |--blah
| | |--MyObj.java
|--b
|--com
|--blah
|--OtherObj.java
I can use the <javac> ant task to compile with a base directory of
"src", and all files will be compiled in src/a/com/blah and
src/b/com/blah.
I want to jar my class files up, but I want the base directory to be
"com", not "src", so that my jar file contains no references to source
folders "a" and "b", like so:
/com/blah/MyObj.class (originally with a parent folder of "a")
/com/blah/OtherObj.class (originally with a parent folder of "b")
However, the <jar> task requires a single base directory, and if I use
"src", then my jar file will look like:
/a/com/blah/MyObj.class
/b/com/blah/OtherObj.class
Is there some way to accomplish what I want without having to <copy>
all generated class files over to another directory and then using
<jar>?
-src
|--a
| |--com
| | |--blah
| | |--MyObj.java
|--b
|--com
|--blah
|--OtherObj.java
I can use the <javac> ant task to compile with a base directory of
"src", and all files will be compiled in src/a/com/blah and
src/b/com/blah.
I want to jar my class files up, but I want the base directory to be
"com", not "src", so that my jar file contains no references to source
folders "a" and "b", like so:
/com/blah/MyObj.class (originally with a parent folder of "a")
/com/blah/OtherObj.class (originally with a parent folder of "b")
However, the <jar> task requires a single base directory, and if I use
"src", then my jar file will look like:
/a/com/blah/MyObj.class
/b/com/blah/OtherObj.class
Is there some way to accomplish what I want without having to <copy>
all generated class files over to another directory and then using
<jar>?