-
Notifications
You must be signed in to change notification settings - Fork 36
/
README.eclipse
91 lines (51 loc) · 2.68 KB
/
README.eclipse
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Setting up Eclipse to build the Ceylon compiler
===============================================
First make sure you have compiled the ceylon projects according to the instruction in the README.md file!
0. Set your default "Text file encoding" to "UTF-8" and your default "New text file line delimiter"
to "Unix" in your Eclipse preferences (Window -> Preferences -> General -> Workspace). If you do
this you can skip Step 6 below.
1. NB, in this file, "/path/to/ceylon" should be replaced with the
full path of the directory containing this file.
2. Select "File -> Import..." from the main menu.
3. In the "Import" dialog:
a) Select "General -> Existing Projects into Workspace"
c) Click "Next >"
4. In the next page of the "Import" dialog:
a) Make sure the "Select root directory" is selected
b) Click the "Browse..." button
c) Select the folder where the compiler, language, spec, common, runtime and module-resolver projects are located
d) Click "Ok"
5. Back in the Wizard dialog:
a) Make sure the projects ceylon-compiler, ceylon-spec, ceylon.language, ceylon-common, ceylon-runtime and ceylon-module-resolver are selected
b) Click "Finish"
6. If you didn't apply the setting of Step 0 you now have to set them in the properties for each of the imported projects:
a) Right-click on the project, select Properties then Resource
b) Make sure the "Text file encoding" is set to "UTF-8" and
c) The "New text file line delimiter" is set to "Unix"
d) Click "Ok"
7. If you see an error of the form
"Access restriction: Class is not accessible due to restriction on
required library"
Go into
(Project) Properties -> Java Compiler -> Errors/Warnings ->
Locate the "Forbidden reference (access rules)" option under
"Deprecated and restricted API" section in the dialog box. Set
this to Warning" or "Ignore".
8. The project should now be correctly set up. To test it:
9. Select "Run -> Run Configurations..." from the main menu.
10. In the "Run Configurations" dialog:
a) Right click on "JUnit" in the list on the left
and select "New" from the popup menu.
b) Change "Name" to "CeylonCompiler"
c) In the "Test" tab, select "JUnit 4" as "Test runner"
d) Select "Run a single test"
e) In the "Project" line, select "Browse...":
i) Select "ceylon-compiler"
ii) Click "Ok"
f) In the "Test class" line, select "Search...":
i) Select "AllTests"
ii) Click "Ok"
g) Click "Run"
11. You should see some output from the Ceylon compiler in the
"Console" tab at the bottom of the screen. Some tests will fail
but most should succeed.