| [news.eclipse.tools.jdt] Re: Launch Configuration |
Eric Rizzo wrote:
Carsten Gosvig wrote:Hi
I want to make a shared java launch configuration dependant on the project it is shared/saved within, like in:
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.gosvig.foo.Foo"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="${project_name}"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
</launchConfiguration>
This does not work. Eclipse seems to require that the value of the PROJECT_ATTR is explicitly defined as the name of a project, not a variable.
Can anyone enlighten me on how I can make this work. I need a launch configuration to be the same in all the branches of a given SCM module.
Can you explain why you are trying to write a launch config by hand instead of using the GUI to create it?
Eric
Ok, I didn't write it by hand, I did use the GUI to create it, but I just put it in the article for reference.
I did write ${project_name} in the project reference in the GUI, but it complained with an unknown project name.
Hope this helps, Eric