59 lines
2.6 KiB
Diff
59 lines
2.6 KiB
Diff
|
--- build.xml 2010-09-05 21:20:34.000000000 +0200
|
||
|
+++ build.xml-gil 2011-02-28 00:29:13.000000000 +0100
|
||
|
@@ -51,6 +51,7 @@
|
||
|
<property name="build.test-classes.dir" value="${build.dir}/test-classes"/>
|
||
|
<property name="dist.dir" value="${basedir}/dist"/>
|
||
|
<property name="dist.jar" value="${dist.dir}/${name}.jar"/>
|
||
|
+ <property name="j2se.api" value="http://java.sun.com/j2se/1.4.2/docs/api"/>
|
||
|
|
||
|
<property name="test.failonerror" value="true" />
|
||
|
|
||
|
@@ -94,7 +95,7 @@
|
||
|
nonavbar="false"
|
||
|
serialwarn="false"
|
||
|
source="${javac.src.version}">
|
||
|
- <link href="http://java.sun.com/j2se/1.4.2/docs/api"/>
|
||
|
+ <link href="${j2se.api}"/>
|
||
|
</javadoc>
|
||
|
</target>
|
||
|
|
||
|
@@ -155,25 +156,23 @@
|
||
|
|
||
|
<target name="build-jar" depends="compile">
|
||
|
<mkdir dir="${dist.dir}"/>
|
||
|
- <jar jarfile="${dist.jar}">
|
||
|
- <fileset dir="${build.classes.dir}"/>
|
||
|
+ <jar jarfile="${dist.jar}"
|
||
|
+ compress="true"
|
||
|
+ index="false"
|
||
|
+ manifest="${build.classes.dir}/META-INF/MANIFEST.MF"
|
||
|
+ excludes="**/*.html">
|
||
|
+ <fileset dir="${build.classes.dir}">
|
||
|
+ <include name="org/apache/commons/pool/**"/>
|
||
|
+ <include name="META-INF/LICENSE.txt"/>
|
||
|
+ <include name="META-INF/NOTICE.txt"/>
|
||
|
+ <include name="META-INF/maven/commons-pool/commons-pool/pom.properties"/>
|
||
|
+ <include name="META-INF/maven/commons-pool/commons-pool/pom.xml"/>
|
||
|
+ </fileset>
|
||
|
<metainf dir="${basedir}" includes="LICENSE.txt,NOTICE.txt"/>
|
||
|
- <manifest>
|
||
|
- <attribute name="Built-By" value="${user.name}"/>
|
||
|
- <attribute name="Package" value="${package}"/>
|
||
|
- <attribute name="Extension-Name" value="${name}"/>
|
||
|
- <attribute name="Specification-Vendor" value="Apache Software Foundation"/>
|
||
|
- <attribute name="Specification-Title" value="${title}"/>
|
||
|
- <attribute name="Implementation-Version" value="${version}"/>
|
||
|
- <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
|
||
|
- <attribute name="X-Compile-Source-JDK" value="${javac.src.version}"/>
|
||
|
- <attribute name="X-Compile-Target-JDK" value="${javac.target.version}"/>
|
||
|
-
|
||
|
- </manifest>
|
||
|
</jar>
|
||
|
</target>
|
||
|
|
||
|
- <target name="build" depends="clean,build-jar,javadoc">
|
||
|
+ <target name="build" depends="build-jar,javadoc">
|
||
|
<copy todir="${dist.dir}" file="${basedir}/LICENSE.txt"/>
|
||
|
<copy todir="${dist.dir}" file="${basedir}/NOTICE.txt"/>
|
||
|
<copy todir="${dist.dir}" file="${basedir}/README.txt"/>
|