ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William E. Kempf" <williamke...@hotmail.com>
Subject Re: Building a Classpath
Date Mon, 22 Jul 2002 20:28:11 GMT
----- Original Message -----
From: "Dominique Devienne" <DDevienne@lgc.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message