gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control systemdiff --git a/build.xml b/build.xml
--- a/build.xml
+++ b/build.xml
<property name="compiler.class.dir" value="compiler-bin" />
<property name="compiler.src.dir" value="compiler" />
+ <property name="compiler.classname.compiler" value="Compiler" />
+ <property name="compiler.classname.interpreter" value="Run" />
<property name="samples.main.dir" value="samples" />
<property name="samples.temp.dir" value="samples-temp" />
<javac srcdir="${compiler.src.dir}" destdir="${compiler.class.dir}" includeAntRuntime='no' />
</target>
- <target name="mj-compile">
+ <target name="mj-compile" description="compile a MJ into obj file; given ${filename}">
<echo message="${filename}" />
- <java classpath="${compiler.class.dir}" classname="Compiler">
+ <java classpath="${compiler.class.dir}" classname="${compiler.classname.compiler}">
<arg value="${filename}" />
</java>
</target>
</foreach>
</target>
- <target name="mj-run">
+ <target name="mj-run" description="run a MJ obj file given in ${filename} with ${inputstring}">
<echo message="${filename}" />
- <java classpath="${compiler.class.dir}" classname="Run">
+ <java classpath="${compiler.class.dir}" classname="${compiler.classname.interpreter}" inputstring="${inputstring}">
<arg value="${filename}" />
</java>
</target>
<echo file="${transf.wsl.ini}">${generated-wsl-files}</echo>
</target>
+ <!-- Testing tasks -->
+
+ <target name="test-run"
+ description="run .obj .wsl _t.wsl, given are ${file.dir}, ${file.name} (no extension) and an ${inputstring}">
+ <antcall target="mj-run">
+ <param name="filename" value="${file.dir}/${file.name}.obj" />
+ <param name="inputstring" value="${inputstring}" />
+ </antcall>
+ <antcall target="wsl-run">
+ <param name="filename" value="${file.dir}/${file.name}.wsl" />
+ <param name="inputstring" value="${inputstring}" />
+ </antcall>
+ <antcall target="wsl-run">
+ <param name="filename" value="${file.dir}/${file.name}_t.wsl" />
+ <param name="inputstring" value="${inputstring}" />
+ </antcall>
+ </target>
+
+ <target name="test-run-samples-dir"
+ description="run .obj .wsl _t.wsl, in the samples-temp directory; given ${file.name} (no extension) and an ${inputstring}">
+ <antcall target="test-run">
+ <param name="file.dir" value="${samples.temp.dir}"/>
+ </antcall>
+ </target>
+
<!-- jedit specific flags; needs to be the first or the last 10 lines
:noTabs=true:
-->