Ok, you have read the manual "This task forms an implicit FileSet and supports most attributes of <fileset> (dir becomes srcdir) as well as the nested <include>, <exclude> and <patternset> elements."
But then - directly the next paragraph: "<javac>'s srcdir, classpath, sourcepath, bootclasspath, and extdirs attributes are path-like structures and can also be set via nested <src> (note the different name!), <classpath>, <sourcepath>, <bootclasspath> and <extdirs> elements, respectively." And in the examples: is the same as the previous example, with the addition of a second source path, defined by the property src2. This can also be represented using nested <src> elements as follows: <javac destdir="${build}" classpath="xyz.jar" debug="on"> <src path="${src}"/> <src path="${src2}"/> <include name="mypackage/p1/**"/> <include name="mypackage/p2/**"/> <exclude name="mypackage/p1/testpackage/**"/> </javac> Jan >-----Ursprüngliche Nachricht----- >Von: Dean Schulze [mailto:dean_w_schu...@yahoo.com] >Gesendet: Dienstag, 26. Januar 2010 20:45 >An: user@ant.apache.org >Betreff: Use the same <fileset> in multiple <javac> tasks > >Instead of repeating <include .../> and <exclude ... /> tags I >want to declare a <fileset> once and use it in multiple <javac >.../> tasks. > >The problem is that <javac ...> contains an implicit fileset >and does not allow the <fileset > tag inside of it. > >Is there a way to include an external fileset in <javac /> ? > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org