Changeset 6032 in osm for applications


Ignore:
Timestamp:
2007-12-11T23:28:00+01:00 (17 years ago)
Author:
ulf
Message:

add a version number to the plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/nearclick/build.xml

    r5197 r6032  
    3737
    3838  <target name="dist" depends="compile">
     39    <!-- define the version of the jar file -->
     40    <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     41      <env key="LANG" value="C"/>
     42      <arg value="info"/>
     43      <arg value="--xml"/>
     44      <arg value="."/>
     45    </exec>
     46    <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     47        <!-- delete intermediate file -->
     48    <delete file="REVISION"/>
    3949    <jar destfile="${plugin.jar}" basedir="build">
    4050      <manifest>
    4151        <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" />
    4252        <attribute name="Plugin-Description" value="Simulates a click when you do a small and short drag. This is usefull for tablet pens, when you have problems just clicking the tablet without the mouse moving (general Java - tablet problem)." />
     53        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    4354      </manifest>
    4455    </jar>
Note: See TracChangeset for help on using the changeset viewer.