summaryrefslogtreecommitdiff
path: root/test/files/ant/README
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2011-11-27 11:41:16 +0000
committermichelou <michelou@epfl.ch>2011-11-27 11:41:16 +0000
commit172563dfbbc674789fad1f8d8cd6567e06e52c99 (patch)
treece66093b871f42b84aee64456f3def25878a2a5e /test/files/ant/README
parent37201dd3cd6da6ca47f651a5b346a7706ae1e561 (diff)
downloadscala-172563dfbbc674789fad1f8d8cd6567e06e52c99.tar.gz
scala-172563dfbbc674789fad1f8d8cd6567e06e52c99.tar.bz2
scala-172563dfbbc674789fad1f8d8cd6567e06e52c99.zip
updated test cases for Scala Ant tasks
Diffstat (limited to 'test/files/ant/README')
-rw-r--r--test/files/ant/README42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/files/ant/README b/test/files/ant/README
new file mode 100644
index 0000000000..8cd8745970
--- /dev/null
+++ b/test/files/ant/README
@@ -0,0 +1,42 @@
+README
+======
+
+Test cases in directory test/files/ant/ are executed by invoking an
+Ant script whose name ends with "build.xml" (eg. "fsc001-build.xml").
+
+The Scala Ant tasks fsc/scalac/scaladoc are instantiated from various
+binaries (quick/pack/latest/installed) and are executed with different
+combinations of Ant attributes/elements:
+
+ +---------------------------+--------------------------+
+ | Attributes | Nested elements |
+------------+---------------------------+--------------------------+
+fsc001 | srcdir,classpath (1) | compilerarg |
+fsc002 | srcref,classpathref (1) | compilerarg |
+fsc003 | (2) | compilerarg,src,include |
+------------+---------------------------+--------------------------+
+scalac001 | srcdir,classpath (1) | |
+scalac002 | srcref,classpathref (1) | |
+scalac003 | (2) | src,include |
+scalac004 | deprecation,unchecked (3) | |
+------------+---------------------------+--------------------------+
+scaladoc | srcdir,classpathref | |
+------------+---------------------------+--------------------------+
+
+Other attributes:
+(1) includes,destdir
+(2) destdir,classpathref
+(3) srcdir,includes,destdir,classpath
+
+
+The above test cases can also be run from the command prompt using one of
+the following shell commands:
+
+1) For quick/pack/latest binaries (-Dbinary=quick|pack|latest)
+
+$ ant -Dbinary=quick -Dproject.dir=$HOME/workspace/scala -f scalac001-build.xml
+
+2) For installed binaries (-Dbinary=installed)
+
+$ ant -Dbinary=installed -Dinstalled.dir=/opt/scala -f scalac001-build.xml
+