compileTests in build.xml and command-line script to execute test
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
exec java -classpath 'dist/classes/tests:compiler/frontend/src:dist/classes/runtime:dist/classes/compiler:lib/*:ideaSDL/core/*:ideaSDK/lib/*' "$@"
|
||||
|
||||
# vim: set ts=4 sw=4 et ft=sh:
|
||||
@@ -134,6 +134,17 @@
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="compileTests" depends="dist">
|
||||
<mkdir dir="${output}/classes/tests"/>
|
||||
<javac destdir="${output}/classes/tests" debug="true" includeAntRuntime="false">
|
||||
<src path="compiler/tests"/>
|
||||
<classpath refid="classpath"/>
|
||||
<classpath location="${output}/classes/compiler"/>
|
||||
<classpath location="ideaSDK/lib/junit-4.10.jar"/>
|
||||
<classpath location="ideaSDK/lib/idea.jar"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<jar destfile="${kotlin-home}/lib//kotlin-compiler.jar">
|
||||
<fileset dir="${output}/classes/compiler"/>
|
||||
|
||||
Reference in New Issue
Block a user