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: 20a0aa2)
raw | patch | inline | side by side (parent: 20a0aa2)
author | Doni Pracner <quinnuendo@gmail.com> | |
Fri, 24 Jan 2014 17:09:14 +0000 (18:09 +0100) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Fri, 24 Jan 2014 17:09:14 +0000 (18:09 +0100) |
build.xml | patch | blob | history |
diff --git a/build.xml b/build.xml
index c2cd80f686467ca9073d4100fc7fd11c4ceee08e..d03ecff2c897ba09ba639ee3a1a0b39205524b3d 100644 (file)
--- a/build.xml
+++ b/build.xml
<property name="compiler.src.dir" value="lib/compiler-src" />
<property name="compiler.classname.compiler" value="MJ.Compiler" />
<property name="compiler.classname.interpreter" value="MJ.Run" />
+ <property name="compiler.classname.decoder" value="MJ.Decode" />
<property name="samples.main.dir" value="samples" />
<property name="samples.temp.dir" value="temp" />
</foreach>
</target>
+ <target name="mj-decode" description="decode a MJ obj file given in ${filename}">
+ <echo message="${filename}" />
+ <java classpath="${compiler.class.dir}" classname="${compiler.classname.decoder}">
+ <arg value="${filename}" />
+ </java>
+ </target>
+
+ <target name="mj-decode-samples" depends="mj-build" description="decode all of the compiled samples">
+ <foreach param="filename" target="mj-decode">
+ <path>
+ <fileset dir='${samples.temp.dir}'>
+ <include name="*.obj"/>
+ </fileset>
+ </path>
+ </foreach>
+ </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="${compiler.classname.interpreter}" inputstring="${inputstring}">