-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the same launch configuration for more than one Java target #4257
Comments
This launch configuration can be used to resolve the second bullet point:
However, this will not do a build. Using |
Hi @sj-raima , we are sorry for the delay in responding to you. |
@Amy-Li03 I can create a Ubuntu Docker container to reproduce the issue. Would that work for you? |
@Amy-Li03 You need to take out one set of curly brackets. You have nested one set inside another which gives you a warning on line 3. Delete line 3 and 12. |
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: