[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: External tool - running Ant

To pass the project_loc location to the Ant build you will need to do:
-DprojectLoc=${project_loc} mytarget

The Eclipse variable ${project_loc} is "expanded" and passed through to Ant.
It is processing it as a target name.

The Eclipse variables are not Ant specific.

HTH
Darins

"John Buntz" <jbuntz@xxxxxxxxxxx> wrote in message 
news:d77bjc$t0h$1@xxxxxxxxxxxxxxxxxxx
>I am new to Eclipse and Ant, so bear with me here. I am trying to run an 
>Ant script and I want to pass the project workspace to the Ant script.
>
> What do I put in the Arguments:  I tried
>
> mytarget ${project_loc}
>
> When I run the tool I get:
> BUILD FAILED: Target `C:\eclipse\workspace\e2_trunk' does not exist in 
> this project.
>
> Is the Argument supposed to be in a property name format?
>
>