Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rssh/scala-annotated-import-example
base: 19c04f2605
...
head fork: rssh/scala-annotated-import-example
compare: 2bd12adc12
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 8 files changed
  • 0 commit comments
  • 1 contributor
View
15 README.md
@@ -1,2 +1,15 @@
scala-annotated-import-example
-==============================
+==============================
+
+This is code examples, which illustrated annotated-imports presip.
+
+To use one you need:
+
+1. get patched scala compiler from git@github.com:rssh/scala.git
+
+2. switch in one to branch 'annotated-import' and compile compiler
+
+3. return to scala-annotated-import-example and set in config.sh path to
+ directory where patched compiler is situated.
+
+4. scalac.sh can be used for compiling; scaladoc - for creating scaladoc in API dir.
View
2  build/README
@@ -0,0 +1,2 @@
+
+ scalac output will be here.
View
3  config.sh
@@ -0,0 +1,3 @@
+
+SCALA_HOME=/home/rssh/packages/scala/rssh-fork-3/scala
+export SCALA_HOME
View
7 scalac.sh
@@ -0,0 +1,7 @@
+
+. ./config.sh
+. ./vars.sh
+
+#
+
+java -classpath $QUICK_CLASSPATH $SCALAC_CLASS -usejavacp -d build src/example/*.scala
View
7 scaladoc.sh
@@ -0,0 +1,7 @@
+
+. ./config.sh
+. ./vars.sh
+
+#
+
+java -classpath $QUICK_CLASSPATH $SCALADOC_CLASS -usejavacp -d api src/example/*.scala
View
9 src/example/X.scala
@@ -0,0 +1,9 @@
+package example
+
+object X
+{
+ @exported import Y._
+
+ val xv = "XV"
+
+}
View
11 src/example/Y.scala
@@ -0,0 +1,11 @@
+package example
+
+object Y
+{
+ @exported import X._
+
+ val yv = "YV"
+
+ def yrun: Unit = Console.println("yv=%s, xv=%s".format(yv,xv))
+
+}
View
21 vars.sh
@@ -0,0 +1,21 @@
+
+. ./config.sh
+
+#
+
+SCALADOC_CLASS='scala.tools.nsc.ScalaDoc'
+echo $SCALADOC_CLASS
+
+SCALAC_CLASS='scala.tools.nsc.Main'
+echo $SCALAC_CLASS
+
+QUICK_CLASSES=$SCALA_HOME/
+
+QUICK_CLASSPATH=`sh $SCALA_HOME/tools/buildcp quick`
+echo $QUICK_CLASSPATH
+
+QUICK_SCALAC="java -classpath $QUICK_CLASSPATH $SCALAC_CLASS -usejavacp"
+QUICK_SCALADOC="java -classpath $QUICK_CLASSPATH $SCALADOC_CLASS -usejavacp"
+
+
+# java -classpath $QUICK_CLASSPATH $SCALADOC_CLASS -usejavacp $*

No commit comments for this range

Something went wrong with that request. Please try again.