ritchie schrieb am 19.01.2011 um 07:03 (-0800):
> 
> I have a build file -A.xml which imports another build file -B.xml and
> runs the targets in the imported file. File B has multiuple targets
> and one of the targets has a java script. In the java script i have a
> line of code which says " Bproject.setProperty("newtoken", result);" ,
> Bproject is the name of the project in B.xml.

There is no need to hardcode the name. You can refer to the currently
running project by simply saying "project". :-)

  project.log("toll!");
  project.setProperty("newtoken", "Gurke");

-- 
Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to