ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markku Saarela" <markku.saar...@entra.fi>
Subject RE: XmlProperty beahvior with empty elements
Date Sat, 29 Mar 2003 06:11:18 GMT
Hi,

After reading xml file just define
property again like:
server.list.stack2="" that's do the trick

Markku Saarela

-----Original Message-----
From: George_Schlitz@ssga.com [mailto:George_Schlitz@ssga.com]
Sent: 28. maaliskuuta 2003 23:20
To: Ant Users List
Subject: XmlProperty beahvior with empty elements


I am trying to use the XmlProperty task to read in XML files to create
properties, and I am having a problem that I didn't have using normal
properties files (a la <property file=""/>)

If this is my XML file, the property server.list.stack2 is not set at all.
<server>
   <list>
      <stack1>server1,server2</stack1>
      <stack2></stack2>
   </list>
</server>

Using a normal properties file, I can get server.list.stack2="" by doing
this:
server.list.stack1=server1,server2
server.list.stack2=

How can I get the proper "empty element" behavior, i.e. create a property
with value of empty string?

Thanks!
George



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



Mime
View raw message