| OLD | NEW |
| 1 This is an Eclipse workspace for Helios Service Release 2. | 1 This is an Eclipse workspace for Helios Service Release 2. |
| 2 | 2 |
| 3 HOW TO | 3 HOW TO |
| 4 | 4 |
| 5 1. When you open Eclipse the first time, it will ask you to create a | 5 1. When you open Eclipse the first time, it will ask you to create a |
| 6 workspace or select an existing one. You can use this directory as | 6 workspace or select an existing one. You can use this directory as |
| 7 workspace, or you can choose a different one. | 7 workspace, or you can choose a different one. |
| 8 | 8 |
| 9 2. If you're already using Eclipse, you can either switch to a new | 9 2. If you're already using Eclipse, you can either switch to a new |
| 10 workspace (File > Switch Workspace) or use your current workspace. | 10 workspace (File > Switch Workspace) or use your current workspace. |
| 11 | 11 |
| 12 3. Add the following "Path Variable" to your workspace: | 12 3. Add the following "Path Variable" to your workspace: |
| 13 (Open Preferences... > General > Workspace > Linked Resources) | 13 (Open Preferences... > General > Workspace > Linked Resources) |
| 14 DART_TRUNK: point to the root of your checkout | 14 DART_TRUNK: point to the root of your checkout |
| 15 D8_EXEC: for example DART_TRUNK/compiler/out/Debug_dartc/d8 | |
| 16 or on a mac DART_TRUNK/compiler/xcodebuild/Debug_dashc/d8 | |
| 17 | 15 |
| 18 | 16 |
| 19 4. Add a "Classpath Variable" to your workspace called DART_TRUNK | 17 4. Add a "Classpath Variable" to your workspace called DART_TRUNK |
| 20 that points to the same directory as your DART_TRUNK path variable. | 18 that points to the same directory as your DART_TRUNK path variable. |
| 21 (Open Preferences... > Java > Build Path > Classpath Variables). | 19 (Open Preferences... > Java > Build Path > Classpath Variables). |
| 22 | 20 |
| 23 5. Regardless if you're using this directory as a workspace, you have | 21 5. Regardless if you're using this directory as a workspace, you have |
| 24 to import the projects (File > Import... > General > Existing | 22 to import the projects (File > Import... > General > Existing |
| 25 Projects into Workspace). | 23 Projects into Workspace). |
| 26 | 24 |
| 27 6. Click "Next >" | 25 6. Click "Next >" |
| 28 | 26 |
| 29 7. Select root directory. Browse to: compiler/eclipse.workspace. | 27 7. Select root directory. Browse to: compiler/eclipse.workspace. |
| 30 | 28 |
| 31 8. It should find and select two projects (dartc and tests). | 29 8. It should find and select two projects (dartc and tests). |
| 32 | 30 |
| 33 9. Click Finish. (At this point Eclipse may get stuck, if so, exit | 31 9. Click Finish. (At this point Eclipse may get stuck, if so, exit |
| 34 Eclipse by right-clicking on the dock icon, and restart). | 32 Eclipse by right-clicking on the dock icon, and restart). |
| 35 | 33 |
| 36 10. Repeat steps 5-9, to import the project in third_party/closure-compiler-src | 34 10. Open Preferences... > Java > Compiler > Errors/Warnings > Potential |
| 37 | |
| 38 11. Open the "build.xml" file in the "closure-compiler-src" project. | |
| 39 | |
| 40 12. In the Outline view, right-click on the "jar [default]" target, and select | |
| 41 "Run as..." > "Ant Build". (This will build its version of Rhino and JarJar | |
| 42 it). | |
| 43 | |
| 44 13. Open Preferences... > Java > Compiler > Errors/Warnings > Potential | |
| 45 programming problems. Change "Serializable class without | 35 programming problems. Change "Serializable class without |
| 46 serialVersionUID" to "Ignore". | 36 serialVersionUID" to "Ignore". |
| 47 | 37 |
| 48 14. Import the launch configuration (File > Import... > Run/Debug > | 38 11. Import the launch configuration (File > Import... > Run/Debug > |
| 49 Launch Configurations). | 39 Launch Configurations). |
| 50 | 40 |
| 51 15. Click "Next >" | 41 12. Click "Next >" |
| 52 | 42 |
| 53 16. In SVN, browse to: compiler/eclipse.workspace/tests. | 43 13. In SVN, browse to: compiler/eclipse.workspace/tests. |
| 54 | 44 |
| 55 17. Select "tests". | 45 14. Select "tests". |
| 56 | 46 |
| 57 18. Click Finish. | 47 15. Click Finish. |
| 58 | 48 |
| 59 19. Try running the tests: Run > Run History > dartc test suites. | 49 16. Try running the tests: Run > Run History > dartc test suites. |
| OLD | NEW |