----- Original Message -----
From: "Dominique Devienne" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Monday, July 22, 2002 2:43 PM
Subject: RE: Building a Classpath
> OK, I think I've got it this time:
>
> String idname = "myid";
> Path path = new Path(getProject(), classpath);
> getProject().addReference(idname, path);
>
> Let me know. --DD
Thanks. This has gotten me closer. The path appears to construct properly.
Problem is, the <javac> task is failing for classpath reasons. Here's
basically what I have in my ant script:
<target name="compile" depends="init">
<parseclasspath id="foo"/>
<javac destdir="${build.dir}"
debug="${build.debug}"
srcdir="${src.dir}">
<classpath refid="foo"/>
<include name="**/*.java"/>
</javac>
</target>
As a debugging aid I've created a custom Ant task that prints the elements
of a Path and added the following line after the <parseclasspath> above:
<printpath refid="foo"/>
This shows me all the classpath elements I'd expect to see. Any ideas on
why it doesn't appear to work in the <javac> task?
Bill Kempf
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>