Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Customizing generated .target in setup file (launcherArgs)
Customizing generated .target in setup file (launcherArgs) [message #1577428] Wed, 21 January 2015 22:24 Go to next message
Marc-André Laperle is currently offline Marc-André LaperleFriend
Messages: 256
Registered: July 2009
Senior Member
In our CDT .target files, we are used to having the launcher arguments specified for the target platform, for example:

<launcherArgs>
<vmArgs>-Xms40m
-Xmx512M
-XX:MaxPermSize=256m</vmArgs>
<programArgs>-consolelog</programArgs>
</launcherArgs>

See
http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/plain/releng/org.eclipse.cdt.target/cdt-e4.4.target?id=3743c5d3af8ccf45f637e54fc2960d9701e4f0e6

That way, any launch configuration for this Target Platform will be created with those default arguments. This is especially important for MaxPermSize because CDT has a lot of classes and typically, the Java defaults are not sufficient. We could provide several .launch files but any new launch created will have wrong values by default so this is not perfect. I'm mainly thinking of the case when one right-clicks on a Junit test > Run as Plug-in test.

Is there any way to add the launcherArgs in the setup files? If not, I can write a bugzilla to describe the proposed feature.

Thank you!
Re: Customizing generated .target in setup file (launcherArgs) [message #1577957 is a reply to message #1577428] Thu, 22 January 2015 05:31 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 21.01.2015 um 23:24 schrieb Marc-Andre Laperle:
> In our CDT .target files, we are used to having the launcher arguments specified for the target platform, for example:
>
> <launcherArgs>
> <vmArgs>-Xms40m
> -Xmx512M
> -XX:MaxPermSize=256m</vmArgs>
> <programArgs>-consolelog</programArgs>
> </launcherArgs>
>
> See
> http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/plain/releng/org.eclipse.cdt.target/cdt-e4.4.target?id=3743c5d3af8ccf45f637e54fc2960d9701e4f0e6
>
>
> That way, any launch configuration for this Target Platform will be created with those default arguments. This is
> especially important for MaxPermSize because CDT has a lot of classes and typically, the Java defaults are not
> sufficient. We could provide several .launch files but any new launch created will have wrong values by default so
> this is not perfect. I'm mainly thinking of the case when one right-clicks on a Junit test > Run as Plug-in test.
I understand that you need these default launcher args in your .target file but from what you describe, I don't
understand how Oomph is related. Your title says "generated .target"; what is generating it? Are you talking about a
TargletTask that is annotated to generate the .target file? Can I see your setup model?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Customizing generated .target in setup file (launcherArgs) [message #1578823 is a reply to message #1577957] Thu, 22 January 2015 16:40 Go to previous messageGo to next message
Marc-André Laperle is currently offline Marc-André LaperleFriend
Messages: 256
Registered: July 2009
Senior Member
I have a Targlet in my .setup, which I assumed was generating a target for PDE to consume. At least... in the generated IDE I see in the PDE > Target Platform preferences that it sets a "Modular Target" which I can then edit and add the arguments. Those are the arguments I'd like to specify in the .setup file. Sorry if I'm not being clear :-/

Here is the CDT.setup that I'd like to merge soon:
https://git.eclipse.org/r/#/c/39617/
Re: Customizing generated .target in setup file (launcherArgs) [message #1578838 is a reply to message #1578823] Thu, 22 January 2015 16:48 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 22.01.2015 um 17:40 schrieb Marc-Andre Laperle:
> I have a Targlet in my .setup, which I assumed was generating a target for PDE to consume. At least... in the
> generated IDE I see in the PDE > Target Platform preferences that it sets a "Modular Target" which I can then edit and
> add the arguments. Those are the arguments I'd like to specify in the .setup file. Sorry if I'm not being clear :-/
I see. The TargletTask does not support the specification of launcher arguments, yet. I can investigate that if you
want. Please submit a bugzilla.

> Here is the CDT.setup that I'd like to merge soon:
> https://git.eclipse.org/r/#/c/39617/
Looking forward to it ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Customizing generated .target in setup file (launcherArgs) [message #1579334 is a reply to message #1578838] Thu, 22 January 2015 23:20 Go to previous message
Marc-André Laperle is currently offline Marc-André LaperleFriend
Messages: 256
Registered: July 2009
Senior Member
I submitted https://bugs.eclipse.org/bugs/show_bug.cgi?id=458198
Thank you for your great response time!
Previous Topic:PDE Target provisioning taking much longer than before
Next Topic:Exception when Starting Oomph
Goto Forum:
  


Current Time: Fri Apr 26 03:56:45 GMT 2024

Powered by FUDForum. Page generated in 0.03270 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top