Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367465 - [jar exporter] Runnable Jar File Export "repacks referenced libraries" warning cannot be disabled
Summary: [jar exporter] Runnable Jar File Export "repacks referenced libraries" warnin...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.8 M6   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 18:30 EST by leoweltman CLA
Modified: 2012-02-21 04:03 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leoweltman CLA 2011-12-22 18:30:42 EST
Build Identifier: 20110615-0604

When exporting to a Runnable Jar file with Library Handling option "Extract required libraries into the generated JAR", a warning dialog box appears that begins with "This operation repacks referenced libraries. Please review the licenses associated...". There is a checkbox on the dialog to disable the message, but it has no effect.

Reproducible: Always

Steps to Reproduce:
1. Obtain a library jar file. I downloaded jdom-1.1.2.tar.gz from http://www.jdom.org/dist/binary/
2. Go to Project / Properties menu / Java Build Path / Libraries tab. 
3. Select Add Jars and select <download_dir>/jdom-1.1.2.jar
4. Select File > Export, then Java > Runnable Jar file
5. In Jar Export Window, select the following
 - Launch Configuration:  Select project being exported
 - Export Destination: Select folder and enter jar file name, e.g. myProgram,jar
 - Library Handling: Extract required libraries into the generated JAR
6. Click Finish ...warning will appear
7. Check "Do not show this message again"
8. Repeat steps 4-6. ...warning still appears.
Comment 1 Jay Arthanareeswaran CLA 2012-01-02 00:16:15 EST
I was able to reproduce this the first time. Then when (after) I did something with the package explorer, say open a project and tried it again, the dialog seemed to remember my choice and didn't appear after that.

I don't really know if it is not instantaneous and if there is something else that triggers the storage of the option. Moving to JDT/UI for confirmation and further investigation.
Comment 2 Dani Megert CLA 2012-02-21 04:03:43 EST
(In reply to comment #1)
> I was able to reproduce this the first time. Then when (after) I did something
> with the package explorer, say open a project and tried it again, the dialog
> seemed to remember my choice and didn't appear after that.
> 
> I don't really know if it is not instantaneous and if there is something else
> that triggers the storage of the option. Moving to JDT/UI for confirmation and
> further investigation.

I can easily reproduce with the steps from comment 0.

Fixed in master: 93cf9ad353087ceff01d2e698aa5f73ce86bc64d