ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: getting JVM version info from Ant
Date Thu, 13 Dec 2007 17:20:35 GMT
Peter Arrenbrecht wrote:
> Maybe this helps:
> 
> 	<target name="@check-jre1.5">
> 		<condition property="is.jre15">
> 			<and>
> 				<equals arg1="Sun Microsystems Inc." arg2="${java.vendor}" />
> 				<contains substring="1.5.0" string="${java.runtime.version}" />
> 			</and>
> 		</condition>
> 		<fail message="Distributions must be built with Sun JDK 1.5.0.
> Aborting." unless="is.jre15" />
> 	</target>
> 


I hadnt seen the java.runtime.version string; that's all we need. unless 
we want specific isSun, isGPL tests
-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

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


Mime
View raw message