File: 07-include-platform-jar.patch

package info (click to toggle)
libjna-java 3.2.7-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,520 kB
  • sloc: java: 27,015; ansic: 3,782; xml: 694; sh: 421; makefile: 231
file content (61 lines) | stat: -rw-r--r-- 2,175 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Include a simple ant build file for the platform.jar part of the source. The next 
upstream version should already include this.

Index: libjna-java-3.2.7/pom.xml
===================================================================
--- libjna-java-3.2.7.orig/pom.xml	2011-05-22 20:06:42.104338432 +0100
+++ libjna-java-3.2.7/pom.xml	2011-05-22 20:08:00.283504785 +0100
@@ -33,6 +33,7 @@
               <tasks>
                 <!--<ant dir="." target="dist" />-->
                 <attachArtifact file="dist/jna.jar" />
+                <attachArtifact file="dist/platform.jar" />
                 <attachArtifact file="dist/src-mvn.zip" classifier="sources" type="jar"/>
               </tasks>
             </configuration>
@@ -64,4 +65,4 @@
       <url>http://download.java.net/maven/2/</url>
     </pluginRepository>
   </pluginRepositories>
-</project>
\ No newline at end of file
+</project>
Index: libjna-java-3.2.7/contrib/platform/build.xml
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ libjna-java-3.2.7/contrib/platform/build.xml	2011-06-03 18:23:26.431989502 +0100
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="platform" default="jar" basedir=".">
+
+  <property name="src" location="src"/>
+  <property name="build" location="build"/>
+  <property name="dist"  location="../../build/"/>
+
+  <path id="classpath">
+    <fileset dir="${dist}" includes="jna.jar"/>
+  </path>
+
+  <target name="init">
+    <mkdir dir="${build}"/>
+  </target>
+
+  <target name="compile" depends="init" description="compile the source " >
+    <javac srcdir="${src}" destdir="${build}" classpathref="classpath"/>
+  </target>
+
+  <target name="jar" depends="compile" description="jar" >
+    <jar jarfile="${dist}/jna-platform.jar" basedir="${build}"/>
+  </target>
+
+  <target name="javadoc">
+    <!-- we don't build the javadoc for now, this should all 
+         be sorted in the next upstream release. -->
+  </target>
+
+  <target name="clean" description="clean" >
+    <delete dir="${build}"/>
+    <delete file="${dist}/jna-platform.jar"/>
+  </target>
+</project>
+