summaryrefslogtreecommitdiff
path: root/test/script-tests/jar-manifest/run-test.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-11-21 20:38:58 +0000
committerPaul Phillips <paulp@improving.org>2011-11-21 20:38:58 +0000
commiteb0643210f2007775df3d116f237056ec5916874 (patch)
treeb568cfb05b6a881dc32d67fbff54497fbbcb7a0c /test/script-tests/jar-manifest/run-test.check
parentf9278123ebc33bbd4833e431575c4d1b22404d57 (diff)
downloadscala-eb0643210f2007775df3d116f237056ec5916874.tar.gz
scala-eb0643210f2007775df3d116f237056ec5916874.tar.bz2
scala-eb0643210f2007775df3d116f237056ec5916874.zip
Implemented manifest-based class-paths.
If you run a jar directly, like scala foo.jar Then if a Class-Path attribute is present in the jar manifest, the classpath will be constructed from that instead of the arguments. Some things remain to be determined, like whether it's supposed to replace a classpath given on the command line or supplement it, and whether the master jar should be on the classpath or only and exactly the jars listed in the manifest. There's a really nice test case, which won't be run of course, but I can't stand going any further without tests for these hard to test on all platforms things. The faux .check file shows what I see. Closes SI-4355, review by harrah.
Diffstat (limited to 'test/script-tests/jar-manifest/run-test.check')
-rw-r--r--test/script-tests/jar-manifest/run-test.check30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/script-tests/jar-manifest/run-test.check b/test/script-tests/jar-manifest/run-test.check
new file mode 100644
index 0000000000..ef59a6cbac
--- /dev/null
+++ b/test/script-tests/jar-manifest/run-test.check
@@ -0,0 +1,30 @@
+Scala code runner version 2.10.0.r26038-b20111121102734 -- Copyright 2002-2011, LAMP/EPFL
+
+% pwd
+/scala/trunk/test/script-tests/jar-manifest/target
+
+% jar tf bippy.jar
+META-INF/
+META-INF/MANIFEST.MF
+bippy/
+bippy/Runner$$anonfun$main$1.class
+bippy/Runner$$anonfun$main$2.class
+bippy/Runner$$anonfun$main$3.class
+bippy/Runner$.class
+bippy/Runner.class
+
+% jar tf dingus.jar
+META-INF/
+META-INF/MANIFEST.MF
+dingus/
+dingus/Printable.class
+
+% /scala/trunk/build/pack/bin/scala bippy.jar
+1 "Greetings from dingus.jar!"
+2 bippyBingle has parameters: imparametorium, antidisestablish, x
+3 bippyBoo has parameters: quuxParameter
+4
+5 Urls exposed through the classloader:
+6 file:/scala/trunk/test/script-tests/jar-manifest/target/./bippy.jar
+7 file:/scala/trunk/test/script-tests/jar-manifest/target/./dingus.jar
+8 http://mirrors.ibiblio.org/pub/mirrors/maven2/com/thoughtworks/paranamer/paranamer/2.4/paranamer-2.4.jar