ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@apache.org>
Subject Re: setting Ant properties from JPython
Date Sat, 10 Feb 2001 09:48:58 GMT
----- Original Message -----
From: "David Whipple" <dwhipple@dtcc.com>
To: <ant-user@jakarta.apache.org>
Sent: Friday, February 09, 2001 6:34 PM
Subject: setting Ant properties from JPython


> I assume it is possible to access Ant properties from JPython inside a
<script>,
> but I have not been able to find any specific documentation on this, nor
has the
> various guesses I have tried seemed to work.
>
> Could someone tell me if this is possible and if so how I can do it?
>
Yes, it's possible. I don't know the exact syntax of JPython, but I don't
think this part will differ from javascript. Just use:
"myProject.setProperty('propertyName', 'propertyValue')" where myProject is
the name you gave to your project using <project name="...">.

Nico



Mime
View raw message