Bug 292585 - Jar export cannot be called in headless mode
Summary: Jar export cannot be called in headless mode
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 18:04 EDT by Gábor Lipták CLA
Modified: 2009-12-07 14:01 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gábor Lipták CLA 2009-10-16 18:04:33 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.222.12 Safari/532.2
Build Identifier: 20090920-1017

JarPackageData and JarFileExportOperation classes are internal ones and wired to UI. This is why there is no way to export java project to a jar programatically. I think this should be separated.

Reproducible: Always
Comment 1 Gábor Lipták CLA 2009-10-27 17:45:04 EDT
Is anybody living here ? :)
Comment 2 Gábor Lipták CLA 2009-10-27 17:46:21 EDT
To make it "visible" I changed to major
Comment 3 Stephan Herrmann CLA 2009-10-28 08:08:46 EDT
(In reply to comment #0)
> JarPackageData and JarFileExportOperation classes are internal ones and wired
> to UI.

JarPackageData is API, it allows you to create an IJarBuilder,
which in turn can be used to do all kinds of things.
So what functionality do you see missing in the API?

If you want to receive feedback from the authors of those classes,
you should probably move this bug to the UI component.
There really isn't much JDT/Core code involved in that.

And: it still is a request for enhancement, isn't it?
Comment 4 Gábor Lipták CLA 2009-10-28 08:16:46 EDT
Thanks for answer Stephan,

Yes, this is enhancement. The main problem is, that jar export is in ui package as you said. If someone want to export a jar in headless mode (from a "headless" plugin without having workbench and GUI), then there is no way, since this plugin will require a lot of other plugins related to UI. This is the problem.

I moved to UI, but anyway the problem is that this functionality should be moved to core from UI, so this bug can be in any project of the two.
Comment 5 Markus Keller CLA 2009-12-07 14:01:51 EST
> I moved to UI
You actually moved it "between" Core and UI, since the assignee is still the jdt-core-inbox. Putting back to Core.

This could be done in principle, but someone would have to provide a fully functional and non-breaking patch that moves the implementation to Core, keeps the API in UI stable and makes the UI use the code from Core (just duplicating the implementation is a no-go).

JDT/UI currently does not have the resources to do that.