Commit 7bb4a150 authored by Administrator's avatar Administrator
Browse files

added cup runtime to build.xml

parent 49be8565
...@@ -32,11 +32,24 @@ ...@@ -32,11 +32,24 @@
<project name="MakeMouse" basedir="." default="all" > <project name="MakeMouse" basedir="." default="all" >
<property name="dest" value="${basedir}/build" /> <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="all" depends="full-jar, runtime-jar" />
<target name="full-jar" depends="compile, rtsource"> <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" /> <delete dir="${dest}/rtsource" />
</target> </target>
...@@ -46,7 +59,9 @@ ...@@ -46,7 +59,9 @@
</target> </target>
<target name="compile" depends="init"> <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>
<target name="rtsource" depends="rtdir" > <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