Hello
it is great to see the release of jflex 1.5.0 (already using it now). Thank you for
making this happen.
With the new release, the ant build has been superseeded by the maven project.
However, a mvn build is not the best solution for everyone (like on Gentoo, where
I have opened ticket #498874), and personally I do not like maven. So I would
like to share this short recipe to "manually" build jflex from the source tarball:
cd jflex-1.5.0
java -jar lib/jflex-1.5.0.jar --skel src/main/jflex/skeleton.nested src/main/jflex/LexScan.flex
mv src/main/jflex/LexScan.java src/main/java/jflex/LexScan.java
java -jar lib/java-cup-11a.jar -interface -parser LexParse src/main/cup/LexParse.cup
mv LexParse.java sym.java src/main/java/jflex
mkdir target
javac -classpath /usr/share/ant/lib/ant.jar src/main/java/jflex/*.java src/main/java/jflex/*/*.java src/main/java/jflex/*/*/*.java src/main/java/java_cup/runtime/*.java -d target
jar -cfe jflex-1.5.0.jar jflex.Main -C target java_cup -C target jflex -C src/main/resources jflex/Messages.properties -C src/main/resources jflex/skeleton.default
(note: in the call to javac, you might need to adjust the classpath of ant)
In related news: attached, you can find the adapted CUP2 patch from Andreas Wenger.
A quick test in my project did not show any regressions.
Regards,
Martin Walch
--
|