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 <[EMAIL PROTECTED]>

Reply via email to