Isn't the nested <src> supposed to be a list of directories to use as
source paths, (and not a list of souce files to compile)?
Regarding **.java, I personally think the **/*.java syntax is clearer
and less prone to be confused with *.java visually.
And your exclude is only a hint to Ant, and Javac may overrule that
unless you also reset the sourcepath. Maybe not an issue in your case,
if it's code that doesn't compile on purpose ;-) --DD
On 7/27/06, Steve Loughran <[EMAIL PROTECTED]> wrote:
OK. I give up. how do you pass down a fileset by ref as the souce dir to
javac? src is a path ,and there is no srcref ID in the matching task.
I tried to use the fileset inside the src dir, but got told off for not
setting a srcdir attribute:
<target name="javac-refid">
<fileset id="source.files" dir="src">
<include name="org/antbook/**.java"/>
<exclude name="org/antbook/broken/*.java"/>
</fileset>
<javac>
<src >
<fileset refid="source.files" />
</src>
</javac>
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]