Bug 308073 - deltapack export not providing enough <resources os="" arch=""> information in Feature....jnlp
Summary: deltapack export not providing enough <resources os="" arch=""> information i...
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows Vista
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-05 09:29 EDT by tj_willis CLA
Modified: 2022-11-14 12:10 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tj_willis CLA 2010-04-05 09:29:13 EDT
Build Identifier: M20090917-0800

This is one example of what I assume is a huge set of related problems.

On exporting my feature, the lines

<resources os="Windows" arch="x86_64">
<jar href="plugins/org.eclipse.swt.win32.win32.x86_64_3.5.1.v3555a.jar"/>
</resources>

are automatically added to my features/Feature....jnlp file.  I test and the swt bundle isn't resolved.  After futzing with my project setup for hours, I add the following to my plugin:

System.out.println("os.name = " + System.getProperty("os.name", "undefined"));
System.out.println("os.arch = " + System.getProperty("os.arch", "undefined"));

and get:

os.name = Windows Vista
os.arch = amd64

I add the following lines to the features/Feature...jnlp file:

<resources os="Windows Vista" arch="amd64">
<jar href="plugins/org.eclipse.swt.win32.win32.x86_64_3.5.1.v3555a.jar"/>
</resources>

and the application works fine.

This suggests that there are many, many other os/arch/ws combinations that will crash when they should be supported.

It seems to me that since the os/arch/ws combination is specific to the features/Feature...jnlp file, that plugins/org.eclipse.swt.win32.win32.x86_64_3.5.1.v3555a.jar should be added in the main <resources>...</resources> block.  Failing that, many <resources os="" arch=""> combinations should be added to the features/Feature...jnlp file.

(If it helps, all my Feature files are at http://morselab.svn.sourceforge.net/viewvc/morselab/MorseLab%20Feature/ )

Reproducible: Always
Comment 1 tj_willis CLA 2010-04-05 10:27:53 EDT
I see that adding the more generic

<resources os="Windows" arch="amd64">
<jar href="plugins/org.eclipse.swt.win32.win32.x86_64_3.5.1.v3555a.jar"/>
</resources>

solves this particular problem, as the resources block matches if the given string is a substring of os.name.

Reading http://java.sun.com/javase/6/webnotes/install/system-configurations.html#update-footnotes, but not having access to these platforms,  I'd assume that the following resources sections for the following arch'es are needed:

Intel 64
AMD 64
EM64T
x64
Comment 2 nikolaz nikolaz CLA 2013-09-11 06:00:26 EDT
Same for 64bit Linux OS (Tested on Ubuntu 12.10-13.04 64bit, Oracle Java 7)
In my case, export generates JNLP file with:
<resources os="Linux" arch="x86_64">...</resources>

so the SWT libs are not resolved.
Changing to:
<resources os="Linux" arch="amd64">...</resources>
fixes the issue.

Same for 32bit Linux OS (Tested on Ubuntu 13.04 32bit, Oracle Java 7)
Export generates:
<resources os="Linux" arch="x86">...</resources>
and app doesn't work (swt not resolved)

Fixed by changing to :
<resources os="Linux" arch="i386 x86">...</resources>
Comment 3 Lars Vogel CLA 2018-12-03 09:11:05 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.
Comment 4 Lars Vogel CLA 2018-12-03 09:12:29 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.
Comment 5 Eclipse Genie CLA 2020-11-23 15:08:13 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Eclipse Genie CLA 2022-11-14 12:10:55 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.