Use a <fileset>
http://ant.apache.org/manual/CoreTypes/fileset.html

Signature
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)
> I know the code got kind of jumbled, but if someone will just please
> have a look at this simple problem, I know it would be easily fixed
[quoted text clipped - 46 lines]
> > location="${java_dir}"/></classpath>
> > <classpath><pathelement
location="${project_dir}j2sdk1.4.1/lib/ext/AbsoluteLayout.jar"/></classpath>
> > <include name="com/"/>
> > </javac>
[quoted text clipped - 4 lines]
> > location="${java_dir}"/></classpath>
> > <classpath><pathelement
location="${project_dir}j2sdk1.4.1/lib/ext/AbsoluteLayout.jar"/></classpath>
> > <classpath><pathelement
> > location="${project_dir}j2sdk1.4.1/lib/ext/junit-ext.jar"/></classpath>
[quoted text clipped - 39 lines]
> >
> > </project
sowbug - 24 Jan 2004 02:50 GMT
Thanks for responding Tony, but the javac task doesn't support the
nested <fileset> element. Not even with the new version(1.6).
> Use a <fileset>
> http://ant.apache.org/manual/CoreTypes/fileset.html
Tony Morris - 26 Jan 2004 03:30 GMT
sorry, you're right.
Reading up on the javac task reveals the following:
excludes Comma- or space-separated list of files (may be specified
using wildcard patterns) that must be excluded; no files (except default
excludes) are excluded when omitted.
which means you can't use <excludes> for excluding files.
But the solution:
excludesfile The name of a file that contains a list of files to
exclude (may be specified using wildcard patterns).
is quite trivial.

Signature
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)
> Thanks for responding Tony, but the javac task doesn't support the
> nested <fileset> element. Not even with the new version(1.6).
>
> > Use a <fileset>
> > http://ant.apache.org/manual/CoreTypes/fileset.html