ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <>
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.setProperty("newtoken", "Gurke");

Michael Ludwig

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message