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: 3a2a44c)
raw | patch | inline | side by side (parent: 3a2a44c)
author | Doni Pracner <quinnuendo@gmail.com> | |
Sat, 15 Feb 2014 15:00:33 +0000 (16:00 +0100) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Sat, 15 Feb 2014 15:16:51 +0000 (16:16 +0100) |
build.xml | patch | blob | history | |
docs/running-ant.txt | patch | blob | history |
diff --git a/build.xml b/build.xml
index 7fb3ee4bb30480964d36fb79156a6fe3aeb67b1e..eaeef455834d3911f1a66932e1c520c30a79016f 100644 (file)
--- a/build.xml
+++ b/build.xml
<property name="res.dir" value="res" />
+ <property name="compiler.class.jar" value="lib/mj.jar" />
<property name="compiler.class.dir" value="lib/compiler-bin" />
<property name="compiler.src.dir" value="lib/compiler-src" />
<property name="compiler.classname.compiler" value="MJ.Compiler" />
<target name="mj-compile" description="compile a MJ into obj file; given ${filename}">
<echo message="${filename}" />
- <java classpath="${compiler.class.dir}" classname="${compiler.classname.compiler}">
+ <java classpath="${compiler.class.dir}:${compiler.class.jar}" classname="${compiler.classname.compiler}">
<arg value="${filename}" />
</java>
</target>
- <target name="mj-samples" depends="mj-build" description="run the mj compiler on the samples">
+ <target name="mj-samples" description="run the mj compiler on the samples">
<foreach param="filename" target="mj-compile">
<path>
<fileset dir='${samples.temp.dir}'>
<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}">
+ <java classpath="${compiler.class.dir}:${compiler.class.jar}" classname="${compiler.classname.decoder}">
<arg value="${filename}" />
</java>
</target>
- <target name="mj-decode-samples" depends="mj-build" description="decode all of the compiled samples and save into file 'decoded.txt'">
+ <target name="mj-decode-samples" description="decode all of the compiled samples and save into file 'decoded.txt'">
<record name="${samples.temp.dir}/decoded.txt" emacsmode="true" loglevel="info"/>
<foreach param="filename" target="mj-decode">
<path>
<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}">
+ <java classpath="${compiler.class.dir}:${compiler.class.jar}" classname="${compiler.classname.interpreter}" inputstring="${inputstring}">
<arg value="${filename}" />
</java>
</target>
diff --git a/docs/running-ant.txt b/docs/running-ant.txt
index 03c399d7599e9cc07b91d851e994f3bed57cb4e2..238040409ee860e8d3c0bb2a6f69c53528ec39de 100644 (file)
--- a/docs/running-ant.txt
+++ b/docs/running-ant.txt
This project supplies an ant build file.
When used without parameters it will
-- build the main tool, mjc2wsl, as well as the MicroJava compiler
+- build the main tool, mjc2wsl
- compile all the given MicroJava samples in a temp folder
- translated these to WSL
- run a transformation script for all of these files
MicroJava tasks
---------------
-These tasks use "compiler.class.dir"
+These tasks use "compiler.class.jar" to get the classes,
+but will also look first into "compiler.class.dir" if there
+is any override.
+
mj-decode - decode the bytecode given in "filename" into
operation names and parameteres (uses