NickHeap2 / vscode-ant

Visual Studio Code Ant Task Runner Extension published on the marketplace
MIT License
6 stars 4 forks source link

Ant requires Java, provide configurable location for location of java or java executable #50

Open schtefan opened 1 year ago

schtefan commented 1 year ago

The extension calls the Ant batch file resp. shell script for parsing or executing the Ant scripts. The batch/shell uses the environment variable JAVA_HOME to resolve the location of the JRE/JDK, or JAVACMD to resolve the location of java.exe, if both env vars are unset, it falls back to java.exe resolving from environment variable PATH As I don't set these variables in the common environment also don't add Java to PATH (as need to support different versions of Java Runtime and need to switch easily between them), I would appreciate a setting for the Java home location of Java cmd location in the extension settings that is passed to the ant batch/shell before invoking it.

NickHeap2 commented 1 year ago

Hi @schtefan, I need to bump dependencies anyway so I can add this for you as soon as I get a chance.