Robert Leftwich <[EMAIL PROTECTED]> wrote: > b) Fail the build if JAVA_HOME or ant.java.version is not correct - > but the only way I can find to do that is to write a script > (javascript/netrexx/etc) that checks the value and adds a target (or > enables a target) that does the fail - this seems overly complex. You can get away without scripting. <target name="check-version"> <available property="jdk1.3+" classname="java.lang.StrictMath" /> </target> <target name="ensure-1.3" depends="check-version" unless="jdk1.3+"> <fail>Can only build if running in a JDK 1.3 VM</fail> </target> and make all your targets depend on the ensure-1.3 target Stefan
- Re: Newbie Question Nico Seessle
- Newbie Question David Scassa
- RE: Newbie Question Pinar Bicioglu
- RE: Newbie Question David Scassa
- RE: Newbie Question Pinar Bicioglu
- RE: Newbie Question Kevin Cummings
- RE: Newbie Question David Scassa
- RE: Newbie Question Jon Skeet
- RE: Newbie Question David Scassa
- Newbie question Robert Leftwich
- Re: Newbie question Stefan Bodewig
- Re: Newbie question Robert Leftwich
- Re: Newbie question Stefan Bodewig
- RE: Newbie question Keith Kee
- Re: Newbie question Stefan Bodewig
- RE: Newbie question Pinar Bicioglu
- RE: Newbie question Robert Leftwich
- RE: Newbie question Robert Leftwich
- Newbie Question David Scassa
- Re: Newbie Question Nico Seessle
- Newbie question Shawn Sandy
