ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <Nico.Sees...@epost.de>
Subject Re: [PATCH] Allow check for values on if/unless <target>
Date Tue, 10 Oct 2000 06:49:50 GMT
<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? 

Maybe I'm completely wrong with this, it's quite early in Germany (at least for for some people
like me :-) )

Nico
  ----- Original Message ----- 
  From: Jose Alberto Fernandez 
  To: Ant Project List (E-mail) 
  Sent: Tuesday, October 10, 2000 1:00 AM
  Subject: [PATCH] Allow check for values on if/unless <target>


  Hi,
   
  This small patch makes possible to check for specific values of properties on if/unless
attributes of <target>s. Hope you guys agree on incorporate it to 1.2.
   
  <target name="a" if="myprop=${yourprop}" >
  ...
  </target>
  This helps a lot on builds that use properties to specify configuration options with different
alternative tasks for different options.
   
   
  Jose Alberto

   
   

Mime
View raw message