Bug 133584 - Builders/Deployers need indication of file encoding
Summary: Builders/Deployers need indication of file encoding
Status: RESOLVED DUPLICATE of bug 155015
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 11:36 EST by Cheryl Sedota CLA
Modified: 2009-01-07 19:11 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 Cheryl Sedota CLA 2006-03-28 11:36:14 EST
In Eclipse, you can set the file encoding in several different ways and it would be nice if Eclipse recommended the preferred way for all builders/deployers to determine which encoding to use for their output files.

Examples:

1. Use the file encoding set explicitly via Eclipse:

a. Tries to use the file encoding of the file if it was set directly on the file itself (right-click on file and select the appropriate file encoding)
b. Tries to use the file encoding of parent folder(s) of the artifact if set, all the way up to the project folder.
c. Tries to use the file encoding set on the workspace (The Editor file encoding set via the Window --> Preferences --> Workbench --> Editors --> File encoding)

2. Uses the file encoding of the JVM (system (OS) default used if not explicitly set in eclipse with the VMArgs "-Dfile.encoding=UTF8" for example.

3. Uses the default file encoding used by the operating system

4. Uses the file encoding of the source file that is being built/deployed

Eclipse should give builders/deployers guidance on how to determine the output file encoding to use when generating files so that all builders'/deployers' output will be consistent.
Comment 1 Pascal Rapicault CLA 2007-03-30 09:27:25 EDT
Encodings can be specified in the build.properties of each plugin. 
Moving to PDE UI for the synchronization issue.
Comment 2 Benjamin Cabé CLA 2009-01-07 19:08:42 EST
Cheryl, you're talking about builders in the large, and not only PDE plugin/feature builders, right? If so, I'm not sure PDE/UI is the best component for your request (which, if I understand things well, would consist in some sort of API at builder level to know the "right" encoding for a given file).
Bug 155015 may be -a bit- similar to this one anyway.
Comment 3 Chris Aniszczyk CLA 2009-01-07 19:11:15 EST
I'll consider this a dupe of bug 155015.

Note that this still doesn't cover the individual file case, which I think would be way too expensive to do in a validation routine. This is something that you would have to run elsewhere where a user would know it would take awhile.

*** This bug has been marked as a duplicate of bug 155015 ***