ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William E. Kempf" <>
Subject Re: Building a Classpath
Date Mon, 22 Jul 2002 20:28:11 GMT
----- Original Message -----
From: "Dominique Devienne" <>
To: "'Ant Users List'" <>
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}"
      <classpath refid="foo"/>
      <include name="**/*.java"/>

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:   <>
For additional commands, e-mail: <>

View raw message