ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francisco Tolmasky <tolma...@gmail.com>
Subject Checking version
Date Thu, 04 Dec 2008 08:23:26 GMT

My build file depends on a certain executable on the system being up  
to date.  I'd like to be able to check the version of the executable  
and see if it is at least a certain number.  Is this possible?

something like

<exec executable = "myexec">
	<arg value = "--version" /> <!-- store this somehow??? -->
</exec>

<condition property = "notuptodate">
	<smallerthan ? thatVersion 5.6 /> <!-- clearly psuedocode -->
</condition>

<fail if ="notuptodate"/>

Any help is greatly appreciated!

Thanks,

Francisco Tolmasky
714-224-6179
tolmasky@gmail.com




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


Mime
View raw message