Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367465

Summary: [jar exporter] Runnable Jar File Export "repacks referenced libraries" warning cannot be disabled
Product: [Eclipse Project] JDT Reporter: leoweltman
Component: UIAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: amj87.iitr, daniel_megert
Version: 3.8   
Target Milestone: 3.8 M6   
Hardware: PC   
OS: Linux   
Whiteboard:

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