[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Launch Configuration

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