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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]