Thanks. I understand now Conor.
Question: Can I use a patternset I have predefined for use with javac?
Also, I couldn't get my patternsets to work with <jar> (parsed, but settings
ignore completely)
Note, the <jar> task states it supports all fileset attributes, and even
includes an example using a fileset. The <javac> task however does not
provide an example of a nest fileset, but also states it supports all
fileset attributes verbatim.
This is the error message I get:
+Target: compileProject2
+Task: javac
appserver-build.xml [132] Class org.apache.tools.ant.taskdefs.Javac doesn't
support the nested "fileset" element
My objective is to have a fileset for cleaning (works beautifully), and
using same for jar'ing, and javac'ing. Cod re-use!
T Master.
----- Original Message -----
From: "Conor MacNeill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 10, 2001 11:50 PM
Subject: Re: javac destdir problem
> Hi,
>
> ----- Original Message -----
> From: "T Master" <[EMAIL PROTECTED]>
> >
> > OK, Here is a problem/bug i've discovered. Makes sense, but then again
it
> > doesn't. I would prefer a modification.
> >
> > <javac destdir="${project.build.dir}"
> > debug="off"
> > verbose="false">
> > <classpath refid="project.class.path"/>
> > <src path="${project.src.dir}"/>
> > <include name="**/*.java"/>
> > </javac>
> >
> > That's my code. My java files have packages. the src.path property
> refers
> > to the correct package to compile.
> > Now Ant will check if the class files are in project.build.dir . If
> not,
> > the source files wll be compiled.
> >
> > The project.build.dir is the package space to put the class files in.
It
> > corresponds to the java package. Note: java files and class files
belong
> in
> > differernt root dirs.
> >
> >
>
> This behaviour is related to the FAQ entry
> http://jakarta.apache.org/ant/faq.html#always-recompiles
>
> The following all need to be set up
> 1. The destdir must be set to the root of your build area
> 2. The srcdir must be set to the root of your source area - your package
> space
> 3. If you want to control which files are passed to the compiler, use the
> includes - i.e. dont include "**/*.java", include something like
> include="org/apache/ant/**/*.java"
>