ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Stockall <stock...@magma.ca>
Subject Re: modify classpath for a following compile ..
Date Tue, 06 May 2003 21:49:14 GMT
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 <stockall@magma.ca>


Mime
View raw message