Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Replicating the functionality of Product Export Wizard from Headless Build
Replicating the functionality of Product Export Wizard from Headless Build [message #69139] Mon, 27 July 2009 16:30 Go to next message
Eclipse UserFriend
Originally posted by: tfrangoullides.model-driven.co.uk

Hi,

I've been trying to get a headless buuld for an RCP app working and while I
can automate the build I am not getting all the functionality provided by
the export wizard. I would be very grateful if someone could just cofirm if
all the functionality is supported in the scripts for a headless build. For
example I am having trouble including native launchers with custom names and
including the jre.

Many Thanks,
Tas
Re: Replicating the functionality of Product Export Wizard from Headless Build [message #69163 is a reply to message #69139] Mon, 27 July 2009 17:44 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Yes, in general you can do more in the headless build than you can do in
export :)

You want to run a build using the same .product file, and you can run
productBuild.xml instead of the build.xml.

For the launchers, you need to get the delta pack
http://download.eclipse.org/eclipse/downloads/drops/R-3.5-20 0906111540/download.php?dropFile=eclipse-3.5-delta-pack.zip
This contains the launchers and platform specific fragments for all
platforms.

The JRE is perhaps the one thing that isn't directly supported. You
will instead need to set up a feature that contributes "root files".
See
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .pde.doc.user/tasks/pde_rootfiles.htm
This is what the UI is doing automatically for you when you export with
a JRE. (See in particular the root.folder.<subfolder> properties on
that page).

There is a section at the bottom of that help page on adding root files
to product builds. Though, if you are building for p2 using the new
"p2.gathering=true", there is a bug here
https://bugs.eclipse.org/bugs/show_bug.cgi?id=277824

-Andrew
Tas Frangoullides wrote:
> Hi,
>
> I've been trying to get a headless buuld for an RCP app working and
> while I can automate the build I am not getting all the functionality
> provided by the export wizard. I would be very grateful if someone could
> just cofirm if all the functionality is supported in the scripts for a
> headless build. For example I am having trouble including native
> launchers with custom names and including the jre.
>
> Many Thanks,
> Tas
>
Re: Replicating the functionality of Product Export Wizard from Headless Build [message #69185 is a reply to message #69139] Mon, 27 July 2009 17:47 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Tas Frangoullides wrote:
> Hi,
>
> I've been trying to get a headless buuld for an RCP app working and
> while I can automate the build I am not getting all the functionality
> provided by the export wizard. I would be very grateful if someone could
> just cofirm if all the functionality is supported in the scripts for a
> headless build. For example I am having trouble including native
> launchers with custom names and including the jre.

The native launchers should work. Are you bit by this bug?

281224: [product] not added to feature based product without deltapack
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281224

For the JRE, this is a known limitation. It's recommended that you use
rootfiles to accomplish this task so that in UI and headless things work
the same.

http://wiki.eclipse.org/PDE/FAQ#Why_doesn.27t_my_JRE_get_inc luded_in_a_headless_build.3F

The main reason is that PDE Build isn't aware of where the JREs are...
it knows where class libraries are but not the actual VM. We hope to
address this disparity in Eclipse 3.6.

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Replicating the functionality of Product Export Wizard from Headless Build [message #344585 is a reply to message #69163] Tue, 28 July 2009 06:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tfrangoullides.model-driven.co.uk

Hi Andrew,

I was using productBuild.xml but not using the delta-pack as my target. I'll
try that!
Also good to know there is a means to get the JRE included. I'll give it go.

Thanks for your help,
Tas

"Andrew Niefer" <aniefer@ca.ibm.com> wrote in message
news:h4kp1g$83s$1@build.eclipse.org...
> Yes, in general you can do more in the headless build than you can do in
> export :)
>
> You want to run a build using the same .product file, and you can run
> productBuild.xml instead of the build.xml.
>
> For the launchers, you need to get the delta pack
> http://download.eclipse.org/eclipse/downloads/drops/R-3.5-20 0906111540/download.php?dropFile=eclipse-3.5-delta-pack.zip
> This contains the launchers and platform specific fragments for all
> platforms.
>
> The JRE is perhaps the one thing that isn't directly supported. You will
> instead need to set up a feature that contributes "root files".
> See
> http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .pde.doc.user/tasks/pde_rootfiles.htm
> This is what the UI is doing automatically for you when you export with a
> JRE. (See in particular the root.folder.<subfolder> properties on that
> page).
>
> There is a section at the bottom of that help page on adding root files to
> product builds. Though, if you are building for p2 using the new
> "p2.gathering=true", there is a bug here
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=277824
>
> -Andrew
> Tas Frangoullides wrote:
>> Hi,
>>
>> I've been trying to get a headless buuld for an RCP app working and while
>> I can automate the build I am not getting all the functionality provided
>> by the export wizard. I would be very grateful if someone could just
>> cofirm if all the functionality is supported in the scripts for a
>> headless build. For example I am having trouble including native
>> launchers with custom names and including the jre.
>>
>> Many Thanks,
>> Tas
>>
Re: Replicating the functionality of Product Export Wizard from Headless Build [message #344811 is a reply to message #69185] Tue, 28 July 2009 06:50 Go to previous message
Eclipse UserFriend
Originally posted by: tfrangoullides.model-driven.co.uk

Hi Chris,

Thanks for such a great response to my question.
Chances are that the bug about deltapack is the cause. As for the JRE using
rootfiles seems very workable until Eclipse 3.6
I will try these out and see how I get on.
Thanks,
Tas



"Chris Aniszczyk" <zx@eclipsesource.com> wrote in message
news:h4kp6s$966$1@build.eclipse.org...
> Tas Frangoullides wrote:
>> Hi,
>>
>> I've been trying to get a headless buuld for an RCP app working and while
>> I can automate the build I am not getting all the functionality provided
>> by the export wizard. I would be very grateful if someone could just
>> cofirm if all the functionality is supported in the scripts for a
>> headless build. For example I am having trouble including native
>> launchers with custom names and including the jre.
>
> The native launchers should work. Are you bit by this bug?
>
> 281224: [product] not added to feature based product without deltapack
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=281224
>
> For the JRE, this is a known limitation. It's recommended that you use
> rootfiles to accomplish this task so that in UI and headless things work
> the same.
>
> http://wiki.eclipse.org/PDE/FAQ#Why_doesn.27t_my_JRE_get_inc luded_in_a_headless_build.3F
>
> The main reason is that PDE Build isn't aware of where the JREs are... it
> knows where class libraries are but not the actual VM. We hope to address
> this disparity in Eclipse 3.6.
>
> Cheers,
>
> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Replicating the functionality of Product Export Wizard from Headless Build [message #599925 is a reply to message #69139] Mon, 27 July 2009 17:44 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Yes, in general you can do more in the headless build than you can do in
export :)

You want to run a build using the same .product file, and you can run
productBuild.xml instead of the build.xml.

For the launchers, you need to get the delta pack
http://download.eclipse.org/eclipse/downloads/drops/R-3.5-20 0906111540/download.php?dropFile=eclipse-3.5-delta-pack.zip
This contains the launchers and platform specific fragments for all
platforms.

The JRE is perhaps the one thing that isn't directly supported. You
will instead need to set up a feature that contributes "root files".
See
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .pde.doc.user/tasks/pde_rootfiles.htm
This is what the UI is doing automatically for you when you export with
a JRE. (See in particular the root.folder.<subfolder> properties on
that page).

There is a section at the bottom of that help page on adding root files
to product builds. Though, if you are building for p2 using the new
"p2.gathering=true", there is a bug here
https://bugs.eclipse.org/bugs/show_bug.cgi?id=277824

-Andrew
Tas Frangoullides wrote:
> Hi,
>
> I've been trying to get a headless buuld for an RCP app working and
> while I can automate the build I am not getting all the functionality
> provided by the export wizard. I would be very grateful if someone could
> just cofirm if all the functionality is supported in the scripts for a
> headless build. For example I am having trouble including native
> launchers with custom names and including the jre.
>
> Many Thanks,
> Tas
>
Re: Replicating the functionality of Product Export Wizard from Headless Build [message #599932 is a reply to message #69139] Mon, 27 July 2009 17:47 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Tas Frangoullides wrote:
> Hi,
>
> I've been trying to get a headless buuld for an RCP app working and
> while I can automate the build I am not getting all the functionality
> provided by the export wizard. I would be very grateful if someone could
> just cofirm if all the functionality is supported in the scripts for a
> headless build. For example I am having trouble including native
> launchers with custom names and including the jre.

The native launchers should work. Are you bit by this bug?

281224: [product] not added to feature based product without deltapack
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281224

For the JRE, this is a known limitation. It's recommended that you use
rootfiles to accomplish this task so that in UI and headless things work
the same.

http://wiki.eclipse.org/PDE/FAQ#Why_doesn.27t_my_JRE_get_inc luded_in_a_headless_build.3F

The main reason is that PDE Build isn't aware of where the JREs are...
it knows where class libraries are but not the actual VM. We hope to
address this disparity in Eclipse 3.6.

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Replicating the functionality of Product Export Wizard from Headless Build [message #599955 is a reply to message #69163] Tue, 28 July 2009 06:45 Go to previous message
Tas Frangoullides is currently offline Tas FrangoullidesFriend
Messages: 195
Registered: July 2009
Senior Member
Hi Andrew,

I was using productBuild.xml but not using the delta-pack as my target. I'll
try that!
Also good to know there is a means to get the JRE included. I'll give it go.

Thanks for your help,
Tas

"Andrew Niefer" <aniefer@ca.ibm.com> wrote in message
news:h4kp1g$83s$1@build.eclipse.org...
> Yes, in general you can do more in the headless build than you can do in
> export :)
>
> You want to run a build using the same .product file, and you can run
> productBuild.xml instead of the build.xml.
>
> For the launchers, you need to get the delta pack
> http://download.eclipse.org/eclipse/downloads/drops/R-3.5-20 0906111540/download.php?dropFile=eclipse-3.5-delta-pack.zip
> This contains the launchers and platform specific fragments for all
> platforms.
>
> The JRE is perhaps the one thing that isn't directly supported. You will
> instead need to set up a feature that contributes "root files".
> See
> http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .pde.doc.user/tasks/pde_rootfiles.htm
> This is what the UI is doing automatically for you when you export with a
> JRE. (See in particular the root.folder.<subfolder> properties on that
> page).
>
> There is a section at the bottom of that help page on adding root files to
> product builds. Though, if you are building for p2 using the new
> "p2.gathering=true", there is a bug here
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=277824
>
> -Andrew
> Tas Frangoullides wrote:
>> Hi,
>>
>> I've been trying to get a headless buuld for an RCP app working and while
>> I can automate the build I am not getting all the functionality provided
>> by the export wizard. I would be very grateful if someone could just
>> cofirm if all the functionality is supported in the scripts for a
>> headless build. For example I am having trouble including native
>> launchers with custom names and including the jre.
>>
>> Many Thanks,
>> Tas
>>
Re: Replicating the functionality of Product Export Wizard from Headless Build [message #599964 is a reply to message #69185] Tue, 28 July 2009 06:50 Go to previous message
Tas Frangoullides is currently offline Tas FrangoullidesFriend
Messages: 195
Registered: July 2009
Senior Member
Hi Chris,

Thanks for such a great response to my question.
Chances are that the bug about deltapack is the cause. As for the JRE using
rootfiles seems very workable until Eclipse 3.6
I will try these out and see how I get on.
Thanks,
Tas



"Chris Aniszczyk" <zx@eclipsesource.com> wrote in message
news:h4kp6s$966$1@build.eclipse.org...
> Tas Frangoullides wrote:
>> Hi,
>>
>> I've been trying to get a headless buuld for an RCP app working and while
>> I can automate the build I am not getting all the functionality provided
>> by the export wizard. I would be very grateful if someone could just
>> cofirm if all the functionality is supported in the scripts for a
>> headless build. For example I am having trouble including native
>> launchers with custom names and including the jre.
>
> The native launchers should work. Are you bit by this bug?
>
> 281224: [product] not added to feature based product without deltapack
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=281224
>
> For the JRE, this is a known limitation. It's recommended that you use
> rootfiles to accomplish this task so that in UI and headless things work
> the same.
>
> http://wiki.eclipse.org/PDE/FAQ#Why_doesn.27t_my_JRE_get_inc luded_in_a_headless_build.3F
>
> The main reason is that PDE Build isn't aware of where the JREs are... it
> knows where class libraries are but not the actual VM. We hope to address
> this disparity in Eclipse 3.6.
>
> Cheers,
>
> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Previous Topic:start Eclipse silently to fix configuration
Next Topic:Update Site: Install features depending on installed plugins
Goto Forum:
  


Current Time: Sat Apr 27 02:16:35 GMT 2024

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

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

Back to the top