Mercurial > cgi-bin > hgweb.cgi > ClipMan
comparison build.xml @ 51:e8d2a7e6f6c7
So it builds under Windoze (at last!)
author | davidb |
---|---|
date | Tue, 14 Apr 2020 14:35:04 -0700 |
parents | 19d9da731c43 |
children | b1198e4bec25 |
comparison
equal
deleted
inserted
replaced
50:3f8409470fdf | 51:e8d2a7e6f6c7 |
---|---|
16 </macrodef> | 16 </macrodef> |
17 <env-require name="JRE_HOME"/> | 17 <env-require name="JRE_HOME"/> |
18 <env-require name="KOTLIN_HOME"/> | 18 <env-require name="KOTLIN_HOME"/> |
19 | 19 |
20 <!-- define the kotlin task --> | 20 <!-- define the kotlin task --> |
21 <property name="kotlin.lib" value="${env.KOTLIN_HOME}/libexec/lib"/> | 21 <property name="kotlin.lib" value="${env.KOTLIN_HOME}/lib"/> |
22 <typedef resource="org/jetbrains/kotlin/ant/antlib.xml" | 22 <typedef resource="org/jetbrains/kotlin/ant/antlib.xml" |
23 classpath="${kotlin.lib}/kotlin-ant.jar"/> | 23 classpath="${kotlin.lib}/kotlin-ant.jar"/> |
24 | 24 |
25 <!-- define the package-building tasks --> | 25 <!-- define the package-building tasks --> |
26 <taskdef resource="com/sun/javafx/tools/ant/antlib.xml" | 26 <taskdef resource="com/sun/javafx/tools/ant/antlib.xml" |
43 <toLowerCase target="lc.app.name" value="${app.name}"/> | 43 <toLowerCase target="lc.app.name" value="${app.name}"/> |
44 <property name="jar.name" value="${basedir}/${lc.app.name}.jar"/> | 44 <property name="jar.name" value="${basedir}/${lc.app.name}.jar"/> |
45 <property name="work.jar" value="${basedir}/work.jar"/> | 45 <property name="work.jar" value="${basedir}/work.jar"/> |
46 <property name="lib.home" value="${basedir}/lib"/> | 46 <property name="lib.home" value="${basedir}/lib"/> |
47 <property name="src.home" value="${basedir}/src"/> | 47 <property name="src.home" value="${basedir}/src"/> |
48 <property name="work.home" value="${basedir}/work"/> | |
48 | 49 |
49 <!-- help message --> | 50 <!-- help message --> |
50 <target name="help"> | 51 <target name="help"> |
51 <echo>You can use the following targets:</echo> | 52 <echo>You can use the following targets:</echo> |
52 <echo> </echo> | 53 <echo> </echo> |
103 </target> | 104 </target> |
104 | 105 |
105 <!-- for making bundled apps --> | 106 <!-- for making bundled apps --> |
106 <macrodef name="bundle"> | 107 <macrodef name="bundle"> |
107 <attribute name="type"/> | 108 <attribute name="type"/> |
108 <element name="args"/> | 109 <element name="args" optional="true"/> |
109 <sequential> | 110 <sequential> |
110 <fx:deploy nativeBundles="@{type}" outdir="${basedir}" outfile="${app.name}" | 111 <fx:deploy nativeBundles="@{type}" outdir="${basedir}" outfile="${app.name}" |
111 signBundle="false"> | 112 signBundle="false"> |
112 <fx:application mainClass="${app.entry}" name="${app.name}" toolkit="swing" | 113 <fx:application mainClass="${app.entry}" name="${app.name}" toolkit="swing" |
113 version="1.01"/> | 114 version="1.01"/> |
129 <fx:bundleArgument arg="jvmOptions" value="-Xdock:name=${app.name}"/> | 130 <fx:bundleArgument arg="jvmOptions" value="-Xdock:name=${app.name}"/> |
130 </args> | 131 </args> |
131 </bundle> | 132 </bundle> |
132 </target> | 133 </target> |
133 | 134 |
134 <target name="app" depends="jar" description="Create app bundle."> | 135 <target name="dummywork" description="dummy dir to make javapackager happy"> |
135 <bundle type="image"/> | 136 <mkdir dir="${work.home}"/> |
137 <copy file="${jar.name}" tofile="${work.home}/${app.name}.jar"/> | |
138 </target> | |
139 | |
140 <!-- fx:deploy is broken on Windoze, must run javapackager command --> | |
141 <target name="app" depends="jar,dummywork" description="Create app bundle."> | |
142 <exec executable="${env.JRE_HOME}/bin/javapackager"> | |
143 <arg value="-deploy"/> | |
144 <arg value="-title"/> <arg value="${app.name}"/> | |
145 <arg value="-appclass"/> <arg value="${app.entry}"/> | |
146 <arg value="-native"/> <arg value="image"/> | |
147 <arg value="-name"/> <arg value="${app.name}"/> | |
148 <arg value="-outdir"/> <arg value="."/> | |
149 <arg value="-outfile"/> <arg value="${app.name}"/> | |
150 <arg value="-srcdir"/> <arg value="${work.home}"/> | |
151 </exec> | |
136 </target> | 152 </target> |
137 | 153 |
138 <target name="rpm" depends="jar" description="Create RPM package."> | 154 <target name="rpm" depends="jar" description="Create RPM package."> |
139 <bundle type="rpm"/> | 155 <bundle type="rpm"/> |
140 </target> | 156 </target> |