must convert path to a property
[debian/openrocket] / debian / patches / use-system-libs.diff
1 diff --git a/build.xml b/build.xml
2 index 394aea4..acfdd86 100644
3 --- a/build.xml
4 +++ b/build.xml
5 @@ -28,9 +28,12 @@
6         
7         <!-- Classpath definitions -->
8         <path id="classpath">
9 -               <fileset dir="${lib.dir}" includes="**/*.jar"/>
10 +               <pathelement location="/usr/share/java/jcommon.jar"/>
11 +               <pathelement location="/usr/share/java/jfreechart.jar"/>
12 +               <pathelement location="/usr/share/java/miglayout.jar"/>
13         </path>
14 -       
15 +       <property name="debianclasspath" refid="classpath"/>
16 +
17         <path id="test-classpath">
18                 <path refid="classpath"/>
19                 <pathelement location="${basedir}"/>
20 @@ -71,10 +74,8 @@
21                         <manifest>
22                                 <attribute name="Main-Class" value="${main-class}"/>
23                                 <attribute name="SplashScreen-Image" value="pix/splashscreen.png"/>
24 +                               <attribute name="Class-Path" value="${debianclasspath}"/>
25                         </manifest>
26 -                       <zipfileset src="lib/miglayout15-swing.jar" />
27 -                       <zipfileset src="lib/jcommon-1.0.16.jar" />
28 -                       <zipfileset src="lib/jfreechart-1.0.13.jar" />
29                 </jar>
30         </target>
31         
32 @@ -213,4 +214,4 @@ ${nonascii}</fail>
33                 </echo>
34         </target>
35      
36 -</project>
37 \ No newline at end of file
38 +</project>