Ignore:
Timestamp:
2007-12-11T23:31:35+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/plastic_laf/build.xml

    r5197 r6034  
    1818      <include name="**/*.java" />
    1919    </javac>
     20    <!-- define the version of the jar file -->
     21    <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     22      <env key="LANG" value="C"/>
     23      <arg value="info"/>
     24      <arg value="--xml"/>
     25      <arg value="."/>
     26    </exec>
     27    <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     28        <!-- delete intermediate file -->
     29    <delete file="REVISION"/>
    2030    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    2131      <manifest>
    2232        <attribute name="Plugin-Class" value="plastic_laf.Plugin" />
    2333        <attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel" />
     34        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    2435        <attribute name="Plugin-Early" value="true" />
    2536      </manifest>
Note: See TracChangeset for help on using the changeset viewer.