ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Alberto Fernandez <JFernan...@viquity.com>
Subject RE: [PATCH] Allow check for values on if/unless <target>
Date Tue, 10 Oct 2000 18:04:08 GMT
Well, it seems to work fine for me. See the attached test case which passes
as expected.
 
pos+1 == condition.length() which is OK.

-----Original Message-----
From: Nico Seessle [mailto:Nico.Seessle@epost.de]
Sent: Monday, October 09, 2000 11:50 PM
To: ant-dev@jakarta.apache.org
Subject: Re: [PATCH] Allow check for values on if/unless <target>


<target name="myName" if="myprop="> and/or <target name="myName"
if="myprop=${aproperty}"> (iff aproperty is 'empty' (the empty string)) will
throw an Exception, won't it? (I don't applied this patch, just had a quick
look at it and 
 
+        String value = 
+          ProjectHelper.replaceProperties(condition.substring(pos+1),
+                                          project.getProperties());

seems not to work in the above conditions since pos+1 should be invalid? 
 
 


Mime
View raw message