ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Castrianni <>
Subject RE: appending to classpath
Date Sun, 26 Oct 2008 05:13:01 GMT
You are almost correct.  Just change your nested classpath element to a path element.

<pathelement path="blahblah"/>
<path refid="myid"/>

Shawn Castrianni

-----Original Message-----
From: Brendan Miller []
Sent: Saturday, October 25, 2008 11:49 PM
To: Ant Users List
Subject: appending to classpath

I have a <path id="myid"> ... </path>

that I use as a class path via refid="myid" for a couple of tasks.

For one task I need to add a couple of path elements to the path
before passing it to my task.

So I have something like

<javac> ...

<pathelement path="blahblah" />

<!-- this is more or less what I *want* to do, but ant rejects this -->

<classpath refid="myid">


So, basically, I'm trying to add to the task before passing it in. How
do I do this in ant?


To unsubscribe, e-mail:
For additional commands, e-mail:

This e-mail, including any attached files, may contain confidential and privileged information
for the sole use of the intended recipient.  Any review, use, distribution, or disclosure
by others is strictly prohibited.  If you are not the intended recipient (or authorized to
receive information for the intended recipient), please contact the sender by reply e-mail
and delete all copies of this message.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message