Reputation: 1
I am using Antlr4 for C# target.
As far as I unterstand from Antlr4BuildTasks.net40.dll, the registry will be searched to decide if Java runtime is installed on the machine. But for me it is not possible to install Java runtime on the build machine, so I need to use a portable Java runtime. Is this possible?
Upvotes: 0
Views: 403
Reputation: 99989
You can define the path in the command line for msbuild.exe
.
"/p:Antlr4JavaExecutable=PATH_TO_JAVA"
Here, PATH_TO_JAVA
is the path to the Java executable you want to use, typically with the form C:\Path\To\java.exe (on Windows machines).
Upvotes: 0