gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2798760)
raw | patch | inline | side by side (parent: 2798760)
| author | Doni Pracner <quinnuendo@gmail.com> | |
| Sun, 5 Jan 2014 17:19:02 +0000 (18:19 +0100) | ||
| committer | Doni Pracner <quinnuendo@gmail.com> | |
| Sun, 5 Jan 2014 17:19:02 +0000 (18:19 +0100) | 
| build.xml | patch | blob | history | 
diff --git a/build.xml b/build.xml
index fac261a021b712478ffe461289d76d966159c258..e3617bf19cca0fb92f4dafa4fd8009bb472946d0 100644 (file)
--- 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" />
     <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>