Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Bundle JRE from headless pde build
Bundle JRE from headless pde build [message #29492] Mon, 27 October 2008 11:56 Go to next message
Eclipse UserFriend
Hi Guys,
Does anyone have any pointers how to do this? I am trying to
include the jre alongwith my product build and need a way to include the
jre. Any insights will be appreciated.

Thanks,
ab
Re: Bundle JRE from headless pde build [message #30013 is a reply to message #29492] Tue, 28 October 2008 11:32 Go to previous messageGo to next message
Eclipse UserFriend
You can include a JRE in the same way you include any other root files.
Include a feature in your product, and that feature should define root
properties in its build.properties file. This is how the UI supports
bundling a JRE on export. (Features can be build-time only by having an
empty bin.includes property).

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_rootfiles.htm

In particular, the UI uses the "root.folder.<subfolder>" properties
which copy the indicated files into the specified subfolder of your product:
root.folder.jre=absolute:C:/dev/java/jre
or if you have multiple configurations:
root.win32.win32.x86.folder.jre=absolute:C:/dev/java/windows /jre
root.gtk.linux.x86.folder.jre=absolute:C:/dev/java/linux/jre


If your product is based on plugins instead of features, in 3.4 you can
add these root properties to the automatically generated container
feature that is used by the build. In your build configuration, set the
property "generatedBuildProperties" to point to a build.properties file
to use with the generated feature.

-Andrew

Abhishek Misra wrote:
> Hi Guys,
> Does anyone have any pointers how to do this? I am trying to
> include the jre alongwith my product build and need a way to include the
> jre. Any insights will be appreciated.
>
> Thanks,
> ab
Re: Bundle JRE from headless pde build [message #30209 is a reply to message #30013] Wed, 29 October 2008 16:35 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Andrew, our product is based on plugins and we are not on 3.4. Is
there something similar to generatedBuildProperties in older versions of
eclipse?


Thanks,
ab


Andrew Niefer wrote:
> You can include a JRE in the same way you include any other root files.
> Include a feature in your product, and that feature should define root
> properties in its build.properties file. This is how the UI supports
> bundling a JRE on export. (Features can be build-time only by having an
> empty bin.includes property).
>
> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_rootfiles.htm
>
>
> In particular, the UI uses the "root.folder.<subfolder>" properties
> which copy the indicated files into the specified subfolder of your
> product:
> root.folder.jre=absolute:C:/dev/java/jre
> or if you have multiple configurations:
> root.win32.win32.x86.folder.jre=absolute:C:/dev/java/windows /jre
> root.gtk.linux.x86.folder.jre=absolute:C:/dev/java/linux/jre
>
>
> If your product is based on plugins instead of features, in 3.4 you can
> add these root properties to the automatically generated container
> feature that is used by the build. In your build configuration, set the
> property "generatedBuildProperties" to point to a build.properties file
> to use with the generated feature.
>
> -Andrew
>
> Abhishek Misra wrote:
>> Hi Guys,
>> Does anyone have any pointers how to do this? I am trying to
>> include the jre alongwith my product build and need a way to include
>> the jre. Any insights will be appreciated.
>>
>> Thanks,
>> ab
Re: Bundle JRE from headless pde build [message #30351 is a reply to message #30209] Thu, 30 October 2008 13:06 Go to previous message
Eclipse UserFriend
I think you will need to copy a build.properties into the feature using
customTargets.xml and the preGenerate ant task. Something like this
could work:

customTargets.xml:
<target name="preGenerate">
<echo message="root.folder.jre=absolute:C:/java....\n"
file=" ${buildDirectory}/features/org.eclipse.pde.build.container.f eature/build.properties "/>
</target>


Abhishek Misra wrote:
> Thanks Andrew, our product is based on plugins and we are not on 3.4. Is
> there something similar to generatedBuildProperties in older versions of
> eclipse?
>
>
> Thanks,
> ab
>
>
> Andrew Niefer wrote:
>> You can include a JRE in the same way you include any other root files.
>> Include a feature in your product, and that feature should define root
>> properties in its build.properties file. This is how the UI supports
>> bundling a JRE on export. (Features can be build-time only by having
>> an empty bin.includes property).
>>
>> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_rootfiles.htm
>>
>>
>> In particular, the UI uses the "root.folder.<subfolder>" properties
>> which copy the indicated files into the specified subfolder of your
>> product:
>> root.folder.jre=absolute:C:/dev/java/jre
>> or if you have multiple configurations:
>> root.win32.win32.x86.folder.jre=absolute:C:/dev/java/windows /jre
>> root.gtk.linux.x86.folder.jre=absolute:C:/dev/java/linux/jre
>>
>>
>> If your product is based on plugins instead of features, in 3.4 you
>> can add these root properties to the automatically generated container
>> feature that is used by the build. In your build configuration, set
>> the property "generatedBuildProperties" to point to a build.properties
>> file to use with the generated feature.
>>
>> -Andrew
>>
>> Abhishek Misra wrote:
>>> Hi Guys,
>>> Does anyone have any pointers how to do this? I am trying to
>>> include the jre alongwith my product build and need a way to include
>>> the jre. Any insights will be appreciated.
>>>
>>> Thanks,
>>> ab
Re: Bundle JRE from headless pde build [message #583745 is a reply to message #29492] Tue, 28 October 2008 11:32 Go to previous message
Eclipse UserFriend
You can include a JRE in the same way you include any other root files.
Include a feature in your product, and that feature should define root
properties in its build.properties file. This is how the UI supports
bundling a JRE on export. (Features can be build-time only by having an
empty bin.includes property).

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_rootfiles.htm

In particular, the UI uses the "root.folder.<subfolder>" properties
which copy the indicated files into the specified subfolder of your product:
root.folder.jre=absolute:C:/dev/java/jre
or if you have multiple configurations:
root.win32.win32.x86.folder.jre=absolute:C:/dev/java/windows /jre
root.gtk.linux.x86.folder.jre=absolute:C:/dev/java/linux/jre


If your product is based on plugins instead of features, in 3.4 you can
add these root properties to the automatically generated container
feature that is used by the build. In your build configuration, set the
property "generatedBuildProperties" to point to a build.properties file
to use with the generated feature.

-Andrew

Abhishek Misra wrote:
> Hi Guys,
> Does anyone have any pointers how to do this? I am trying to
> include the jre alongwith my product build and need a way to include the
> jre. Any insights will be appreciated.
>
> Thanks,
> ab
Re: Bundle JRE from headless pde build [message #583837 is a reply to message #30013] Wed, 29 October 2008 16:35 Go to previous message
Eclipse UserFriend
Thanks Andrew, our product is based on plugins and we are not on 3.4. Is
there something similar to generatedBuildProperties in older versions of
eclipse?


Thanks,
ab


Andrew Niefer wrote:
> You can include a JRE in the same way you include any other root files.
> Include a feature in your product, and that feature should define root
> properties in its build.properties file. This is how the UI supports
> bundling a JRE on export. (Features can be build-time only by having an
> empty bin.includes property).
>
> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_rootfiles.htm
>
>
> In particular, the UI uses the "root.folder.<subfolder>" properties
> which copy the indicated files into the specified subfolder of your
> product:
> root.folder.jre=absolute:C:/dev/java/jre
> or if you have multiple configurations:
> root.win32.win32.x86.folder.jre=absolute:C:/dev/java/windows /jre
> root.gtk.linux.x86.folder.jre=absolute:C:/dev/java/linux/jre
>
>
> If your product is based on plugins instead of features, in 3.4 you can
> add these root properties to the automatically generated container
> feature that is used by the build. In your build configuration, set the
> property "generatedBuildProperties" to point to a build.properties file
> to use with the generated feature.
>
> -Andrew
>
> Abhishek Misra wrote:
>> Hi Guys,
>> Does anyone have any pointers how to do this? I am trying to
>> include the jre alongwith my product build and need a way to include
>> the jre. Any insights will be appreciated.
>>
>> Thanks,
>> ab
Re: Bundle JRE from headless pde build [message #583901 is a reply to message #30209] Thu, 30 October 2008 13:06 Go to previous message
Eclipse UserFriend
I think you will need to copy a build.properties into the feature using
customTargets.xml and the preGenerate ant task. Something like this
could work:

customTargets.xml:
<target name="preGenerate">
<echo message="root.folder.jre=absolute:C:/java....\n"
file=" ${buildDirectory}/features/org.eclipse.pde.build.container.f eature/build.properties "/>
</target>


Abhishek Misra wrote:
> Thanks Andrew, our product is based on plugins and we are not on 3.4. Is
> there something similar to generatedBuildProperties in older versions of
> eclipse?
>
>
> Thanks,
> ab
>
>
> Andrew Niefer wrote:
>> You can include a JRE in the same way you include any other root files.
>> Include a feature in your product, and that feature should define root
>> properties in its build.properties file. This is how the UI supports
>> bundling a JRE on export. (Features can be build-time only by having
>> an empty bin.includes property).
>>
>> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_rootfiles.htm
>>
>>
>> In particular, the UI uses the "root.folder.<subfolder>" properties
>> which copy the indicated files into the specified subfolder of your
>> product:
>> root.folder.jre=absolute:C:/dev/java/jre
>> or if you have multiple configurations:
>> root.win32.win32.x86.folder.jre=absolute:C:/dev/java/windows /jre
>> root.gtk.linux.x86.folder.jre=absolute:C:/dev/java/linux/jre
>>
>>
>> If your product is based on plugins instead of features, in 3.4 you
>> can add these root properties to the automatically generated container
>> feature that is used by the build. In your build configuration, set
>> the property "generatedBuildProperties" to point to a build.properties
>> file to use with the generated feature.
>>
>> -Andrew
>>
>> Abhishek Misra wrote:
>>> Hi Guys,
>>> Does anyone have any pointers how to do this? I am trying to
>>> include the jre alongwith my product build and need a way to include
>>> the jre. Any insights will be appreciated.
>>>
>>> Thanks,
>>> ab
Previous Topic:How to use the HyperlinkManager
Next Topic:Initializing menu command checked state
Goto Forum:
  


Current Time: Thu Nov 06 22:49:49 EST 2025

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

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

Back to the top