| Launch Configuration [message #227138] |
Tue, 04 April 2006 07:28  |
|
Originally posted by: gosvig.gosvig.net
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.
Thanks,
Carsten
|
|
|
| Re: Launch Configuration [message #227187 is a reply to message #227138] |
Tue, 04 April 2006 11:39   |
|
Originally posted by: eclipse3.rizzoweb.com
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
|
|
|
| Re: Launch Configuration [message #227246 is a reply to message #227187] |
Tue, 04 April 2006 16:36   |
|
Originally posted by: gosvig.gosvig.net
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.
Carsten
|
|
|
| Re: Launch Configuration [message #227377 is a reply to message #227246] |
Thu, 06 April 2006 15:16  |
|
Originally posted by: eclipse3.rizzoweb.com
Carsten Gosvig wrote:
> 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.
I see.
Unfortunately, I'm pretty sure Eclipse does not currently support a
variable as the project name. I suggest you submit an enhancement
request in the Eclipse bugzilla: http://bugs.exclipse.org
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.09003 seconds