ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: loadfile fails on empty file
Date Mon, 16 Dec 2002 15:04:40 GMT
Just do:

<loadfile property="xyz" ... />
<property name="xyz" value="" />

The latter will be ignore if xyz was already set by loadfile. --DD

-----Original Message-----
From: Rosendahl Sten - stro [mailto:stro@im.se] 
Sent: Monday, December 16, 2002 6:52 AM
To: 'Ant Users List'
Subject: loadfile fails on empty file

I use loadfile to fetch a list of files filtered by replaceregexp. When the
list (and file) is empty, the loadfile task will silently *not* set the
output property causing an error in the next task. Is there a way of setting
it the the empty string, or do I have to test if the property is set or not?

Sten Rosendahl (stro@im.se)
IMI Industri-Matematik International - THE ORDER COMPANY  

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


Mime
View raw message