Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Launch Configuration
Launch Configuration [message #227138] Tue, 04 April 2006 07:28 Go to next message
Eclipse User
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 Go to previous messageGo to next message
Eclipse User
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 Go to previous messageGo to next message
Eclipse User
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 Go to previous message
Eclipse User
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
Previous Topic:window history
Next Topic:Using the ASTParser for parsing an expression...
Goto Forum:
  


Current Time: Sat May 18 05:48:32 EDT 2013

Powered by FUDForum. Page generated in 0.09003 seconds