statsvn (0.7.0.dfsg-2) 15-build-xml-build-jar-only.diff

Summary

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

    
download this patch

Patch contents

#! /bin/sh /usr/share/dpatch/dpatch-run
## 15-build-xml-build-jar-only.dpatch by  <fourmond@debian.org>
##
## DP: Only build the jar file during the build

@DPATCH@
Index: statsvn-0.7.0.dfsg/build.xml
===================================================================
--- statsvn-0.7.0.dfsg.orig/build.xml	2010-03-08 20:25:30.347534255 +0100
+++ statsvn-0.7.0.dfsg/build.xml	2010-03-08 20:25:34.015528882 +0100
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 
-<project name="statsvn" default="all" basedir=".">
+<project name="statsvn" default="jar" basedir=".">
 
 	<property file="project.properties" />
 	<property name="project" value="statsvn" />
@@ -93,6 +93,13 @@
 		</java>
 	</target>
 
+	<target name="jar" depends="compile,copyfiles">
+		<!-- Creates an executable jar file for the project -->
+		<mkdir dir="${dist}" />
+		<jar jarfile="${dist}/${project.jar}" basedir="${build}" />
+	</target>
+
+
 	<target name="init.tests">
 		<!-- Create the build directory structure used by compile.tests -->
 		<mkdir dir="${build.tests}" />