From 172563dfbbc674789fad1f8d8cd6567e06e52c99 Mon Sep 17 00:00:00 2001 From: michelou Date: Sun, 27 Nov 2011 11:41:16 +0000 Subject: updated test cases for Scala Ant tasks --- test/files/ant/README | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 test/files/ant/README (limited to 'test/files/ant/README') 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 + -- cgit v1.2.3