ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Checking version
Date Thu, 04 Dec 2008 10:38:44 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!


<exec outputproperty>

Jan 

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


Mime
View raw message