comparison build.xml @ 57:c6cccbe2f393

Port to OpenJDK 15 (mostly done).
author David Barts <n5jrn@me.com>
date Wed, 23 Mar 2022 23:56:29 -0700
parents b1198e4bec25
children 8b707fa0a4fc
comparison
equal deleted inserted replaced
56:22725d4d7849 57:c6cccbe2f393
21 <property name="kotlin.lib" value="${env.KOTLIN_HOME}/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"
27 uri="javafx:com.sun.javafx.tools.ant" 27 uri="javafx:com.sun.javafx.tools.ant"
28 classpath="${env.JRE_HOME}/lib/ant-javafx.jar"/> 28 classpath="${env.JRE_HOME}/lib/ant-javafx.jar"/> -->
29
30 <!-- cribbed from https://stackoverflow.com/questions/7129672/uppercase-lowercase-capitalize-an-ant-property -->
31 <scriptdef language="javascript" name="toLowerCase">
32 <attribute name="value" />
33 <attribute name="target" />
34 <![CDATA[
35 project.setProperty( attributes.get( "target" ),
36 attributes.get( "value" ).toLowerCase() );
37 ]]>
38 </scriptdef>
39 29
40 <!-- Define the properties used by the build --> 30 <!-- Define the properties used by the build -->
41 <property name="app.name" value="${ant.project.name}"/> 31 <property name="app.name" value="${ant.project.name}"/>
42 <property name="app.entry" value="name.blackcap.clipman.MainKt"/> 32 <property name="app.entry" value="name.blackcap.clipman.MainKt"/>
43 <toLowerCase target="lc.app.name" value="${app.name}"/> 33 <property name="lc.app.name" value="clipman"/>
44 <property name="jar.name" value="${basedir}/${lc.app.name}.jar"/> 34 <property name="jar.name" value="${basedir}/${lc.app.name}.jar"/>
45 <property name="work.jar" value="${basedir}/work.jar"/> 35 <property name="work.jar" value="${basedir}/work.jar"/>
46 <property name="lib.home" value="${basedir}/lib"/> 36 <property name="lib.home" value="${basedir}/lib"/>
47 <property name="src.home" value="${basedir}/src"/> 37 <property name="src.home" value="${basedir}/src"/>
48 <property name="work.home" value="${basedir}/work"/> 38 <property name="work.home" value="${basedir}/work"/>
84 74
85 <!-- compile *.kt to *.class --> 75 <!-- compile *.kt to *.class -->
86 <target name="compile" depends="classpath" 76 <target name="compile" depends="classpath"
87 description="Compile Java sources to ${work.home}"> 77 description="Compile Java sources to ${work.home}">
88 <kotlinc src="${src.home}" output="${work.jar}" 78 <kotlinc src="${src.home}" output="${work.jar}"
79 noStdlib="false" includeRuntime="true"
89 classpathref="compile.classpath"> 80 classpathref="compile.classpath">
90 <compilerarg line="-jvm-target 1.8"/> 81 <compilerarg line="-jvm-target 1.8"/>
91 </kotlinc> 82 </kotlinc>
92 </target> 83 </target>
93 84