ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <mil...@gmx.de>
Subject Re: java script error in imported ant file
Date Wed, 19 Jan 2011 19:24:45 GMT
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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message