ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy Lambert <>
Subject Re: And calling python
Date Thu, 15 Apr 2010 23:56:49 GMT
This would be more a user question. Anyway, ant can execute python with 
the <exec/> task.
What is hard is to return something to ant. Maybe if the python script 
prints out what ant needs to capture on systemout,
then using the outputproperty attribute of the exec task, you can store 
the output of the python script.

Another possibility would be to have the python script create a property 
file which would be read by ant after executing the python script.



Fernando461 wrote:
> Hi,
> I'd like to know if it's possible for a Ant to call a python script and pass
> a parameter it retrieved from another source. After the python script
> processes the entry, it should return the value to the Ant and it'd change
> the value in the source.
> Is it possible? 
> Thanks

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

View raw message