From: Hans Deragon [mailto:[EMAIL PROTECTED] Dominique Devienne wrote:
<javac>'s <src> tag is a path to find source dirs, which are fully scanned for Java source files. So it's probably not what you want.
Assuming you have a single source dir, which contains some packages which the string 'old' somewhere in their name, you want to use a simple <fileset> excluding **/*old*/**. --DD
Thanks for the suggestion, but it does not work. <src> does not
accept a
fileset:
Not inside <src>. Something like that (using <javac> implicit fileset):
<javac srcdir="java source dir" ...> <exclude name="**/*old*/**" /> </javac>
--DD
Thanks, you nailed it. For archives purposes, I will explain what I do:
<javac debug="on" verbose="on" srcdir="${src}" destdir="${build}">
<include name="**/*.java"/>
<exclude name="**/org/**"/>
<exclude name="**/*.org*/**"/>
<exclude name="**/old/**"/>
<exclude name="**/*.old*/**"/>
<exclude name="**/obs*/**"/>
<exclude name="**/*.obs*/**"/>
</javac>If no "include" directive is present, all files are selected, including .txt files. With the include directive, only *.java files are included. Then from that list, I exclude a bunch of files which directories are those I do not want to be compile, like old, obsolete and original directories.
Best regards, Hans Deragon -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.biz http://facil.qc.ca (Promotion du libre) mailto://[EMAIL PROTECTED] http://autopoweroff.sourceforge.net (Logiciel)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
