From: Markus Koschany <apo@debian.org>
Date: Sat, 11 Oct 2014 14:18:26 +0200
Subject: build

---
 jchart2d/build.xml | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/jchart2d/build.xml b/jchart2d/build.xml
index deda1b8..66d38e3 100644
--- a/jchart2d/build.xml
+++ b/jchart2d/build.xml
@@ -1,14 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project name="jchart2d" default="makejarBinary">
+<project name="jchart2d" default="debian">
 	<description>
   A swing-widget for precise visualisation of charts.
  </description>
 
 	<!-- General Properties -->
 
+	<property name="basedir" value="jchart2d" />
 	<property name="project.name" value="jchart2d" />
 	<property name="project.version" value="3.2.2" />
-	<property name="libdir" value="${basedir}/ext" />
+    <property name="libdir" value="/usr/share/java" />
 	<property name="outjar" value="${basedir}/${project.name}-${project.version}.jar" />
 	<property name="distfolder" value="${basedir}/${project.name}-${project.version}/" />
 	<property name="distfile" value="${basedir}/${project.name}-${project.version}.zip" />
@@ -22,7 +23,7 @@
        The resource is a properties file within the proguard.jar
        and informs about the task implementation.
   -->
-	<taskdef resource="proguard/ant/task.properties" classpath="${libdir}/build/proguard-4.5.1.jar" />
+    <taskdef resource="proguard/ant/task.properties" classpath="${libdir}/proguard.jar" />
 
 	<!-- General paths & filesets. -->
 
@@ -137,12 +138,9 @@
           Tun this off is more jars have deps that may not be ignored.
          -->
 		<proguard obfuscate="false" shrink="true" overloadaggressively="false" warn="true" verbose="true" ignorewarnings="true" printmapping="true" allowaccessmodification="false" optimize="false">
-			<libraryjar>
-				<pathelement path="${java.home}/lib/rt.jar" />
-				<fileset dir="${libdir}">
-					<include name="*.jar" />
-				</fileset>
-			</libraryjar>
+            <libraryjar file="/usr/share/java/jide-oss.jar" />
+            <libraryjar file="/usr/share/java/xmlgraphics-commons.jar" />
+            <libraryjar dir="${java.home}/jmods" />
 			<!--
                caution: The name attribut value has to be the same expression
                        as the  destfile of the makejar- target [depend].
@@ -290,7 +288,7 @@
 	<target name="javadoc" depends="delete.doc">
 		<delete dir="${basedir}/doc/docs/javadoc"/>
 		<mkdir dir="${basedir}/doc/docs/javadoc" />
-		<javadoc destdir="${basedir}/doc/docs/javadoc" access="protected" use="false" notree="false" nonavbar="false" noindex="false" splitindex="true" Author="true" version="true" nodeprecatedlist="false" nodeprecated="false" doctitle="JChart2D API documentation, Version ${project.version}" windowtitle="JChart2D API documentation, Version ${project.version}" Verbose="true" stylesheetfile="${basedir}/doc/docs/javadoc/jchart2d.css" charset="UTF-8" docencoding="UTF-8">
+		<javadoc destdir="${basedir}/doc/docs/javadoc" access="protected" use="false" notree="false" nonavbar="false" noindex="false" splitindex="true" Author="true" version="true" nodeprecatedlist="false" nodeprecated="false" doctitle="JChart2D API documentation, Version ${project.version}" windowtitle="JChart2D API documentation, Version ${project.version}" Verbose="true" charset="UTF-8" docencoding="UTF-8">
 			<classpath refid="classpath" />
 			<bottom>
 				<![CDATA[<i>Copyright &#169; 2001 - 2010 <a href="http://www.opensource.org/licenses/lgpl-license.php" target="_blank">LGPL</a>, All Rights Footloose.</i>]]></bottom>
@@ -308,7 +306,7 @@
 </target>
 
 <!-- remove all resources in builddir and the current jar file-->
-<target name="delete.classfiles">
+<target name="delete.classfiles" depends="init">
 	<delete verbose="true" failonerror="true">
 		<fileset dir="${builddir}" />
 		<file file="${outjar}" />
@@ -362,5 +360,5 @@
 		<arg line="-classpath ${basedir}/ext/build/jipViewer.jar com.tivo.jipviewer.JipViewer profiler.xml" />
 	</exec>
 </target>
-
+<target name="debian" depends="makejarFat, javadoc"></target>
 </project>
