Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse project files for library, reflect, fjbg & compiler #759

Merged
merged 1 commit into from
Jun 26, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions classpath.SAMPLE

This file was deleted.

23 changes: 23 additions & 0 deletions src/eclipse/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Eclipse project files
=====================

Import all projects inside Eclipse by choosing File/Import Existing Projects
and navigate to src/eclipse. Check all projects and click ok.

IMPORTANT
=========

You need to define a `path variable` inside Eclipse. Define SCALA_BASEDIR in
Preferences/General/Workspace/Linked Resources. The value should be the absolute
path to your scala checkout. All paths in project files are relative to this one,
so nothing will work before you do so.

DETAILS
=======

The compiler project depends on the library, reflect, asm and fjbg projects. The
builder will take care of the correct ordering, and changes in one project will
be picked up by the dependent projects.

The output directory is set to be build/quick, so the runner scripts in quick
work as they are (run an ant build to have the generated once)
7 changes: 7 additions & 0 deletions src/eclipse/asm/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="SCALA_BASEDIR"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="asm-quick-bin"/>
</classpath>
29 changes: 29 additions & 0 deletions src/eclipse/asm/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>asm</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>SCALA_BASEDIR</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/src/asm</locationURI>
</link>
<link>
<name>asm-quick-bin</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/build/asm/classes</locationURI>
</link>
</linkedResources>
</projectDescription>
7 changes: 7 additions & 0 deletions src/eclipse/fjbg/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="fjbg"/>
<classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="output" path="libs-classes-fjbg"/>
</classpath>
14 changes: 13 additions & 1 deletion project.SAMPLE → src/eclipse/fjbg/.project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>scala</name>
<name>fjbg</name>
<comment></comment>
<projects>
</projects>
Expand All @@ -15,4 +15,16 @@
<nature>org.scala-ide.sdt.core.scalanature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>fjbg</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/src/fjbg</locationURI>
</link>
<link>
<name>libs-classes-fjbg</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/build/libs/classes/fjbg</locationURI>
</link>
</linkedResources>
</projectDescription>
7 changes: 7 additions & 0 deletions src/eclipse/reflect/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="reflect"/>
<classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="output" path="build-quick-reflect"/>
</classpath>
30 changes: 30 additions & 0 deletions src/eclipse/reflect/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>reflect</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.scala-ide.sdt.core.scalabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.scala-ide.sdt.core.scalanature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>build-quick-reflect</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/build/quick/classes/reflect</locationURI>
</link>
<link>
<name>reflect</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/src/reflect</locationURI>
</link>
</linkedResources>
</projectDescription>
14 changes: 14 additions & 0 deletions src/eclipse/scala-compiler/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="compiler"/>
<classpathentry combineaccessrules="false" kind="src" path="/scala-library"/>
<classpathentry combineaccessrules="false" kind="src" path="/fjbg"/>
<classpathentry combineaccessrules="false" kind="src" path="/asm"/>
<classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/ant/ant.jar"/>
<classpathentry kind="lib" path="lib/jline.jar"/>
<classpathentry kind="lib" path="lib/msil.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/reflect"/>
<classpathentry kind="output" path="build-quick-compiler"/>
</classpath>
35 changes: 35 additions & 0 deletions src/eclipse/scala-compiler/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>scala-compiler</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.scala-ide.sdt.core.scalabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.scala-ide.sdt.core.scalanature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>build-quick-compiler</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/build/quick/classes/compiler</locationURI>
</link>
<link>
<name>compiler</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/src/compiler</locationURI>
</link>
<link>
<name>lib</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/lib</locationURI>
</link>
</linkedResources>
</projectDescription>
7 changes: 7 additions & 0 deletions src/eclipse/scala-library/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="library"/>
<classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="output" path="build-quick-lib"/>
</classpath>
30 changes: 30 additions & 0 deletions src/eclipse/scala-library/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>scala-library</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.scala-ide.sdt.core.scalabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.scala-ide.sdt.core.scalanature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>build-quick-lib</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/build/quick/classes/library</locationURI>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you use ant to drive the builds?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I thought it's still the official way. Good defaults are important, so do you suggest to place it somewhere else?

I like the quick location because then I can use the quick/bin/scalac runner script to immediately test my compiler.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's how i test my eclipse-built compiler as well

</link>
<link>
<name>library</name>
<type>2</type>
<locationURI>SCALA_BASEDIR/src/library</locationURI>
</link>
</linkedResources>
</projectDescription>