From 34943979b77efea44e099e93ee4ee48b42e35091 Mon Sep 17 00:00:00 2001 From: Grzegorz Kossakowski Date: Fri, 7 Jun 2013 15:47:19 -0700 Subject: Add Eclipse project for JUnit tests. --- src/eclipse/README.md | 3 +++ src/eclipse/test-junit/.classpath | 12 ++++++++++++ src/eclipse/test-junit/.project | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 src/eclipse/test-junit/.classpath create mode 100644 src/eclipse/test-junit/.project (limited to 'src') diff --git a/src/eclipse/README.md b/src/eclipse/README.md index 39a3f457a0..44dd3d83ea 100644 --- a/src/eclipse/README.md +++ b/src/eclipse/README.md @@ -11,6 +11,9 @@ IMPORTANT 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. +Additionally, we start using Maven dependencies (e.g. junit) so you need to define +`classpath variable` inside Eclipse. Define `M2_REPO` in Java/Build Path/Classpath Variables +to point to your local Maven repository (e.g. $HOME/.m2/repository). 2. The Eclipse Java compiler does not allow certain calls to restricted APIs in the JDK. The Scala library uses such APIs, so you'd see this error: diff --git a/src/eclipse/test-junit/.classpath b/src/eclipse/test-junit/.classpath new file mode 100644 index 0000000000..718f7b6ece --- /dev/null +++ b/src/eclipse/test-junit/.classpath @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/eclipse/test-junit/.project b/src/eclipse/test-junit/.project new file mode 100644 index 0000000000..052b6c1b6f --- /dev/null +++ b/src/eclipse/test-junit/.project @@ -0,0 +1,35 @@ + + + test-junit + + + + + + org.scala-ide.sdt.core.scalabuilder + + + + + + org.scala-ide.sdt.core.scalanature + org.eclipse.jdt.core.javanature + + + + build-test-junit + 2 + SCALA_BASEDIR/build/junit/classes + + + lib + 2 + SCALA_BASEDIR/lib + + + test-junit + 2 + SCALA_BASEDIR/test/junit + + + -- cgit v1.2.3