Commit 7bb4a150 authored by Dr. Michael Petter's avatar Dr. Michael Petter

added cup runtime to build.xml

parent 49be8565
......@@ -32,11 +32,24 @@
<project name="MakeMouse" basedir="." default="all" >
<property name="dest" value="${basedir}/build" />
<property name="lib" location="${basedir}/lib" />
<path id="libraries">
<pathelement location="${src}" />
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="all" depends="full-jar, runtime-jar" />
<target name="full-jar" depends="compile, rtsource">
<jar basedir="${dest}" destfile="${dest}/Mouse-1.7.jar" />
<jar basedir="${dest}" destfile="${dest}/Mouse-1.7.jar">
<manifest>
<attribute name="Main-Class" value="mouse/Generate" />
<attribute name="Class-Path" value="java-cup-11b-runtime.jar" />
</manifest>
</jar>
<delete dir="${dest}/rtsource" />
</target>
......@@ -46,7 +59,9 @@
</target>
<target name="compile" depends="init">
<javac srcdir="${basedir}/src" destdir="${dest}" includeAntRuntime="no" />
<javac srcdir="${basedir}/src" destdir="${dest}" includeAntRuntime="no">
<classpath refid="libraries"/>
</javac>
</target>
<target name="rtsource" depends="rtdir" >
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment