java-jflex/java-jflex-1.4.1-no-cup-no-jflex.patch

48 lines
1.8 KiB
Diff

--- jflex-1.4.1/src/build.xml 2009-03-02 15:32:03.000000000 +0100
+++ jflex-1.4.1/src/build.xml-gil 2009-03-02 15:37:29.000000000 +0100
@@ -25,7 +25,6 @@
<target name="help" description="show help message">
<echo message="Ant build file for JFlex. Useful targets:"/>
<echo message=""/>
- <echo message="gettools: download development tools for the build"/>
<echo message="realclean: remove all compiled and generated files"/>
<echo message="jar: make JFlex.jar"/>
<echo message=""/>
@@ -38,12 +37,6 @@
<taskdef classname="java_cup.AntTask" name="cup" classpath="${cup.jar}"/>
</target>
- <target name="gettools" description="download development tools">
- <mkdir dir="${tools.dir}"/>
- <get src="${jflex.jar.url}" dest="${jflex.jar}"/>
- <get src="${cup.jar.url}" dest="${cup.jar}"/>
- </target>
-
<target name="dist" description="build distribution">
<antcall target="build" />
<antcall target="libclean" />
@@ -55,7 +48,7 @@
<target name="cbuild" depends="libclean,compile,jar"
description="recompile and pack all classes"/>
- <target name="compile" depends="jflex,cup"
+ <target name="compile"
description="compile all classes">
<javac srcdir="."
destdir="../lib"
@@ -71,14 +64,6 @@
debug="on" />
</target>
- <target name="jflex" depends="declare" description="generate scanner">
- <jflex file="JFlex/LexScan.flex" skeleton="skeleton.nested"/>
- </target>
-
- <target name="cup" depends="declare" description="generate parser">
- <cup file="JFlex/LexParse.cup" dir="JFlex" interface="true" parser="LexParse" />
- </target>
-
<target name="copy" description="copy resources to build dir">
<copy file="skeleton.default" todir="../lib/JFlex" />
<copy file="JFlex/Messages.properties" todir="../lib/JFlex/" />