You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/12/22 18:15:56 UTC
DO NOT REPLY [Bug 32804] New: -
check version of Ant
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32804>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32804
Summary: check version of Ant
Product: Ant
Version: 1.6.2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: tomasz.bech@bull.com.pl
It would be nice to have possibility to check version of Ant in build.xml script
(that is needed when there is uneducated customer which is ignoring requirements
of ant/java versions described in document - so we have to put 'fail' in ant
script to stop doing stupid thing by the customer)
Currently there are used too tricks (what I found):
- based on checking if pointed class exists (like MacroDef from 1.6);
- using contains + ${ant.version}
But both have cause (or can) some problems, for example class can be moved in
future versions.
Below is small proposal of checkVersion task:
<checkVersion name="ant.version.number" value="- + = += -=(means less greater
equal, greater equal) version here, i.e. +=1.6.1" property="property name to set
when condition not met"/>
Idea is that it can be used for any version checking which follows standard
pattern: number.number.number. Additional needed extension is
'ant.version.number' which returns just the number.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org