Bug 59258 - Possibility to share compiler preferences for a shared project
Summary: Possibility to share compiler preferences for a shared project
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 54814 59808 59809 59928 69103 (view as bug list)
Depends on: 60896
Blocks:
  Show dependency tree
 
Reported: 2004-04-20 10:42 EDT by Ondrej Chylik CLA
Modified: 2004-09-23 12:15 EDT (History)
6 users (show)

See Also:


Attachments
Patch implementing new preferences API for jdt-core. (59.31 KB, patch)
2004-05-05 17:27 EDT, Frederic Fusier CLA
no flags Details | Diff
Patch for jdt.core.tests.model project (41.33 KB, patch)
2004-05-05 17:28 EDT, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Chylik CLA 2004-04-20 10:42:42 EDT
Currently the compiler settings (Compliance, Problems, Style) are configured 
per workspace and may be customized for individual projects. But this is still 
stored inside workspace (under the .metadata area).

A functionality that is missing is sharing these settings per-project with 
other team members. Most probably that would mean having an additional dot-file 
(e.g. .compilersettings, something containing similar information like .jprefs 
files do) inside the project and sharing it transparently through VCS.

In my opinion and experience, the compiler settings are part of project 
properties rather than individual customization. Any points showing that I am 
mistaken are also welcome.
Comment 1 Philipe Mulet CLA 2004-04-20 19:03:50 EDT
This is something we had in mind since day one, but were reluctant to add yet 
another artifact. We want to convert in a near future to using new shareable 
preference support from the platform (on per project basis).

Time permitting.
Comment 2 Philipe Mulet CLA 2004-04-26 07:25:52 EDT
*** Bug 59809 has been marked as a duplicate of this bug. ***
Comment 3 Philipe Mulet CLA 2004-04-26 07:26:29 EDT
*** Bug 59808 has been marked as a duplicate of this bug. ***
Comment 4 Philipe Mulet CLA 2004-04-26 09:57:56 EDT
*** Bug 59928 has been marked as a duplicate of this bug. ***
Comment 5 Philipe Mulet CLA 2004-04-30 08:56:57 EDT
Investigating feasability within M9, if unable then will be deferred post 3.0.
Comment 6 Philipe Mulet CLA 2004-05-05 12:24:01 EDT
Deferring as platform code hasn't fully stabilized yet. Migration is finished, 
but too risky for 3.0. We will though release it into 1.5 branch, and it will 
be available in the Cheetah update.

Frederic - pls also attach your changes to this defect as a patch.
Comment 7 Frederic Fusier CLA 2004-05-05 17:27:22 EDT
Created attachment 10314 [details]
Patch implementing new preferences API for jdt-core.

This patch is available for build I200405050200. I will refresh it when
necessary...
Applying it will result to move project jdt-core preferences from file
<workspace>/.metadata\.plugins\org.eclipse.core.resources\.projects\<project>\org.eclipse.jdt.core\.jprefs
 directory to file <workspace>/<project>/.settings/org.eclipse.jdt.core.prefs
Note that this patch also requires a patch for test class OptionTests in
project org.eclipse.jdt.core.tests.model. I will attache a patch in next
comment...

If you try to use this patch, please let me know any trouble you get with it,
thx
Comment 8 Frederic Fusier CLA 2004-05-05 17:28:50 EDT
Created attachment 10315 [details]
Patch for jdt.core.tests.model project

Here's the patch to avoid trouble with OptionTests class in
org.eclipse.jdt.core.tests.model project...
Comment 9 Frederic Fusier CLA 2004-05-05 17:33:44 EDT
Note that this code should be released in 1.5 code stream by the end of this
week and so will be available in next "official" Cheetah version (Cheetah 05).
Comment 10 Frederic Fusier CLA 2004-05-06 11:03:25 EDT
Fixed and released in JDK_1_5 branch (since v_150_0506).
Comment 11 Philipe Mulet CLA 2004-05-07 17:48:04 EDT
Should have been tagged as fixed.
Comment 12 Philipe Mulet CLA 2004-05-07 17:48:23 EDT
Fixed.
Comment 13 Philipe Mulet CLA 2004-05-10 05:37:20 EDT
*** Bug 54814 has been marked as a duplicate of this bug. ***
Comment 14 Philipe Mulet CLA 2004-07-03 11:53:34 EDT
*** Bug 69103 has been marked as a duplicate of this bug. ***
Comment 15 David Audel CLA 2004-09-23 12:15:37 EDT
Verified in I200409230100.