You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two issues with this launch configuration that CMake Tools is not able to accommodate:
The target is not automatically built when launching
The launch configuration is not generic as it is tied to one particular example
We would like java01Example.jar in the launch configuration to be replaced with a variable that expands to the selected build target and the target should also be built.
For our C/C++ examples this is not a problem as we can use ${command:cmake.launchTargetPath}. However, for Java there is no way to accommodate this as far as I can tell. Since we have several examples, we would like to have one launch configuration to cover them all.
CMake Tools Diagnostics
Debug Log
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Hi @sj-raima , we are sorry for the delay in responding to you.
Referring to your description of the problem and code segment, I have generated java01Example.jar after building project, however when using the launch configuration you provided, there are some errors as below video, please let me know if I'm missing something or doing something wrong.
Also, it would be better if you could provide a detailed repro step and a minim repro demo project.
Brief Issue Summary
Background: We have a large number of Java examples. We would like one launch configuration to cover them all.
For one of the examples we have the following CMakeList.txt (some details are not shown):
The jar target can be executed using the following command
(the class path and the main class has been embedded into the jar file's manifest):
java -jar java01Example.jar
We can launch this with the following launch configuration:
There are two issues with this launch configuration that CMake Tools is not able to accommodate:
We would like
java01Example.jar
in the launch configuration to be replaced with a variable that expands to the selected build target and the target should also be built.For our C/C++ examples this is not a problem as we can use
${command:cmake.launchTargetPath}
. However, for Java there is no way to accommodate this as far as I can tell. Since we have several examples, we would like to have one launch configuration to cover them all.CMake Tools Diagnostics
Debug Log
Additional Information
No response
The text was updated successfully, but these errors were encountered: