How to define an Ant task to enforce that the java version should be 1.6.0_05 or higher?
The following build.xml fails with the error message:
BUILD FAILED
C:\workspace\Test_TIJ4\build.xml:51: The following error occurred while executing this line:
C:\workspace\Test_TIJ4\object\build.xml:29: J2SE6 required
I want to allow any 1.6 or 1.7 JVM for jdk 1.6.0_05 or higher.
The ant version is 1.7.0 (I can't use a newer version).
The build.xml file is changed as per your advice and the error message is now:
BUILD FAILED
C:\workspace\Test_TIJ4\build.xml:51: The following error occurred while executing this line:
C:\workspace\Test_TIJ4\object\build.xml:21: equals doesn't support the "string" attribute
Oops, sorry, when I started to write the code I meant to use the <substring> condition but switched to <equals> and then forgot to change the property names.
By the way, it is very distracting to quote the entire previous post when replying, so I removed the quotes for you.