You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/commons-discovery/files/0.4-jar-target.patch

42 lines
1.6 KiB

Index: build.xml
===================================================================
--- build.xml (revision 498103)
+++ build.xml (working copy)
@@ -175,23 +175,26 @@
</javadoc>
</target>
+ <target name="jar" depends="compile"
+ description="Create the jar file">
+ <mkdir dir="${build.home}/classes/META-INF"/>
+ <copy file="LICENSE.txt"
+ tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
+ <copy file="NOTICE.txt"
+ tofile="${build.home}/classes/META-INF/NOTICE.txt"/>
+ <mkdir dir="${dist.home}"/>
+ <jar jarfile="${dist.home}/${component.name}.jar"
+ basedir="${build.home}/classes"
+ manifest="${build.home}/conf/MANIFEST.MF"/>
+ </target>
- <target name="dist" depends="compile,javadoc"
+ <target name="dist" depends="jar,javadoc"
description="Create binary distribution">
<!-- TODO: top level files like LICENSE and README -->
- <mkdir dir="${dist.home}"/>
<copy file="LICENSE.txt"
todir="${dist.home}"/>
<copy file="NOTICE.txt"
todir="${dist.home}"/>
- <mkdir dir="${build.home}/classes/META-INF"/>
- <copy file="LICENSE.txt"
- tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
- <copy file="NOTICE.txt"
- tofile="${build.home}/classes/META-INF/NOTICE.txt"/>
- <jar jarfile="${dist.home}/${component.name}.jar"
- basedir="${build.home}/classes"
- manifest="${build.home}/conf/MANIFEST.MF"/>
</target>
<!-- ========== Testing section ======================================== -->