]> source.dussan.org Git - javassist.git/commitdiff
Add a javassist-src.jar to build a source artifact
authorstarksm <starksm@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sat, 24 Feb 2007 06:12:07 +0000 (06:12 +0000)
committerstarksm <starksm@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sat, 24 Feb 2007 06:12:07 +0000 (06:12 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@355 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

build.xml

index 214259f03dfdf06348730208e82e3bc7fa8163ad..8754fba504676686be81752576b9253fa6314d63 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -10,6 +10,7 @@
 
   <property environment="env"/>
   <property name="target.jar" value="javassist.jar"/>
+  <property name="target-src.jar" value="javassist-src.jar"/>
   <property name="src.dir" value="${basedir}/src/main"/>
   <property name="build.dir" value="${basedir}/build"/>
   <property name="build.classes.dir" value="${build.dir}/classes"/>
@@ -102,6 +103,11 @@ to ${build.classes.dir}.</echo>
          <include name="**/*.class"/>
       </fileset>
      </jar>
+    <jar jarfile="${target-src.jar}" manifest="${src.dir}/META-INF/MANIFEST.MF">
+      <fileset dir="${src.dir}">
+        <include name="javassist/**"/>
+      </fileset>
+    </jar>
   </target>
 
   <target name="javadocs">