Mercurial > cgi-bin > hgweb.cgi > JpegWasher
annotate build.xml @ 26:985d5b82a882
Make needed dirs.
author | davidb |
---|---|
date | Thu, 16 Apr 2020 19:50:00 -0700 |
parents | 5a5a7de27eb4 |
children | 3d86f0391168 |
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"?> |
25 | 2 <project name="JpegWasher" default="help" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant"> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
3 <!-- import all environment variables as env.* --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
4 <property environment="env"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
5 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
6 <!-- ensure required environment variables are set --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
7 <macrodef name="env-require"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
8 <attribute name="name"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
9 <sequential> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
10 <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
|
11 <condition> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
12 <not><isset property="env.@{name}"/></not> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
13 </condition> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
14 </fail> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
15 </sequential> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
16 </macrodef> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
17 <env-require name="JRE_HOME"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
18 <env-require name="KOTLIN_HOME"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
19 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
20 <!-- define the kotlin task --> |
22 | 21 <property name="kotlin.lib" value="${env.KOTLIN_HOME}/lib"/> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
22 <typedef resource="org/jetbrains/kotlin/ant/antlib.xml" |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
23 classpath="${kotlin.lib}/kotlin-ant.jar"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
24 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
25 <!-- define the package-building tasks --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
26 <taskdef resource="com/sun/javafx/tools/ant/antlib.xml" |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
27 uri="javafx:com.sun.javafx.tools.ant" |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
28 classpath="${env.JRE_HOME}/lib/ant-javafx.jar"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
29 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
30 <!-- 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
|
31 <scriptdef language="javascript" name="toLowerCase"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
32 <attribute name="value" /> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
33 <attribute name="target" /> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
34 <![CDATA[ |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
35 project.setProperty( attributes.get( "target" ), |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
36 attributes.get( "value" ).toLowerCase() ); |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
37 ]]> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
38 </scriptdef> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
39 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
40 <!-- 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
|
41 <property name="app.name" value="${ant.project.name}"/> |
23
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
42 <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
|
43 <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
|
44 <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
|
45 <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
|
46 <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
|
47 <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
|
48 <property name="src.home" value="${basedir}/src"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
49 <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
|
50 <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
|
51 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
52 <!-- help message --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
53 <target name="help"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
54 <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
|
55 <echo> </echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
56 <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
|
57 <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
|
58 <echo> clean : Deletes work directories</echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
59 <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
|
60 <echo> jar : Make JAR file.</echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
61 <echo> </echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
62 <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
|
63 <echo>prompt> ant all </echo> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
64 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
65 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
66 <!-- Define the CLASSPATH --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
67 <target name="classpath"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
68 <path id="std.classpath"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
69 <fileset dir="${lib.home}"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
70 <include name="*.jar"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
71 </fileset> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
72 </path> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
73 <path id="compile.classpath"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
74 <path refid="std.classpath"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
75 <pathelement location="${src.home}"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
76 </path> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
77 <path id="test.classpath"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
78 <path refid="std.classpath"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
79 <pathelement location="${work.home}"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
80 </path> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
81 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
82 |
26 | 83 <!-- make needed directories --> |
84 <target name="mkdirs"> | |
85 <mkdir dir="${lib.home}"/> | |
86 </target> | |
87 | |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
88 <!-- do everything but install --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
89 <target name="all" depends="jar" |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
90 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
|
91 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
92 <!-- compile *.kt to *.class --> |
26 | 93 <target name="compile" depends="mkdirs,classpath" |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
94 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
|
95 <kotlinc src="${src.home}" output="${work.jar}" |
5 | 96 classpathref="compile.classpath"> |
97 <compilerarg line="-jvm-target 1.8"/> | |
98 </kotlinc> | |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
99 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
100 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
101 <!-- make .jar file --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
102 <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
|
103 <jar destfile="${jar.name}"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
104 <manifest> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
105 <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
|
106 </manifest> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
107 <zipgroupfileset dir="${lib.home}" includes="*.jar"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
108 <zipfileset src="${work.jar}"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
109 <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
|
110 </jar> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
111 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
112 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
113 <!-- for making bundled apps --> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
114 <macrodef name="bundle"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
115 <attribute name="type"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
116 <element name="args"/> |
11 | 117 <element name="icons"/> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
118 <sequential> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
119 <fx:deploy nativeBundles="@{type}" outdir="${basedir}" outfile="${app.name}" |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
120 signBundle="false"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
121 <fx:application mainClass="${app.entry}" name="${app.name}" toolkit="swing" |
23
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
122 version="${app.version}"/> |
25 | 123 <fx:info description="${app.name}" title="${app.name}" |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
124 vendor="David Barts <n5jrn@me.com>" |
11 | 125 copyright="© MMXX, David W. Barts"> |
126 <icons/> | |
127 </fx:info> | |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
128 <fx:resources> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
129 <fx:fileset dir="${basedir}" includes="${lc.app.name}.jar"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
130 </fx:resources> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
131 <fx:bundleArgument arg="runtime" value="${env.JRE_HOME}"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
132 <args/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
133 </fx:deploy> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
134 </sequential> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
135 </macrodef> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
136 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
137 <target name="macapp" depends="jar" description="Create MacOS app bundle."> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
138 <bundle type="image"> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
139 <args> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
140 <fx:bundleArgument arg="jvmOptions" value="-Xdock:name=${app.name}"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
141 </args> |
11 | 142 <icons> |
25 | 143 <fx:icon href="${basedir}/${app.name}.icns"/> |
11 | 144 </icons> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
145 </bundle> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
146 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
147 |
23
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
148 <target name="dummywork" description="dummy dir to make javapackager happy"> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
149 <mkdir dir="${work.home}"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
150 <copy file="${jar.name}" tofile="${work.home}/${app.name}.jar"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
151 </target> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
152 |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
153 <!-- fx:deploy is broken on Windoze, must run javapackager command --> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
154 <target name="winapp" depends="jar,dummywork" description="Create app bundle."> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
155 <exec executable="${env.JRE_HOME}/bin/javapackager"> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
156 <arg value="-deploy"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
157 <arg value="-Bicon=${app.name}.ico"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
158 <arg value="-BappVersion=${app.version}"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
159 <arg value="-title"/> <arg value="${app.name}"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
160 <arg value="-appclass"/> <arg value="${app.entry}"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
161 <arg value="-native"/> <arg value="image"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
162 <arg value="-name"/> <arg value="${app.name}"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
163 <arg value="-outdir"/> <arg value="."/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
164 <arg value="-outfile"/> <arg value="${app.name}"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
165 <arg value="-srcdir"/> <arg value="${work.home}"/> |
5cac95c17fef
More Windows stuff. Attempts to get Windows packages working.
davidb
parents:
22
diff
changeset
|
166 </exec> |
0
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
167 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
168 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
169 <target name="rpm" depends="jar" description="Create RPM package."> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
170 <bundle type="rpm"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
171 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
172 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
173 <target name="deb" depends="jar" description="Create Debian package."> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
174 <bundle type="deb"/> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
175 </target> |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
176 |
db63d01a23c6
JNI calls and test case (finally!) seem to work.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
177 </project> |