How to jar java source files from different (sub-)directories?
Posted
by Holger
on Stack Overflow
See other posts from Stack Overflow
or by Holger
Published on 2010-05-08T12:42:50Z
Indexed on
2010/05/08
12:48 UTC
Read the original article
Hit count: 241
ant
Consider the following directory structure:
./source/com/mypackage/../A.java
./extensions/extension1/source/com/mypackage/../T.java
./extensions/extension2/source/com/mypackage/../U.java
...
./extensions/extensionN/source/com/mypackage/../Z.java
I want to produce a source jar with the following contents:
com/mypackage/../A.java
com/mypackage/../T.java
com/mypackage/../U.java
...
com/mypackage/../Z.java
I know I could use a fileset for each source directory. But is there an easy solution using ANT without having to refer to all extensions explicitly?
© Stack Overflow or respective owner