You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ck...@onebox.com on 2007/10/19 19:58:01 UTC
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?
Thanks.
--
Charles Knell
cknell@onebox.com - email
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Set property value via Java
Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
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