[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-dev
Subject:    Re: getting JVM version info from Ant
From:       Steve Loughran <stevel () apache ! org>
Date:       2007-12-13 17:20:35
Message-ID: 476169E3.9090009 () apache ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic