summaryrefslogtreecommitdiff
path: root/build.detach.xml
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-12 16:24:12 -0800
committerPaul Phillips <paulp@improving.org>2012-12-12 16:24:12 -0800
commit2d6ce2a10fd6e5627de586d616b8e7cb409d1417 (patch)
tree311a3d0fd15086a951d8e0f0d5e865f8e44cb6a7 /build.detach.xml
parent89decde4272c1428f884fd4c4d293cb6a8c7af13 (diff)
downloadscala-2d6ce2a10fd6e5627de586d616b8e7cb409d1417.tar.gz
scala-2d6ce2a10fd6e5627de586d616b8e7cb409d1417.tar.bz2
scala-2d6ce2a10fd6e5627de586d616b8e7cb409d1417.zip
Removed src/detach.
Prying one more stowaway off the side of the train. This isn't used, hasn't been used, and won't be used.
Diffstat (limited to 'build.detach.xml')
-rw-r--r--build.detach.xml184
1 files changed, 0 insertions, 184 deletions
diff --git a/build.detach.xml b/build.detach.xml
deleted file mode 100644
index 03360e36d5..0000000000
--- a/build.detach.xml
+++ /dev/null
@@ -1,184 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<project name="sabbus" default="build">
-
- <description>
-SuperSabbus for Scala detach plugin.
- </description>
-
- <echo level="info" message="Running SABBUS for ${ant.project.name}..."/>
-
-<!-- ===========================================================================
-END-USER TARGETS
-============================================================================ -->
-
- <target name="build" depends="pack.done"
- description="Builds the Scala detach plugin."/>
-
- <target name="clean" depends="quick.clean">
- </target>
-
- <target name="all.clean" depends="quick.clean, pack.clean">
- </target>
-
-<!-- ===========================================================================
-PROPERTIES
-============================================================================ -->
-
- <property environment="env"/>
- <!-- Prevents system classpath from being used -->
- <property name="build.sysclasspath" value="ignore"/>
-
- <!-- Defines the repository layout -->
- <property name="lib.dir" value="${basedir}/lib"/>
- <property name="src.dir" value="${basedir}/src"/>
- <property name="partest.dir" value="${basedir}/test"/>
-
- <!-- Loads custom properties definitions -->
- <property file="${basedir}/build.properties"/>
-
- <!-- Sets location of build folders -->
- <property name="build.dir" value="${basedir}/build"/>
- <property name="build-quick.dir" value="${build.dir}/quick"/>
- <property name="build-pack.dir" value="${build.dir}/pack"/>
-
- <!-- if ANT_OPTS is already set by the environment, it will be unaltered,
- but if it is unset it will take this default value. -->
- <property name="env.ANT_OPTS" value="-Xms1024M -Xmx1024M -Xss1M -XX:MaxPermSize=128M -XX:+UseParallelGC" />
-
- <property
- name="scalacfork.jvmargs"
- value="${env.ANT_OPTS}"/>
-
- <property name="scalac.args.quick" value="-deprecation"/>
- <property name="scalac.args.optimise" value=""/>
-
- <!-- Setting-up Ant contrib tasks -->
- <taskdef resource="net/sf/antcontrib/antlib.xml" classpath="${lib.dir}/ant/ant-contrib.jar"/>
-
-<!-- ===========================================================================
-QUICK BUILD (QUICK)
-============================================================================ -->
-
- <target name="quick.clean">
- <delete includeemptydirs="yes" quiet="yes" failonerror="no">
- <fileset dir="${build-quick.dir}/classes/detach-library"/>
- <fileset dir="${build-quick.dir}/classes/detach-plugin"/>
- </delete>
- </target>
-
- <target name="quick.done">
- <stopwatch name="quick.done.timer"/>
- <path id="quick.classpath">
- <pathelement location="${build-quick.dir}/classes/library"/>
- <pathelement location="${build-quick.dir}/classes/compiler"/>
- <pathelement location="${lib.dir}/forkjoin.jar"/>
- <pathelement location="${ant.home}/lib/ant.jar"/>
- </path>
- <taskdef
- resource="scala/tools/ant/sabbus/antlib.xml"
- classpathref="quick.classpath"
- />
- <mkdir dir="${build-quick.dir}/classes/detach-plugin"/>
- <scalacfork
- destdir="${build-quick.dir}/classes/detach-plugin"
- compilerpathref="quick.classpath"
- params="${scalac.args.quick}"
- srcdir="${src.dir}/detach/plugin"
- jvmargs="${scalacfork.jvmargs}">
- <include name="**/*.scala"/>
- <compilationpath>
- <pathelement location="${build-quick.dir}/classes/library"/>
- <pathelement location="${build-quick.dir}/classes/compiler"/>
- <pathelement location="${build-quick.dir}/classes/detach-plugin"/>
- <pathelement location="${lib.dir}/forkjoin.jar"/>
- </compilationpath>
- </scalacfork>
- <copy
- file="${src.dir}/detach/plugin/scalac-plugin.xml"
- todir="${build-quick.dir}/classes/detach-plugin"
- />
- <mkdir dir="${build-quick.dir}/classes/detach-library"/>
- <scalacfork
- destdir="${build-quick.dir}/classes/detach-library"
- compilerpathref="quick.classpath"
- params="${scalac.args.quick}"
- srcdir="${src.dir}/detach/library"
- jvmargs="${scalacfork.jvmargs}">
- <include name="**/*.scala"/>
- <compilationpath>
- <pathelement location="${build-quick.dir}/classes/library"/>
- <pathelement location="${lib.dir}/forkjoin.jar"/>
- </compilationpath>
- </scalacfork>
- <touch file="${build-quick.dir}/plugins.complete" verbose="no"/>
- <stopwatch name="quick.done.timer" action="total"/>
- </target>
-
-<!-- ===========================================================================
-PACKED QUICK BUILD (PACK)
-============================================================================ -->
-
- <target name="pack.start" depends="quick.done"/>
-
- <target name="pack.pre-lib" depends="pack.start">
- <uptodate
- property="pack.lib.available"
- targetfile="${build-pack.dir}/lib/scala-detach.jar"
- srcfile="${build-quick.dir}/plugins.complete"/>
- </target>
-
- <target name="pack.lib" depends="pack.pre-lib" unless="pack.lib.available">
- <mkdir dir="${build-pack.dir}/misc/scala-devel/plugins"/>
- <jar destfile="${build-pack.dir}/misc/scala-devel/plugins/detach.jar">
- <fileset dir="${build-quick.dir}/classes/detach-plugin"/>
- </jar>
- <mkdir dir="${build-pack.dir}/lib"/>
- <jar destfile="${build-pack.dir}/lib/scala-detach.jar">
- <fileset dir="${build-quick.dir}/classes/detach-library">
- <include name="scala/**"/>
- </fileset>
- </jar>
- </target>
-
- <target name="pack.done" depends="pack.lib">
- <path id="pack.classpath">
- <pathelement location="${build-pack.dir}/lib/scala-library.jar"/>
- <pathelement location="${build-pack.dir}/lib/scala-compiler.jar"/>
- <pathelement location="${build-pack.dir}/lib/scala-detach.jar"/>
- <pathelement location="${build-pack.dir}/lib/scala-partest.jar"/>
- <pathelement location="${build-pack.dir}/lib/scalap.jar"/>
- <pathelement location="${ant.home}/lib/ant.jar"/>
- <pathelement location="${lib.dir}/jline.jar"/>
- </path>
- <taskdef resource="scala/tools/ant/antlib.xml" classpathref="pack.classpath"/>
- <taskdef resource="scala/tools/partest/antlib.xml" classpathref="pack.classpath"/>
- </target>
-
- <target name="pack.clean">
- <delete includeemptydirs="yes" quiet="yes" failonerror="no">
- <fileset dir="${build-pack.dir}/lib" includes="scala-detach.jar"/>
- <fileset dir="${build-pack.dir}/misc/scala-devel/plugins" includes="detach.jar"/>
- </delete>
- </target>
-
-<!-- ===========================================================================
-TEST SUITE
-============================================================================ -->
-
- <target name="test.suite" depends="pack.done">
- <property name="partest.srcdir" value="files" />
- <partest showlog="yes" erroronfailed="yes" javacmd="${java.home}/bin/java"
- timeout="2400000"
- srcdir="${partest.srcdir}"
- scalacopts="${scalac.args.optimise} -Xpluginsdir ${build-pack.dir}/misc/scala-devel/plugins -Xplugin-require:detach -P:detach:enable">
- <compilationpath>
- <path refid="pack.classpath"/>
- <fileset dir="${partest.dir}/files/lib" includes="*.jar" />
- </compilationpath>
- <negtests dir="${partest.dir}/${partest.srcdir}/detach-neg" includes="*.scala"/>
- <runtests dir="${partest.dir}/${partest.srcdir}/detach-run" includes="*.scala"/>
- </partest>
- </target>
-
-</project>