Ignore:
Timestamp:
2007-08-08T21:08:40+02:00 (18 years ago)
Author:
frsantos
Message:

Store version and build date in jar Manifest instead of REVISION file

File:
1 edited

Legend:

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

    r3579 r4018  
    2323                        <fileset dir="images"/>
    2424                </copy>
    25                 <exec append="false" output="build/resources/REVISION" executable="svn" failifexecutionfails="false">
     25                <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2626                        <env key="LANG" value="C"/>
    2727                        <arg value="info"/>
     28                        <arg value="--xml"/>
    2829                        <arg value="."/>
    2930                </exec>
    30                 <property file="build/resources/REVISION" />
     31                <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     32                <delete file="REVISION"/>
    3133                <jar destfile="ywms.jar" basedir="build">
    3234                        <manifest>
    3335                                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ywms.YWMSPlugin"/>
    3436                                <attribute name="Plugin-Description" value="A WMS server for Yahoo imagery based on Firefox"/>
    35                                 <attribute name="Plugin-Version" value="${Revision}"/>
     37                                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     38                                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    3639                                <attribute name="Author" value="Francisco R. Santos &lt;frsantos@gmail.com>"/>
    3740                        </manifest>
Note: See TracChangeset for help on using the changeset viewer.