Jochen, this sounds like a reasonable activity for a target other than "jar" (perhaps a new target which has "jar" as a dependency). However, it would be useful if the Maven-based build had parity here.

- Dan

Jochen Wiedmann wrote:
Hi,

the following makes the "jar" target create a file called
xmlrpc-<version>-src.zip as well. This file contains the sources.

The reason for doing so is, that such files are quite convenient for
attaching them to the Java debugger. For example, in Eclipse I am always
adding the jar file and the source file as well, if possible.
>
Index: build.xml
===================================================================
RCS file: /home/cvspublic/ws-xmlrpc/build.xml,v
retrieving revision 1.25
diff -u -r1.25 build.xml
--- build.xml 21 May 2003 15:58:23 -0000 1.25
+++ build.xml 16 Jun 2004 07:58:54 -0000
@@ -184,6 +184,9 @@
<fileset dir="${build.dest}"
excludes="**/xmlrpc/*,**/fesi/*,**/secure/*"/>
</jar>
+ <zip zipfile="${build.dir}/${final.name}-src.zip">
+ <fileset dir="src/java"/>
+ </zip>
</target>
<!--



Reply via email to