source: subversion/applications/editors/josm/plugins/MicrosoftStreetside/build.xml @ 34581

Last change on this file since 34581 was 34581, checked in by donvip, 13 months ago

fix Ivy build of StreetSide? (conflicts with build of wikipedia plugin hosted on GitHub?)

File size: 2.5 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!--** This is a template build file for a JOSM  plugin.
3**
4** Maintaining versions
5** ====================-->
6<project name="MicrosoftStreetside" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
7
8        <!-- Configure these properties (replace "..." accordingly).
9                 See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
10             -->
11        <!-- enter the SVN commit message -->
12        <property name="commit.message" value="Commit message" />
13        <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
14        <property name="plugin.main.version" value="14153" />
15
16        <property name="plugin.author" value="renerr18" />
17        <property name="plugin.class" value="org.openstreetmap.josm.plugins.streetside.StreetsidePlugin" />
18        <property name="plugin.description" value="View high resolution Microsoft Streetside 360 degree imagery in JOSM." />
19        <property name="plugin.icon" value="images/streetside-logo-white.png" />
20        <property name="plugin.link" value="https://github.com/spatialdev/MicrosoftStreetside"/>
21        <property name="plugin.requires" value="apache-commons;apache-http;"/>
22
23        <property name="plugin.canloadatruntime" value="true"/>
24
25        <!-- edit the properties of this plugin in the file `gradle.properties` -->
26        <property file="${basedir}/gradle.properties"/>
27
28        <property name="josm" location="../../core/dist/josm-custom.jar"/>
29        <property name="plugin.dist.dir" value="../../dist"/>
30
31        <!--** include targets that all plugins have in common **-->
32        <import file="../build-common.xml"/>
33
34        <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
35                <include name="apache-commons.jar"/>
36                <include name="apache-http.jar"/>
37                <include name="utilsplugin2.jar"/>
38        </fileset>
39
40        <target name="pre-compile" depends="fetch_dependencies">
41                <!-- include fetch_dependencies task -->
42        </target>
43
44        <target name="clean_ivy">
45                <delete failonerror="false">
46                        <fileset dir="${plugin.lib.dir}">
47                                <include name="**/*.jar"/>
48                                <exclude name="**/*-custom.jar" />
49                        </fileset>
50                </delete>
51        </target>
52
53        <target name="fetch_dependencies" depends="clean_ivy, init-ivy">
54                <echo>fetching dependencies with ivy</echo>
55                <ivy:settings file="ivy_settings.xml" />
56                <ivy:retrieve pattern="${plugin.lib.dir}/[artifact]-[revision](-[classifier]).[ext]" conf="default" />
57        </target>
58
59        <target name="install-plugin" depends="clean, dist, install">
60                <echo>Installed Microsoft Streetside plugin</echo>
61        </target>
62
63        <target name="test-run" depends="install-plugin, runjosm">
64        </target>
65</project>
Note: See TracBrowser for help on using the repository browser.