cglib (2.2+dfsg-2) 02_build_split.patch

Summary

 build.xml |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

Description: Split ant targets to get a simple cglib jar without
 bundled dependencies.
 - jarnodep: simple cglib jar (target used by debian/rules)
 - jardep: bundled cglib jar using jarjar tool
Forwarded: not-needed
Author: Arnaud Vandyck <avdyk@debian.org>
Author: Damien Raude-Morvan <drazzib@debian.org>
Last-Update: 2009-10-08
--- a/build.xml
+++ b/build.xml
@@ -111,19 +111,27 @@
 
   <target depends="jar" name="proxy"/>
 
-  <target depends="compile" description="Create binary distribution" name="jar">
+  <target depends="jardep,jarnodep" description="Create binary distribution" name="jar"/>
+
+  <target depends="compile" description="Create binary distribution" name="preparejar">
     <mkdir dir="${dist.home}"/>
     <mkdir dir="${build.home}/src"/>
     
 
     <copy file="LICENSE" todir="${build.home}/classes"/>
     <copy file="NOTICE" todir="${build.home}/classes"/>
+  </target>
 
+  <target depends="preparejar" description="Create binary distribution
+    without dependency" name="jardep">
     <jar basedir="${build.home}/classes" jarfile="${dist.home}/${component.name}-${component.version}.jar" >
       <include name="**/*"/>
       <exclude name="samples/**" />
     </jar> 
+  </target>
 
+  <target depends="preparejar" description="Create binary distribution
+    with dependency" name="jarnodep">
     <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="compile.classpath"/>
     <jarjar basedir="${build.home}/classes" jarfile="${dist.home}/${component.name}-nodep-${component.version}.jar" >
       <zipfileset dir="lib" includes="asm*.txt"/>