Changeset 31783 in osm


Ignore:
Timestamp:
2015-12-01T23:08:30+01:00 (9 years ago)
Author:
floscher
Message:

[mapillary] Move plugin-properties to a single file

To avoid having two places for setting project-wide properties, these are now set in the new file gradle.properties and picked up both by Ant and Gradle.

Location:
applications/editors/josm/plugins/mapillary
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/build.gradle

    r31782 r31783  
    107107  from configurations.packIntoJar.collect { it.isDirectory() ? it : zipTree(it) }
    108108  manifest {
    109     attributes("Plugin-Mainversion": "8433",
     109    attributes("Plugin-Mainversion": project.property('plugin.main.version'),
    110110               "Plugin-Version": "31395",
    111                "Plugin-Class": "org.openstreetmap.josm.plugins.mapillary.MapillaryPlugin",
    112                "Plugin-Description": "Enables user to work with pictures hosted at mapillary.com",
     111               "Plugin-Class": project.property('plugin.class'),
     112               "Plugin-Description": project.property('plugin.description'),
    113113               "Plugin-Date": String.format("%1\$tY-%1\$tm-%1\$tdT%1\$tH:%1\$tM:%1\$tS%1\$tz", new GregorianCalendar()),
    114                "Author": "nokutu <nokutu@openmailbox.org>",
    115                "Plugin-Link": "https://wiki.openstreetmap.org/wiki/JOSM/Plugins/Mapillary",
    116                "Plugin-Icon": "images/icon24.png",
    117                "Plugin-Requires": "commons-imaging",
    118                "Plugin-Canloadatruntime": "true")
     114               "Author": project.property('plugin.author'),
     115               "Plugin-Link": project.property('plugin.link'),
     116               "Plugin-Icon": project.property("plugin.icon"),
     117               "Plugin-Requires": project.property("plugin.requires"),
     118               "Plugin-Canloadatruntime": project.property('plugin.canloadatruntime'))
    119119  }
    120120}
  • applications/editors/josm/plugins/mapillary/build.xml

    r31688 r31783  
    22<project name="Mapillary" default="dist" basedir=".">
    33
    4     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    5     <property name="plugin.main.version" value="8433"/>
    6     <property name="plugin.canloadatruntime" value="true"/>
    7     <property name="plugin.version" value="1.0.4"/>
    8     <property name="plugin.author" value="nokutu &lt;nokutu@openmailbox.org&gt;"/>
    9     <property name="plugin.class" value="org.openstreetmap.josm.plugins.mapillary.MapillaryPlugin"/>
    10     <property name="plugin.description" value="Allows the user to work with pictures hosted at mapillary.com"/>
    11     <property name="plugin.icon" value="images/icon24.png"/>
    12     <property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/Mapillary"/>
    13     <!--<property name="plugin.early" value="..."/>-->
    14     <property name="plugin.requires" value="apache-commons;apache-http"/>
    15     <!--<property name="plugin.stage" value="..."/>-->
    16    
    17         <property name="josm" location="../../core/dist/josm-custom.jar"/>
    18         <property name="plugin.dist.dir" value="../../dist"/>
    19        
    20     <!-- ** include targets that all plugins have in common ** -->
    21    
    22     <import file="../build-common.xml"/>
    23    
    24     <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
    25         <include name="apache-commons.jar"/>
    26         <include name="apache-http.jar"/>
    27     </fileset>
     4  <!-- edit the properties of this plugin in the file `gradle.properties` -->
     5  <property file="${basedir}/gradle.properties"/>
     6
     7  <property name="josm" location="../../core/dist/josm-custom.jar"/>
     8  <property name="plugin.dist.dir" value="../../dist"/>
     9
     10  <!-- ** include targets that all plugins have in common ** -->
     11  <import file="../build-common.xml"/>
     12
     13  <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
     14    <include name="apache-commons.jar"/>
     15    <include name="apache-http.jar"/>
     16  </fileset>
    2817</project>
Note: See TracChangeset for help on using the changeset viewer.