diff options
author | Miles Sabin <miles@milessabin.com> | 2009-07-27 18:36:37 +0000 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2009-07-27 18:36:37 +0000 |
commit | c4a59834b97f9db5cb75e0f3e5bf268faff52383 (patch) | |
tree | b3aff5622a00e4fee0d89ec9095490051c2b4124 /build.xml | |
parent | 68c289a95f70c5cd60f77dc251b3631504d3b59c (diff) | |
download | scala-c4a59834b97f9db5cb75e0f3e5bf268faff52383.tar.gz scala-c4a59834b97f9db5cb75e0f3e5bf268faff52383.tar.bz2 scala-c4a59834b97f9db5cb75e0f3e5bf268faff52383.zip |
Fix for another positions issue; added some pos...
Fix for another positions issue; added some positions unit tests; added
test.positions target to build.xml which validates positions of all
sources in the Scala tree; cleaned up -Yide-debug output for use in the
previous item.
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 81 |
1 files changed, 80 insertions, 1 deletions
@@ -1739,9 +1739,88 @@ FORWARDED TARGETS FOR NIGHTLY BUILDS </target> <!-- =========================================================================== -MISCELLANEOUS +POSITIONS ============================================================================ --> + <target name="test.positions" depends="pack.done"> + <antcall target="test.positions.sub" inheritRefs="true"> + <param name="test.srcs" value="${src.dir}/compiler"/> + </antcall> + <antcall target="test.positions.sub" inheritRefs="true"> + <param name="test.srcs" value="${src.dir}/library"/> + </antcall> + <antcall target="test.positions.sub" inheritRefs="true"> + <param name="test.srcs" value="${src.dir}/actors"/> + </antcall> + <antcall target="test.positions.sub" inheritRefs="true"> + <param name="test.srcs" value="${src.dir}/dbc"/> + </antcall> + <antcall target="test.positions.sub" inheritRefs="true"> + <param name="test.srcs" value="${src.dir}/swing"/> + </antcall> + <antcall target="test.positions.sub" inheritRefs="true"> + <param name="test.srcs" value="${src.dir}/partest"/> + </antcall> + <antcall target="test.positions.sub" inheritRefs="true"> + <param name="test.srcs" value="${src.dir}/scalap"/> + </antcall> + <antcall target="test.positions.tests.sub" inheritRefs="true"> + <param name="test.tests.srcs" value="${test.dir}/files/positions"/> + </antcall> + <antcall target="test.positions.tests.sub" inheritRefs="true"> + <param name="test.tests.srcs" value="${test.dir}/files/pos"/> + </antcall> + <antcall target="test.positions.tests.sub" inheritRefs="true"> + <param name="test.tests.srcs" value="${test.dir}/files/run"/> + </antcall> + <antcall target="test.positions.tests.sub" inheritRefs="true"> + <param name="test.tests.srcs" value="${test.dir}/files/neg"/> + </antcall> + </target> + + <target name="test.positions.sub"> + <echo message="Validating positions for: ${test.srcs}"/> + <if> + <isfileselected file="${test.srcs}"> + <type type="dir"/> + </isfileselected> + <then> + <property name="srcdir" value="${test.srcs}"/> + <property name="srcs" value="**/*.scala"/> + </then> + <else> + <dirname property="srcdir" file="${test.srcs}"/> + <basename property="srcs" file="${test.srcs}"/> + </else> + </if> + <scalacfork + destdir="" + compilerpathref="pack.classpath" + srcdir="${srcdir}" + params="-Xprint-pos -Yide-debug" + jvmargs="${scalacfork.jvmargs}"> + <include name="${srcs}"/> + </scalacfork> + </target> + + <target name="test.positions.tests.sub"> + <foreach target="test.positions.sub" + inheritAll="true" + inheritRefs="true" + param="test.srcs"> + <path> + <fileset dir="${test.tests.srcs}" includes="*.scala"/> + <dirset dir="${test.tests.srcs}"> + <include name="*"/> + </dirset> + </path> + </foreach> + </target> + + <!-- =========================================================================== + MISCELLANEOUS + ============================================================================ --> + <target name="graph.init"> <taskdef name="vizant" classname="vizant.Vizant" classpath="${lib-ant.dir}/vizant.jar"/> </target> |