1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <project xmlns:if="ant:if" xmlns:ivy="antlib:org.apache.ivy.ant" name="MicrosoftStreetside" default="dist" basedir=".">
|
---|
3 | <!-- Configure these properties (replace "..." accordingly).
|
---|
4 | See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
|
---|
5 | -->
|
---|
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"/>
|
---|
12 | <!--** include targets that all plugins have in common **-->
|
---|
13 | <import file="../build-common.xml"/>
|
---|
14 | <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
|
---|
15 | <include name="apache-commons.jar"/>
|
---|
16 | <include name="apache-http.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 | <include name="utilsplugin2.jar"/>
|
---|
21 | </fileset>
|
---|
22 | <target name="pre-compile" depends="fetch_dependencies">
|
---|
23 | <!-- include fetch_dependencies task -->
|
---|
24 | <ivy:retrieve conf="provided,default"/>
|
---|
25 | <!--<ivy:cachepath pathid="compile.path" conf="default,provided"/>-->
|
---|
26 | </target>
|
---|
27 | <target name="build-jar">
|
---|
28 | <ivy:resolve/>
|
---|
29 | <ivy:cachefileset setid="ivy.default.path" conf="default"/>
|
---|
30 | <jar destfile="${basedir}/dependencies.jar" duplicate="preserve" level="0">
|
---|
31 | <zipgroupfileset refid="ivy.default.path"/>
|
---|
32 | </jar>
|
---|
33 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="${manifest}" manifestencoding="UTF-8" duplicate="preserve" level="9" excludes="${basedir}/dependencies.jar">
|
---|
34 | <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"/>
|
---|
35 | </jar>
|
---|
36 | <delete file="${basedir}/dependencies.jar"/>
|
---|
37 | </target>
|
---|
38 | </project>
|
---|