MapWithAI/build.xml

68 wiersze
3.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="mapwithai" default="dist" basedir=".">
<property name="plugin.src.dir" value="src/main/java"/>
<property name="plugin.test.dir" value="src/test"/>
<!-- edit the properties of this plugin in the file `gradle.properties` -->
<property file="${basedir}/gradle.properties"/>
<!-- ** include targets that all plugins have in common ** -->
<import file="../build-common.xml"/>
<!-- Override the `setup-dist-default` task from build-common.xml -->
<target name="setup-dist-default">
<copy todir="${plugin.build.dir}" failonerror="no" includeemptydirs="no">
<fileset dir="src/main/resources"/>
</copy>
<copy todir="${plugin.build.dir}">
<fileset dir=".">
<include name="README"/>
<include name="LICENSE*"/>
<include name="*GPL*"/>
<include name="*.md"/>
</fileset>
</copy>
</target>
<property name="ivy.home" value="${user.home}/.ant"/>
<property name="ivy.jar.dir" value="${ivy.home}/lib"/>
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar"/>
<fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
<include name="utilsplugin2.jar"/>
<include name="apache-http.jar"/>
</fileset>
<target name="download-ivy">
<mkdir dir="${ivy.jar.dir}"/>
<get src="https://jcenter.bintray.com/org/apache/ivy/ivy/2.5.0/ivy-2.5.0.jar" dest="${ivy.jar.file}" usetimestamp="true" ignoreerrors="true"/>
</target>
<target name="init-ivy" depends="download-ivy">
<path id="ivy.lib.path">
<fileset dir="${ivy.jar.dir}" includes="*.jar"/>
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
</target>
<target name="pre-compile" description="retrieve dependencies with Ivy" depends="init-ivy">
<ivy:retrieve/>
</target>
<target name="additional-manifest">
<manifest file="MANIFEST" mode="update">
<attribute name="17903_Plugin-Url" value="v1.8.7;https://github.com/JOSM/MapWithAI/releases/download/v1.8.7/mapwithai.jar" />
<attribute name="17084_Plugin-Url" value="v1.7.1.6;https://github.com/JOSM/MapWithAI/releases/download/v1.7.1.6/mapwithai.jar" />
<attribute name="16645_Plugin-Url" value="v1.6.8;https://github.com/JOSM/MapWithAI/releases/download/v1.6.8/mapwithai.jar" />
<attribute name="16284_Plugin-Url" value="v1.5.10;https://github.com/JOSM/MapWithAI/releases/download/v1.5.10/mapwithai.jar" />
<attribute name="16220_Plugin-Url" value="v1.4.7;https://github.com/JOSM/MapWithAI/releases/download/v1.4.7/mapwithai.jar" />
<attribute name="15820_Plugin-Url" value="v1.3.11;https://github.com/JOSM/MapWithAI/releases/download/v1.3.11/mapwithai.jar" />
<attribute name="15737_Plugin-Url" value="v1.2.7;https://github.com/JOSM/MapWithAI/releases/download/v1.2.7/mapwithai.jar" />
<attribute name="15609_Plugin-Url" value="v1.1.12;https://github.com/JOSM/MapWithAI/releases/download/v1.1.12/mapwithai.jar" />
<attribute name="15542_Plugin-Url" value="v1.0.9;https://github.com/JOSM/MapWithAI/releases/download/v1.0.9/mapwithai.jar" />
<attribute name="15233_Plugin-Url" value="v0.2.14;https://github.com/JOSM/MapWithAI/releases/download/v0.2.14/mapwithai.jar" />
</manifest>
</target>
</project>