jat@google.com | c1eb4c1 | 2010-10-12 21:00:54 +0000 | [diff] [blame] | 1 | Steps to process CLDR data using Eclipse: |
| 2 | |
Manuel Carrasco Moñino | 120e019 | 2014-03-22 13:32:25 +0100 | [diff] [blame] | 3 | 1) Get latest CLDR data available locally on your system and compile |
| 4 | it, such as by: |
Manuel Carrasco Moñino | 299a823 | 2014-05-03 10:40:01 +0200 | [diff] [blame] | 5 | $ svn co http://unicode.org/repos/cldr/tags/release-25 <cldrdir> |
Manuel Carrasco Moñino | 120e019 | 2014-03-22 13:32:25 +0100 | [diff] [blame] | 6 | $ cd release-25/tools/java |
| 7 | $ ant clean jar |
| 8 | 2) Required CLDR variables in Eclipse |
| 9 | Set a linked resource variable pointing to this: |
jat@google.com | c1eb4c1 | 2010-10-12 21:00:54 +0000 | [diff] [blame] | 10 | Window -> Preferences -> General -> Workspace -> Linked Resources |
Manuel Carrasco Moñino | 120e019 | 2014-03-22 13:32:25 +0100 | [diff] [blame] | 11 | Add a variable CLDR_ROOT pointing to <cldrdir> above |
| 12 | Create a classpath variable pointing to the same folder: |
| 13 | Window -> Preferences -> Java -> Build Path -> Classpath Variables |
| 14 | Create a variable named CLDR_ROOT pointing to <cldrdir> |
| 15 | Create a string subtitution variable: |
| 16 | Window -> Preferences -> Run/Debug -> String Substitution -> New |
| 17 | Create the variable CLDR_ROOT pointing to <cldrdir> |
jat@google.com | c1eb4c1 | 2010-10-12 21:00:54 +0000 | [diff] [blame] | 18 | 3) Import the cldr-data, cldr-tools, and cldr-import projects (note that |
| 19 | CLDR_ROOT must be defined as above, or you will have to delete and |
| 20 | reimport these projects). |
| 21 | File -> Import -> General -> Existing Projects in Workspace |
| 22 | Browse to $GWT_ROOT/eclipse and select the cldr-data, cldr-tools, |
| 23 | and cldr-import projects. |
Manuel Carrasco Moñino | 299a823 | 2014-05-03 10:40:01 +0200 | [diff] [blame] | 24 | 4) Set Compiler compliance level to 1.7 |
| 25 | Project -> Properties -> Java Compiler -> Enable project specific settings |
| 26 | -> Compiler compliance level 1.7 -> use default compliance settings. |
| 27 | 5) Run the GenerateGwtCldrData launch config -- by default, it will |
jat@google.com | c1eb4c1 | 2010-10-12 21:00:54 +0000 | [diff] [blame] | 28 | overwrite files in the GWT distribution; edit the --outdir argument |
| 29 | if you want it to go somewhere else. |