gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
ant - added properties for MJ compiler/runner class names
authorDoni Pracner <quinnuendo@gmail.com>
Sun, 5 Jan 2014 17:19:02 +0000 (18:19 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Sun, 5 Jan 2014 17:19:02 +0000 (18:19 +0100)
build.xml

index fac261a021b712478ffe461289d76d966159c258..e3617bf19cca0fb92f4dafa4fd8009bb472946d0 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -21,6 +21,8 @@
     
     <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" />
     
     <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>
 
     <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" inputstring="${inputstring}">
+        <java classpath="${compiler.class.dir}" classname="${compiler.classname.interpreter}" inputstring="${inputstring}">
             <arg value="${filename}" />
         </java>
     </target>
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner