Mercurial > cgi-bin > hgweb.cgi > JpegWasher
annotate build.xml @ 35:bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
author | David Barts <n5jrn@me.com> |
---|---|
date | Thu, 30 Apr 2020 21:22:30 -0700 |
parents | d175593317a8 |
children | aa9ab6cbaa26 |
rev | line source |
---|---|
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?> |
33
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
2 <project name="JpegWasher" default="help" basedir="." |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
3 xmlns:contrib="antlib:net.sf.antcontrib" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
4 xmlns:jarbundler="antlib:com.ultramixer.jarbundler" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
5 xmlns:launch4j="antlib:net.sf.launch4j.ant" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
6 xmlns:mod="antlib:de.masters_of_disaster.ant.tasks"> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
7 <!-- import all environment variables as env.* --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
8 <property environment="env"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
9 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
10 <!-- ensure required environment variables are set --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
11 <macrodef name="env-require"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
12 <attribute name="name"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
13 <sequential> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
14 <fail message="Environment variable @{name} not set!"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
15 <condition> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
16 <not><isset property="env.@{name}"/></not> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
17 </condition> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
18 </fail> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
19 </sequential> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
20 </macrodef> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
21 <env-require name="JRE_HOME"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
22 <env-require name="KOTLIN_HOME"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
23 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
24 <!-- cribbed from https://stackoverflow.com/questions/7129672/uppercase-lowercase-capitalize-an-ant-property --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
25 <scriptdef language="javascript" name="toLowerCase"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
26 <attribute name="value" /> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
27 <attribute name="target" /> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
28 <![CDATA[ |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
29 "use strict"; |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
30 project.setProperty( attributes.get( "target" ), |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
31 attributes.get( "value" ).toLowerCase() ); |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
32 ]]> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
33 </scriptdef> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
34 |
35
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
35 <scriptdef language="javascript" name="du"> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
36 <attribute name="path" /> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
37 <attribute name="target" /> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
38 <![CDATA[ |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
39 "use strict"; |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
40 var File = Java.type('java.io.File'); |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
41 function du(fp) { |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
42 if (fp.isDirectory()) { |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
43 var files = fp.listFiles(); |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
44 if (!files) return 0; |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
45 var total = 0; |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
46 for(var i=0; i<files.length; i++) |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
47 total += du(files[i]); |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
48 return total; |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
49 } else { |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
50 return fp.length(); |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
51 } |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
52 } |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
53 var path = new File(attributes.get("path")); |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
54 project.setProperty(attributes.get("target"), |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
55 Math.round(du(path) / 1024) + ""); |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
56 ]]> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
57 </scriptdef> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
58 |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
59 <!-- Define the properties used by the build --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
60 <property name="app.name" value="${ant.project.name}"/> |
23
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
61 <property name="app.version" value="1.03"/> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
62 <property name="app.entry" value="name.blackcap.exifwasher.MainKt"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
63 <toLowerCase target="lc.app.name" value="${app.name}"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
64 <property name="jar.name" value="${basedir}/${lc.app.name}.jar"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
65 <property name="work.jar" value="${basedir}/work.jar"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
66 <property name="lib.home" value="${basedir}/lib"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
67 <property name="src.home" value="${basedir}/src"/> |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
68 <property name="dist.home" value="${basedir}/dist"/> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
69 <property name="pf.home" value="${basedir}/package-files"/> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
70 <property name="nat.dir" value="${src.home}/name/blackcap/exifwasher/exiv2"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
71 <property name="bin.dir" value="${src.home}/name/blackcap/exifwasher/binaries"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
72 |
33
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
73 <!-- load the ant-contrib tasks --> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
74 <taskdef resource="net/sf/antcontrib/antlib.xml" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
75 uri="antlib:net.sf.antcontrib"> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
76 <classpath> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
77 <fileset dir="${lib.home}/ant-contrib" includes="*.jar"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
78 </classpath> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
79 </taskdef> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
80 |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
81 <!-- load jarbundler (Mac app bundler) tasks --> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
82 <contrib:if> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
83 <os family="mac"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
84 <contrib:then> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
85 <taskdef name="create" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
86 classname="com.ultramixer.jarbundler.JarBundler" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
87 classpath="${lib.home}/jarbundler-core-3.3.0.jar" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
88 uri="antlib:com.ultramixer.jarbundler"> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
89 </taskdef> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
90 </contrib:then> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
91 </contrib:if> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
92 |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
93 <!-- load launch4j (Windows app bundler) tasks --> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
94 <contrib:if> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
95 <os family="windows"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
96 <contrib:then> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
97 <taskdef name="create" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
98 classname="net.sf.launch4j.ant.Launch4jTask" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
99 uri="antlib:net.sf.launch4j.ant"> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
100 <classpath> |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
101 <fileset dir="${lib.home}/launch4j" includes="*.jar"/> |
33
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
102 </classpath> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
103 </taskdef> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
104 </contrib:then> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
105 </contrib:if> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
106 |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
107 <!-- load mod (Gnome app bundler) tasks --> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
108 <contrib:if> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
109 <os family="unix"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
110 <contrib:then> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
111 <taskdef name="calculatesize" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
112 classname="de.masters_of_disaster.ant.tasks.calculatesize.CalculateSize" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
113 uri="antlib:de.masters_of_disaster.ant.tasks"> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
114 <classpath> |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
115 <fileset dir="${lib.home}/mod" includes="*.jar"/> |
33
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
116 </classpath> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
117 </taskdef> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
118 <taskdef name="deb" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
119 classname="de.masters_of_disaster.ant.tasks.deb.Deb" |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
120 uri="antlib:de.masters_of_disaster.ant.tasks"> |
33
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
121 <classpath> |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
122 <fileset dir="${lib.home}/mod" includes="*.jar"/> |
33
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
123 </classpath> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
124 </taskdef> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
125 </contrib:then> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
126 </contrib:if> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
127 |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
128 <!-- define the kotlin task --> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
129 <property name="kotlin.lib" value="${env.KOTLIN_HOME}/lib"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
130 <typedef resource="org/jetbrains/kotlin/ant/antlib.xml" |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
131 classpath="${kotlin.lib}/kotlin-ant.jar"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
132 |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
133 <!-- help message --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
134 <target name="help"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
135 <echo>You can use the following targets:</echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
136 <echo> </echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
137 <echo> help : (default) Prints this message </echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
138 <echo> all : Cleans, compiles, and stages application</echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
139 <echo> clean : Deletes work directories</echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
140 <echo> compile : Compiles servlets into class files</echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
141 <echo> jar : Make JAR file.</echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
142 <echo> </echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
143 <echo>For example, to clean, compile, and package all at once, run:</echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
144 <echo>prompt> ant all </echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
145 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
146 |
33
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
147 <!-- Determine OS type --> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
148 <condition property="os.type" value="mac"> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
149 <os family="mac"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
150 </condition> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
151 <condition property="os.type" value="windows"> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
152 <os family="windows"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
153 </condition> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
154 <condition property="os.type" value="linux"> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
155 <!-- notes: 1) XXX not all non-mac UNIX systems are Linux, but this assumes |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
156 so; 2) this clause MUST appear AFTER the "mac" one --> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
157 <os family="unix"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
158 </condition> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
159 <property name="os.type" value="unknown"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
160 |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
161 <!-- Define the CLASSPATH --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
162 <target name="classpath"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
163 <path id="compile.classpath"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
164 <pathelement location="${src.home}"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
165 </path> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
166 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
167 |
26 | 168 <!-- make needed directories --> |
169 <target name="mkdirs"> | |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
170 <mkdir dir="${bin.dir}/${os.type}"/> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
171 <mkdir dir="${dist.home}"/> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
172 </target> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
173 |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
174 <!-- remove old cruft --> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
175 <target name="clean"> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
176 <delete includeEmptyDirs="true"> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
177 <fileset dir="${dist.home}" includes="**/*"/> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
178 <fileset dir="${bin.dir}"/> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
179 </delete> |
33
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
180 </target> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
181 |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
182 <!-- rename files containing OS-dependant code --> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
183 <target name="osdep"> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
184 <exec executable="${env.JRE_HOME}/bin/java"> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
185 <arg value="-jar"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
186 <arg value="../Osdep/osdep.jar"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
187 <arg value="${src.home}"/> |
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
188 </exec> |
26 | 189 </target> |
190 | |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
191 <!-- do everything but install --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
192 <target name="all" depends="jar" |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
193 description="Clean work dirs, compile, make JAR."/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
194 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
195 <!-- compile *.kt to *.class --> |
33
3d86f0391168
Work on improving the build system.
David Barts <davidb@stashtea.com>
parents:
26
diff
changeset
|
196 <target name="compile" depends="mkdirs,osdep,classpath" |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
197 description="Compile Java sources to ${work.home}"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
198 <kotlinc src="${src.home}" output="${work.jar}" |
5 | 199 classpathref="compile.classpath"> |
200 <compilerarg line="-jvm-target 1.8"/> | |
201 </kotlinc> | |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
202 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
203 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
204 <!-- make .jar file --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
205 <target name="jar" depends="compile" description="Create JAR file."> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
206 <jar destfile="${jar.name}"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
207 <manifest> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
208 <attribute name="Main-Class" value="${app.entry}"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
209 </manifest> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
210 <zipgroupfileset dir="${lib.home}" includes="*.jar"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
211 <zipfileset src="${work.jar}"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
212 <zipfileset dir="${src.home}" includes="**/*.properties,**/*.dll,**/*.so,**/*.dylib"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
213 </jar> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
214 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
215 |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
216 <!-- the packaging logic here is cribbed from what jEdit does --> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
217 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
218 <target name="macapp" depends="jar" description="Create MacOS app bundle."> |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
219 <!-- not finished --> |
23
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
220 </target> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
221 |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
222 <target name="winapp" depends="jar" description="Create app bundle."> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
223 <!-- not finished --> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
224 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
225 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
226 <target name="deb" depends="jar" description="Create Debian package."> |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
227 <sequential> |
35
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
228 <mkdir dir="${dist.home}/data/usr/share/applications"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
229 <copy file="${pf.home}/linux/deb/jpegwasher.desktop" |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
230 tofile="${dist.home}/data/usr/share/applications/jpegwasher.desktop"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
231 <mkdir dir="${dist.home}/data/usr/share/icons/hicolor/48x48/apps"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
232 <copy file="${pf.home}/linux/icon_48x48.png" |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
233 tofile="${dist.home}/data/usr/share/icons/hicolor/48x48/apps/jpegwasher.png"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
234 <mkdir dir="${dist.home}/data/usr/share/jpegwasher"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
235 <copy file="${jar.name}" todir="${dist.home}/data/usr/share/jpegwasher"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
236 <mkdir dir="${dist.home}/data/usr/share/doc/jpegwasher"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
237 <copy todir="${dist.home}/data/usr/share/doc/jpegwasher"> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
238 <filelist dir="${basedir}" files="Readme.html,Readme.rst"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
239 <fileset file="${pf.home}/linux/deb/copyright"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
240 </copy> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
241 <gzip src="${pf.home}/linux/deb/changelog" |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
242 destfile="${dist.home}/data/usr/share/doc/jpegwasher/changelog.gz"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
243 <mkdir dir="${dist.home}/data/usr/share/man/man1"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
244 <gzip src="${pf.home}/linux/jpegwasher.1" |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
245 destfile="${dist.home}/data/usr/share/man/man1/jpegwasher.1.gz"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
246 <mkdir dir="${dist.home}/data/usr/bin"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
247 <copy todir="${dist.home}/data/usr/bin" encoding="UTF-8" overwrite="true"> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
248 <fileset file="${pf.home}/linux/jpegwasher"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
249 <filterset> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
250 <filter token="jar.filename" value="${lc.app.name}.jar"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
251 </filterset> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
252 </copy> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
253 <chmod file="${dist.home}/data/usr/bin/jpegwasher" perm="755"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
254 <du path="${dist.home}/data" target="deb.installed.size"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
255 <mkdir dir="${dist.home}/control"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
256 <copy todir="${dist.home}/control" encoding="UTF-8" overwrite="true"> |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
257 <fileset file="${pf.home}/linux/deb/control"/> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
258 <filterset> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
259 <filter token="app.version" value="${app.version}"/> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
260 <filter token="deb.installed.size" value="${deb.installed.size}"/> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
261 </filterset> |
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
262 </copy> |
35
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
263 <copy todir="${dist.home}/control"> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
264 <filelist dir="${pf.home}/linux/deb" files="postinst,postrm"/> |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
265 </copy> |
35
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
266 <chmod perm="755"> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
267 <filelist dir="${dist.home}/control" files="postinst,postrm"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
268 </chmod> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
269 <exec executable="${basedir}/make-debian-package"> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
270 <arg value="${dist.home}"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
271 <arg value="${lc.app.name}_${app.version}.deb"/> |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
34
diff
changeset
|
272 </exec> |
34
d175593317a8
Add a bunch of packaging stuff, NOT WORKING YET,
David Barts <n5jrn@me.com>
parents:
33
diff
changeset
|
273 </sequential> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
274 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
275 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
276 </project> |