ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: Set property value via Java
Date Mon, 22 Oct 2007 05:52:43 GMT
 
Hi,

-----Original Message-----
From: cknell@onebox.com [mailto:cknell@onebox.com] 
Sent: Friday, October 19, 2007 7:58 PM
To: user@ant.apache.org
Subject: Set property value via Java

/*

Is there a method for setting a property's value to the return value of
a Java program?

I have a Java program that executes an XPath query and returns a string.
How can I create a property from this returned string?
*/

no method but an attribute of the <java> task, see Ant manual =

http://ant.apache.org/manual/CoreTasks/java.html

outputproperty / resultproperty / errrorproperty

beside that, there are two methods for setting properties, if you' ve
have written
an own ant task or want to use the Ant api with script task =

setProperty()
setNewProperty()


Regards, Gilbert

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


Mime
View raw message