summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/jtds/files/buildxml-gentoo.patch')
-rw-r--r--dev-java/jtds/files/buildxml-gentoo.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/dev-java/jtds/files/buildxml-gentoo.patch b/dev-java/jtds/files/buildxml-gentoo.patch
new file mode 100644
index 000000000000..a9b5d9f35666
--- /dev/null
+++ b/dev-java/jtds/files/buildxml-gentoo.patch
@@ -0,0 +1,78 @@
+--- build.xml.orig 2004-12-21 17:30:09.560666880 +0100
++++ build.xml 2004-12-21 17:35:21.167295472 +0100
+@@ -44,7 +44,7 @@
+ </target>
+
+ <target name="compile" depends="init,prepare">
+- <javac destdir="${build}/classes" srcdir="${build}/src" classpathref="libs" debug="${javac.debug}" optimize="${javac.optimize}" />
++ <javac destdir="${build}/classes" srcdir="${build}/src" classpathref="libs" debug="${javac.debug}" optimize="${javac.optimize}" source="1.4" target="1.4"/>
+ </target>
+
+ <target name="javadoc" depends="prepare">
+@@ -57,31 +57,12 @@
+ </javadoc>
+ </target>
+
+- <target name="test" depends="compile">
+- <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
+-
+- <junit fork="no" haltonfailure="no" printsummary="yes">
+- <classpath>
+- <pathelement location="build/classes"/>
+- <path refid="libs"/>
+- </classpath>
+- <formatter type="plain"/>
+- <batchtest>
+- <fileset dir="${build}/src">
+- <include name="**/*Test.java"/>
+- <exclude name="**/AllTests.java"/>
+- </fileset>
+- </batchtest>
+- </junit>
+- </target>
+-
+- <target name="dist" depends="clean,compile,javadoc">
+- <mkdir dir="${dist}"/>
++ <target name="jar" depends="compile">
+ <!-- Runtime jar -->
+ <jar basedir="${build}/classes"
+ excludes="net/sourceforge/jtds/test/*.class"
+ includes="**/*"
+- jarfile="${build}/${ant.project.name}-${version}.jar">
++ jarfile="${build}/${ant.project.name}.jar">
+ <manifest>
+ <attribute name="Implementation-Title" value="jTDS JDBC Driver"/>
+ <attribute name="Implementation-Version" value="${version}"/>
+@@ -91,31 +72,6 @@
+ <attribute name="Class-Path" value="jcifs.jar" />
+ </manifest>
+ </jar>
+-
+- <!-- Source package -->
+- <copy todir="${dist}/tmp/doc">
+- <fileset dir="${build}/doc" includes="**/*"/>
+- </copy>
+- <mkdir dir="${dist}/tmp"/>
+- <copy todir="${dist}/tmp">
+- <fileset dir="." includes="README,README.XA,CHANGELOG,LICENSE,*.bat,*.sh,*.xml,src/**/*,lib/**/*,html/**/*,conf/**/*"/>
+- </copy>
+- <zip basedir="${dist}/tmp" includes="**/*" zipfile="${dist}/${ant.project.name}-${version}-src.zip"/>
+- <delete dir="${dist}/tmp"/>
+-
+- <!-- Binary package -->
+- <mkdir dir="${dist}/tmp"/>
+- <copy todir="${dist}/tmp">
+- <fileset dir="." includes="README,README.XA,CHANGELOG,LICENSE,conf/**/*.xml,html/**/*"/>
+- <fileset dir="${build}" includes="*.jar"/>
+- </copy>
+- <mkdir dir="${dist}/tmp/XA"/>
+- <copy todir="${dist}/tmp/XA">
+- <fileset dir="lib" includes="*.dll"/>
+- <fileset dir="src/XA" includes="*.sql"/>
+- </copy>
+- <zip basedir="${dist}/tmp" includes="**/*" zipfile="${dist}/${ant.project.name}-${version}-dist.zip"/>
+- <delete dir="${dist}/tmp"/>
+ </target>
+-
++
+ </project>