Once you set a reference or property, you can't really change it. My
suggestion is to use macros and pass your classpath as a parameter to
the macro. Take a look at the Macrodef task
<http://ant.apache.org/manual/CoreTasks/macrodef.html>, and take a
look how <element> is set. This is how you can pass your classpath to
a macro.

--
David Weintraub
[EMAIL PROTECTED]



On Sun, Oct 26, 2008 at 12:48 AM, Brendan Miller <[EMAIL PROTECTED]> wrote:
> 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> ...
>
> <classpath>
> <pathelement path="blahblah" />
>
> <!-- this is more or less what I *want* to do, but ant rejects this -->
>
> <classpath refid="myid">
>
> </classpath>
>
> So, basically, I'm trying to add to the task before passing it in. How
> do I do this in ant?
>
> Brendan
>
> ---------------------------------------------------------------------
> 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]

Reply via email to