Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (50 sloc) 1.945 kB
<project name="mjc" default="dist" basedir=".">
<property name="javacc.home" value="lib" />
<property name="src" value="src" />
<property name="build" value="build" />
<property name="dist" value="dist" />
<property name="manifest" value="${build}/MANIFEST.MF" />
<path id="classpath">
<pathelement location="lib/jasmin.jar" />
</path>
<target name="setup">
<mkdir dir="${build}" />
<mkdir dir="${build}/src" />
<mkdir dir="${build}/src/se" />
<mkdir dir="${build}/src/se/helino" />
<mkdir dir="${build}/src/se/helino/mjc" />
<mkdir dir="${build}/src/se/helino/mjc/parser" />
<mkdir dir="${build}/lib" />
<mkdir dir="${build}/classes" />
<mkdir dir="${dist}" />
</target>
<target name="javacc" depends="setup">
<copy file="${src}/se/helino/mjc/parser/MJParser.jj"
todir="${build}/src" />
<javacc target="${build}/src/MJParser.jj"
outputdirectory="${build}/src/se/helino/mjc/parser"
javacchome="${javacc.home}" />
</target>
<target name="compile" depends="javacc">
<javac srcdir="${src};${build}/src" destdir="${build}/classes"
classpathref="classpath"
includeantruntime="false"/>
</target>
<target name="manifest" depends="setup">
<manifest file="${manifest}">
<attribute name="Main-Class" value="se.helino.mjc.Main"/>
<attribute name="Class-Path" value="." />
</manifest>
</target>
<target name="dist" depends="compile, manifest">
<jar jarfile="${dist}/mjc.jar"
manifest="${manifest}">
<fileset dir="${build}/classes" />
<zipfileset src="lib/jasmin.jar" />
</jar>
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.