Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 163543 - [preferences] Allow exporting of compiler settings
Summary: [preferences] Allow exporting of compiler settings
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement with 2 votes (vote)
Target Milestone: 3.6 M3   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 121261 202276 207949 240798 (view as bug list)
Depends on: 208564
Blocks: 135868
  Show dependency tree
 
Reported: 2006-11-06 10:07 EST by David Witherspoon CLA
Modified: 2010-04-15 10:24 EDT (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Witherspoon CLA 2006-11-06 10:07:47 EST
As a team, we have a standard around the compiler settings.  Everything else though is configurable for the developer, but we want to be sure we all use the same settings for warnings/errors.

I want to be able to export just those settings so that my team members can import those.  As it is, I have to export the entire set of preferences, edit them by hand to sort them and then strip out everything except for the compiler settings.

I'm not even sure that approach is safe.
Comment 1 Olivier Thomann CLA 2006-11-06 10:13:03 EST
You can set the compiler's preferences per project and commit them to CVS. Then any developer that checked them out would use the project's specific preferences.
Ok to close?
Comment 2 David Witherspoon CLA 2006-11-07 08:16:41 EST
We do not use CVS.  We use Rational ClearCase, which doesn't have the support you're referring to.  Besides, I wouldn't think you would want to count on having the SCM be the mechanism by which teams can share compiler settings.

When I go to File->Export->Preferences, I'd like to see an option there for "compiler settings".
Comment 3 Olivier Thomann CLA 2006-11-07 09:09:36 EST
Moving to JDT/UI
Comment 4 Martin Aeschlimann CLA 2007-09-05 12:27:08 EDT
*** Bug 202276 has been marked as a duplicate of this bug. ***
Comment 5 Martin Aeschlimann CLA 2007-10-30 09:17:42 EDT
*** Bug 207949 has been marked as a duplicate of this bug. ***
Comment 6 Robert Wenner CLA 2007-11-27 18:57:18 EST
(In reply to comment #1)
> You can set the compiler's preferences per project and commit them to CVS.

If I click File > Export > Preferences and export all preferences, I find absolute paths in that file.
Is this related to bug 57732? Then it would be unusable for sharing.
Comment 7 Martin Aeschlimann CLA 2007-11-28 04:46:09 EST
bug 57732 is not related to this. bug 57732 is about '.classpath.'

But you're right, File > Export > Preferences will export all settings and some contain platform specific paths, which is bad for sharing.

But you should try project specific settings: Go to the project's property page to enable this. This will create a file .settings/org.eclipse.jdt.core.prefs in your project and therfore part of the files that are shared by a team provider.
I don't see why wouldn't that work with ClearCase?

Comment 8 David Witherspoon CLA 2007-11-28 18:54:54 EST
As mentioned in the original bug report, we have a standard around compiler settings, but everything else we want to leave configurable.  If I export MY settings (project specific or not), and other import them, then they're getting all my other settings.  Today I have to export all, and then whittle out everything except for compiler settings to get where we want to go.
Comment 9 Ed Merks CLA 2007-11-28 19:45:30 EST
It would sure be nice if settings were better categorized but today it seems there are very few categories and everything else falls into another "other" category that includes effectively all uncategorized things, many of which are specific to the installation location and hence aren't really suitable to be exported at all...

If I have 100 project's having project specific settings duplicated across a 100 projects is far from ideal as well...
Comment 10 Martin Aeschlimann CLA 2008-05-08 09:33:59 EDT
I'm afraid I have to retarget this to 3.5 as there was no progress on bug 208564. A fix for bug 208564 is required as we can't and don't want to enumerate all compiler options in the plugin.xml. There too many.


Comment 11 Eric Rizzo CLA 2009-03-06 09:48:37 EST
(In reply to comment #8)
> As mentioned in the original bug report, we have a standard around compiler
> settings, but everything else we want to leave configurable.  If I export MY
> settings (project specific or not), and other import them, then they're getting
> all my other settings.  Today I have to export all, and then whittle out
> everything except for compiler settings to get where we want to go.

Project-specific settings already allow you to be selective about the things that are shared. You still have not indicated why project-specific settings will not meet your needs.
I understand the desire to be more selective in workspace preferences export/import, but I think that is a more broad request (and a lot of work, apparently) and it seems obvious that project-specific settings is the answer to the original request in this bug. Relying on workspace-wide settings is not very reliable anyway, for several reasons.
As for synchronizing the project-specific settings across a large set of projects, I agree with Ed that there is pain there. But I think that can be addressed with better tool support. I'm looking for an existing bug report on that topic and will enter a new one if I can't find anything.
Comment 12 Eric Rizzo CLA 2009-03-06 09:54:34 EST
Bug 194414 talks about syncing settings across many projects.
Comment 13 Markus Keller CLA 2009-03-18 05:26:56 EDT
Sorry, still need bug 208564 for this. Moving to 3.6.
Comment 14 Dani Megert CLA 2009-10-01 08:39:51 EDT
Fixed in HEAD.
Available in builds > N20090930-2000.
Comment 15 Deepak Azad CLA 2009-10-27 02:57:09 EDT
Verified in I20091026-1442

Able to export/import workspace specific compiler settings.
Comment 16 Dani Megert CLA 2009-10-27 03:07:42 EDT
.
Comment 17 Markus Keller CLA 2010-02-17 11:58:33 EST
*** Bug 240798 has been marked as a duplicate of this bug. ***
Comment 18 Dani Megert CLA 2010-04-15 04:19:25 EDT
*** Bug 121261 has been marked as a duplicate of this bug. ***