ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perkins, Kristian" <Kristian.Perk...@ato.gov.au>
Subject RE: change to a property
Date Tue, 03 Aug 2004 01:31:43 GMT
Hi,

Look at the API for java.util.Properties you will have to use
Integer.decode or Integer.valueOf methods (I also noticed the getInteger
methods to get Integer from system properties if it is located there) or
get an int primitive as an attribute instead of a property with
setAttribute(int value) in your class that extends
org.apache.tools.ant.Task (replacing setAttribute with setWhatever).

Kristian

-----Original Message-----
From: mail.laconiadatasystems.com
[mailto:webmaster@laconiadatasystems.com] 
Sent: Tuesday, 3 August 2004 9:17 AM
To: Ant Users List
Subject: Re: change to a property


Hello All:
Is there any way to change a property or variable from the default
Datatype of String to Integer? Many Thanks, -martin


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



****************************************************************
                            IMPORTANT

 The information transmitted is for the use of the intended recipient only and may contain
confidential and/or legally privileged material. Any review, re-transmission, disclosure dissemination
or other use of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited and may result in severe penalties.
 If you have received this e-mail in error please notify the Privacy Hotline of the Australian
Taxation Office, telephone 13 28 69 and delete all copies of this transmission together with
any attachments. 
****************************************************************


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


Mime
View raw message