[34317] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
[36034] | 2 | <project xmlns:if="ant:if" xmlns:ivy="antlib:org.apache.ivy.ant" name="MicrosoftStreetside" default="dist" basedir=".">
|
---|
| 3 | <!-- Configure these properties (replace "..." accordingly).
|
---|
[34710] | 4 | See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
|
---|
| 5 | -->
|
---|
[36034] | 6 | <!-- enter the SVN commit message -->
|
---|
| 7 | <property name="commit.message" value="Commit message"/>
|
---|
| 8 | <!-- edit the properties of this plugin in the file `gradle.properties` -->
|
---|
| 9 | <property file="${basedir}/gradle.properties"/>
|
---|
| 10 | <property name="josm" location="../../core/dist/josm-custom.jar"/>
|
---|
| 11 | <property name="plugin.dist.dir" value="../../dist"/>
|
---|
[36228] | 12 | <property name="java.lang.version" value="21"/>
|
---|
[36034] | 13 | <!--** include targets that all plugins have in common **-->
|
---|
| 14 | <import file="../build-common.xml"/>
|
---|
| 15 | <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
|
---|
| 16 | <include name="apache-commons.jar"/>
|
---|
| 17 | <include name="javafx-osx.jar" if:set="isMac"/>
|
---|
| 18 | <include name="javafx-unixoid.jar" if:set="isUnix"/>
|
---|
| 19 | <include name="javafx-windows.jar" if:set="isWindows"/>
|
---|
| 20 | </fileset>
|
---|
| 21 | <target name="pre-compile" depends="fetch_dependencies">
|
---|
| 22 | <!-- include fetch_dependencies task -->
|
---|
| 23 | <ivy:retrieve conf="provided,default"/>
|
---|
| 24 | <!--<ivy:cachepath pathid="compile.path" conf="default,provided"/>-->
|
---|
| 25 | </target>
|
---|
| 26 | <target name="build-jar">
|
---|
| 27 | <ivy:resolve/>
|
---|
| 28 | <ivy:cachefileset setid="ivy.default.path" conf="default"/>
|
---|
| 29 | <jar destfile="${basedir}/dependencies.jar" duplicate="preserve" level="0">
|
---|
| 30 | <zipgroupfileset refid="ivy.default.path"/>
|
---|
| 31 | </jar>
|
---|
| 32 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="${manifest}" manifestencoding="UTF-8" duplicate="preserve" level="9" excludes="${basedir}/dependencies.jar">
|
---|
| 33 | <zipfileset src="${basedir}/dependencies.jar" excludes="META-INF/maven/* META-INF/DEPENDENCIES META-INF/LICENSE META-INF/NOTICE META-INF/*.RSA META-INF/*.SF module-info.class"/>
|
---|
| 34 | </jar>
|
---|
| 35 | <delete file="${basedir}/dependencies.jar"/>
|
---|
| 36 | </target>
|
---|
[34317] | 37 | </project>
|
---|