lz4 / lz4-java

LZ4 compression for Java
Apache License 2.0
1.09k stars 248 forks source link

mac osx : Ant build fails with build.xml:59: condition doesn't support the nested "javaversion" element. #169

Closed guruhb closed 3 years ago

guruhb commented 3 years ago

ant build fails on mac os x (macOS 10.15.4): below is the environment :

ghb@GHB-Mac:~/ade/github/lz4-java$ant
Buildfile: /Users/ghb/ade/github/lz4-java/build.xml

BUILD FAILED
/Users/ghb/ade/github/lz4-java/build.xml:59: condition doesn't support the nested "javaversion" element.

ghb@GHB-Mac:~/ade/github/lz4-java$which java
/Users/ghb/dev/opt/defjdk/8u172b07/jdk1.8.0_172.jdk/Contents/Home/bin/java

ghb@GHB-Mac:~/ade/github/lz4-java$echo $JAVA_HOME
/Users/ghb/dev/opt/defjdk/8u172b07/jdk1.8.0_172.jdk/Contents/Home

ghb@GHB-Mac:~/ade/github/lz4-java$ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
odaira commented 3 years ago

Are you using the latest ant?

odaira commented 3 years ago

You must use ant version 1.10.2 or later. I'll add this information to README.

guruhb commented 3 years ago

Updated my ant to 1.10.9 (latest) and build was successful, Verified with ant 1.10.2 as well. Thank you @odaira