Skip to main content



      Home
Home » Eclipse Projects » Equinox » passing artifact location to jvm argument
passing artifact location to jvm argument [message #129737] Wed, 22 April 2009 17:01 Go to next message
Eclipse UserFriend
I have a binary artifact which is the standalone native engine of my app.
I have it zipped up. I have a touchpoint that unzips it at install time.
That part is working. I need to set a jvm argument so that the java
plugins portion of the product can find where the engine was installed.
I'd like to do something like I have outlined below where I add a jvmArg
which points to the artifact that I just unzipped. In 3.4, I just end up
with the line:

-Dengine.home=@artifact

in the eclipse.ini. Is there a way I can get the installed location of the
artifact to a jvm arg in 3.4? How about 3.5?


<artifacts size='1'>
<artifact classifier='binary' id='engine.win32.x86'
version='1.0.0' />
</artifacts>

<touchpoint
id='org.eclipse.equinox.p2.osgi'
version='1.0.0' />
<touchpointData size='1'>
<instructions size='3'>
<instruction key='zipped'>
true
</instruction>
<instruction key='configure'>
addJvmArg(jvmArg:-Dengine.home=@artifact);
</instruction>
<instruction key='unconfigure'>
removeJvmArg(jvmArg:-Dengine.home=@artifact);
</instruction>
</instructions>
</touchpointData>

Jon
Re: passing artifact location to jvm argument [message #129836 is a reply to message #129737] Thu, 23 April 2009 11:10 Go to previous messageGo to next message
Eclipse UserFriend
The "@artifact" needs to be specifically handled by the action you are
trying to use it with.

It looks like the addJvmArg actions does not handle it (though the
addProgramArg does). You should raise a bug if you want this.

-Andrew

Jonathan Albrecht wrote:
> I have a binary artifact which is the standalone native engine of my
> app. I have it zipped up. I have a touchpoint that unzips it at install
> time. That part is working. I need to set a jvm argument so that the
> java plugins portion of the product can find where the engine was
> installed. I'd like to do something like I have outlined below where I
> add a jvmArg which points to the artifact that I just unzipped. In 3.4,
> I just end up with the line:
>
> -Dengine.home=@artifact
>
> in the eclipse.ini. Is there a way I can get the installed location of
> the artifact to a jvm arg in 3.4? How about 3.5?
>
>
> <artifacts size='1'>
> <artifact classifier='binary' id='engine.win32.x86' version='1.0.0' />
> </artifacts>
>
> <touchpoint
> id='org.eclipse.equinox.p2.osgi'
> version='1.0.0' />
> <touchpointData size='1'>
> <instructions size='3'>
> <instruction key='zipped'>
> true
> </instruction>
> <instruction key='configure'>
> addJvmArg(jvmArg:-Dengine.home=@artifact);
> </instruction>
> <instruction key='unconfigure'>
> removeJvmArg(jvmArg:-Dengine.home=@artifact);
> </instruction>
> </instructions>
> </touchpointData>
>
> Jon
>
Re: passing artifact location to jvm argument [message #129849 is a reply to message #129836] Thu, 23 April 2009 13:32 Go to previous message
Eclipse UserFriend
Thanks. I've submitted bug 273480.

Jon
Previous Topic:[p2] Default repository
Next Topic:p2 ignoring plug-ins with unresolved dependencies in dropins folder
Goto Forum:
  


Current Time: Thu Jul 03 13:08:58 EDT 2025

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

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

Back to the top