forked from ceylon/ceylon-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.eclipse
77 lines (43 loc) · 2.03 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
Setting up Eclipse to build the Ceylon compiler
===============================================
0. First make sure you have compiled the ceylon projects according to the instruction in the README.md file
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 and spec projects are located
d) Click "Ok"
5. Back in the Wizard dialog:
a) Make sure the projects ceylon-compiler, ceylon-spec and ceylon.language are selected
b) Click "Finish"
6. 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".
7. The project should now be correctly set up. To test it:
8. Select "Run -> Run Configurations..." from the main menu.
9. 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"
10. 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.