0

Ant is running jscomp on some JavaScript files. It doesn't recognise ES6 and newer features, and the task fails indicating syntax errors on let, etc. I found suggestions that language_in needs to be passed with appropriate ECMAScript version. How can I do that either on the command line or in antbuild.xml?

Also, I'm getting Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar on the command line but w/o ES6 and newer features the task completes fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.