You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Harsha Kalidindi <Ha...@morganstanley.com> on 2003/05/06 23:27:57 UTC
modify classpath for a following compile ..
Hi:
I have question about Tasks and setting Classpath ..
<project>
...
<target>
...
<mytask>
...
</mytask>
<javac .../>
</target>
</project>
I am implementing mytask. Can I change/modify the classpath in
mytask's execute so that when javac runs, the new classpath is picked up?
Thanks,
Harsha
Harsha.Kalidindi@MorganStanley.com 212.762.4165
This communication is intended for the addressee(s) and may contain
confidential and legally privileged information. We do not waive
confidentiality or privilege by mis-transmission. If you have received this
communication in error, any use, dissemination, printing or copying is
strictly prohibited; please destroy all electronic and paper copies and
notify the sender immediately.
Re: modify classpath for a following compile ..
Posted by Harsha Kalidindi <Ha...@morganstanley.com>.
Jesse:
><javac> can use a reference to a <classpath> defined elsewhere in the
>project.
>
>In <mytask> you can build a org.apache.tools.ant.types.Path object and
>then add it to the project with Project.addReference(). Then your
><javac> target can use the reference.
Thanks. Works nicely.
Regards,
Harsha
This communication is intended for the addressee(s) and may contain
confidential and legally privileged information. We do not waive
confidentiality or privilege by mis-transmission. If you have received this
communication in error, any use, dissemination, printing or copying is
strictly prohibited; please destroy all electronic and paper copies and
notify the sender immediately.
Re: modify classpath for a following compile ..
Posted by Jesse Stockall <st...@magma.ca>.
On Tue, 2003-05-06 at 17:27, Harsha Kalidindi wrote:
> Hi:
>
> I have question about Tasks and setting Classpath ..
>
>
> <project>
> ...
> <target>
> ...
> <mytask>
> ...
> </mytask>
> <javac .../>
> </target>
>
> </project>
>
>
> I am implementing mytask. Can I change/modify the classpath in
> mytask's execute so that when javac runs, the new classpath is picked up?
>
<javac> can use a reference to a <classpath> defined elsewhere in the
project.
In <mytask> you can build a org.apache.tools.ant.types.Path object and
then add it to the project with Project.addReference(). Then your
<javac> target can use the reference.
--
Jesse Stockall <st...@magma.ca>