summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-10-01 08:30:39 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-10-01 08:30:39 +0000
commit76235a1d7120c4570fa270a85173fb6ddaa8b38e (patch)
treee5ebcaed66c76b0620d1d83953d66a804cdc2145 /dev-java/jflex/files
parentdev-java/jflex: Make use of ${PN} when installing the launcher. (diff)
downloadgentoo-76235a1d7120c4570fa270a85173fb6ddaa8b38e.tar.gz
gentoo-76235a1d7120c4570fa270a85173fb6ddaa8b38e.tar.bz2
gentoo-76235a1d7120c4570fa270a85173fb6ddaa8b38e.zip
dev-java/jflex: Clean up old.
Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java/jflex/files')
-rw-r--r--dev-java/jflex/files/jflex-1.4.1-build.xml.patch30
-rw-r--r--dev-java/jflex/files/jflex-1.5.0-build.xml149
2 files changed, 0 insertions, 179 deletions
diff --git a/dev-java/jflex/files/jflex-1.4.1-build.xml.patch b/dev-java/jflex/files/jflex-1.4.1-build.xml.patch
deleted file mode 100644
index 8353cbe52a76..000000000000
--- a/dev-java/jflex/files/jflex-1.4.1-build.xml.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- build.xml 2009-01-31 16:14:57.000000000 +0200
-+++ build.xml.fixed 2009-01-31 16:17:14.000000000 +0200
-@@ -35,7 +35,7 @@
-
- <target name="declare" description="define tasks for jflex and cup">
- <taskdef classname="JFlex.anttask.JFlexTask" name="jflex" classpath="${jflex.jar}"/>
-- <taskdef classname="java_cup.AntTask" name="cup" classpath="${cup.jar}"/>
-+ <taskdef classname="java_cup.anttask.CUPTask" name="cup" classpath="${cup.jar}"/>
- </target>
-
- <target name="gettools" description="download development tools">
-@@ -69,7 +69,7 @@
- </target>
-
- <target name="cup" depends="declare" description="generate parser">
-- <cup file="JFlex/LexParse.cup" dir="JFlex" interface="true" parser="LexParse" />
-+ <cup srcfile="JFlex/LexParse.cup" interface="true" parser="LexParse" />
- </target>
-
- <target name="copy" description="copy resources to build dir">
-@@ -79,7 +79,8 @@
-
- <target name="jar" depends="compile,copy" description="make JFlex.jar">
- <jar basedir="../lib"
-- includes="JFlex/**,java_cup/**,skeleton"
-+ includes="JFlex/**,java_cup/**,skeleton"
-+ excludes="JFlex/tests/*"
- jarfile="../lib/JFlex.jar"
- manifest="manifest"/>
- </target>
diff --git a/dev-java/jflex/files/jflex-1.5.0-build.xml b/dev-java/jflex/files/jflex-1.5.0-build.xml
deleted file mode 100644
index 9ac1be49a7d6..000000000000
--- a/dev-java/jflex/files/jflex-1.5.0-build.xml
+++ /dev/null
@@ -1,149 +0,0 @@
-<?xml version="1.0"?>
-<project name="JFlex" default="help">
-
- <property name="version" value="1.5.0" />
- <property name="bootstrap.version" value="1.5.0" />
- <property name="junit.version" value="4.11" />
- <property name="cup.version" value="11a" />
- <property name="java.source.version" value="1.5" />
-
- <!-- use any of these files to override properties -->
- <property file="build.properties" />
- <property file="${user.home}/.jflex.properties" />
-
- <!-- location of development tools necessary for the build -->
- <property name="lib.dir" value="lib"/>
-
- <!-- override these if you want to use your own versions -->
- <property name="bootstrap.jflex.jar" value="${lib.dir}/jflex-${bootstrap.version}.jar" />
- <property name="cup.jar" value="${lib.dir}/java-cup-${cup.version}.jar" />
- <property name="junit.jar" value="${lib.dir}/junit-${junit.version}.jar" />
-
- <!-- where to get tool jars from -->
- <property name="maven.central.url" value="http://central.maven.org/maven2" />
- <property name="bootstrap.jflex.jar.url"
- value="${maven.central.url}/de/jflex/jflex/${bootstrap.version}/jflex-${bootstrap.version}.jar" />
- <property name="junit.jar.url"
- value="${maven.central.url}/junit/junit/${junit.version}/junit-${junit.version}.jar" />
-
- <!-- where build output goes, including the jflex jar -->
- <property name="build.dir" value="build"/>
- <property name="generated.sources.dir" value="${build.dir}/generated-sources"/>
- <property name="compile.output.dir" value="${build.dir}/classes"/>
- <property name="test.compile.output.dir" value="${build.dir}/test-classes"/>
- <property name="tests.dir" value="${build.dir}/tests"/>
-
- <!-- where the output jar goes -->
- <property name="output.jar.name" value="${build.dir}/jflex-${version}.jar" />
-
- <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="clean: remove all generated and compiled files"/>
- <echo message="compile: generates sources and compiles non-test classes"/>
- <echo message="jar: make ${output.jar.name}"/>
- <echo message="build: complete build from scratch (clean jar)"/>
- <echo message="test: run the unit tests"/>
- <echo message=""/>
- <echo message="Use the gettool target or override the *.jar properties"/>
- <echo message="before you do the first build."/>
- </target>
-
- <target name="gettools" description="download development tools">
- <get src="${bootstrap.jflex.jar.url}" dest="${bootstrap.jflex.jar}"/>
- <get src="${junit.jar.url}" dest="${junit.jar}"/>
- </target>
-
- <target name="build" depends="clean,jar"
- description="complete build from scratch (clean jar)"/>
-
- <target name="clean" description="remove all generated and compiled files">
- <delete includeemptydirs="true">
- <fileset dir="${build.dir}" includes="**/*"/>
- </delete>
- </target>
-
- <target name="jar" depends="compile,-copy-resources"
- description="make ${output.jar.name}">
- <jar basedir="${compile.output.dir}" jarfile="${output.jar.name}">
- <manifest>
- <attribute name="Main-Class" value="jflex.Main"/>
- </manifest>
- </jar>
- </target>
-
- <target name="compile" depends="-generate-scanner,-generate-parser"
- description="generate sources and compile all non-test classes">
- <mkdir dir="${compile.output.dir}" />
- <javac destdir="${compile.output.dir}"
- target="${java.source.version}"
- source="${java.source.version}"
- debug="on"
- includeantruntime="true">
- <src path="src/main/java"/>
- <src path="${generated.sources.dir}"/>
- </javac>
- </target>
-
- <target name="test" depends="compile,-copy-resources,-compile-test">
- <mkdir dir="${tests.dir}"/>
- <junit dir="." printsummary="true" errorproperty="junit.failed">
- <classpath>
- <file file="${junit.jar}"/>
- <pathelement location="${compile.output.dir}"/>
- <pathelement location="${test.compile.output.dir}"/>
- </classpath>
- <assertions>
- <enable/>
- </assertions>
- <batchtest fork="yes" todir="${tests.dir}">
- <formatter type="plain"/>
- <fileset dir="src/test/java">
- <include name="**/*Test*.java"/>
- </fileset>
- </batchtest>
- </junit>
- <fail if="junit.failed"/>
- </target>
-
- <target name="-copy-resources">
- <copy todir="${compile.output.dir}">
- <fileset dir="src/main/resources"/>
- </copy>
- </target>
-
- <target name="-generate-scanner">
- <taskdef classname="jflex.anttask.JFlexTask"
- name="jflex" classpath="${bootstrap.jflex.jar}"/>
- <mkdir dir="${generated.sources.dir}/jflex"/>
- <jflex file="src/main/jflex/LexScan.flex"
- outdir="${generated.sources.dir}/jflex"
- skeleton="src/main/jflex/skeleton.nested"
- nobak="on"/>
- </target>
-
- <target name="-generate-parser">
- <taskdef classname="java_cup.anttask.CUPTask"
- name="cup" classpath="${cup.jar}"/>
- <mkdir dir="${generated.sources.dir}"/>
- <cup srcfile="src/main/cup/LexParse.cup"
- destdir="${generated.sources.dir}"
- interface="true"
- parser="LexParse"/>
- </target>
-
- <target name="-compile-test" depends="compile">
- <mkdir dir="${test.compile.output.dir}"/>
- <javac srcdir="src/test/java"
- destdir="${test.compile.output.dir}"
- target="${java.source.version}"
- source="${java.source.version}"
- classpath="${compile.output.dir}:${junit.jar}"
- includeantruntime="true"/>
- </target>
-
- <target depends="compile" name="javadoc">
- <javadoc packagenames="jflex" sourcepath="src/main/java:build/generated-sources" destdir="javadoc" version="true" />
- </target>
-</project>