ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Best way to have script fail if not using new enough JDK?
Date Sun, 20 Dec 2009 23:44:42 GMT
I need to have my Ant script abort if the current JDK version is older
than the project needs (1.6).

I noticed a "JavaVersionTask" sample at <>
which would probably help, but I wonder if there's an easier way since
that article was written (4 years ago).

I can see the possibility of doing this with a Groovy scriptcondition to
set the property to check, but I can't figure out how I can get Groovy
to set Ant properties, or to return a value that would set the property.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message