Generating ant build
已回答
Hi, I am trying to generate ant build in intellij and it is taking the references on my mac and using them on other operating systems like linux. Is there a way to generate ant build without it using my default path for java on my machine? The settings I am using are:

The error I get on the linux machine is: /home/travis/build/application/build.xml:202: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home does not exist
That is the path on my mac and I want to generate ant build using the system variables to get the java path. Is there a way to do this in intellij?
请先登录再写评论。
Try disabling the Use JDK definitions from project files checkbox. I'd recommend moving to Gradle or Maven for your command line builds instead of the ancient Ant.