You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Anthony Goubard <ad...@chello.nl> on 2004/05/10 21:29:15 UTC

Requests for enhancement in Ant 1.7.

Dear Ant users,

 After a discussion in Ant dev mailing list 
(http://marc.theaimsgroup.com/?t=108369006500001&r=1&w=2)
 I've added the 3 following requests for enhancement in bugzilla :
 
 Add "if" and "unless" attributes to the tasks and components.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28882
Examples
 <echo message="username property not set using ${user.name}" 
unless="username"/>
 <checksum file="foo.bar" if="file-exists"/>
 If you would like this feature in Ant, I need your support (like vote 
for this bug or add a comment).
 
 New conditions <containsregexp> and <matchesregexp>
http://issues.apache.org/bugzilla/show_bug.cgi?id=28883
Example
 <condition propery="legal-password">
    <containsregexp pattern="[1-9]" value="${user-input}"/>
 </condition>
 <fail message="Your password should at least contain one number." 
unless="legal-password"/>

 Keep the properties set in a target after <ant> or <antcall>
http://issues.apache.org/bugzilla/show_bug.cgi?id=28884
Example:
  <antcall target="define-versions" keepProperties="true"/>
 If you would like this feature in Ant, I also need your support.

--
Anthony Goubard

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