Ignore:
Timestamp:
2007-10-24T07:31:46+02:00 (18 years ago)
Author:
joerg
Message:

josm/plugins: reindent build Files, sort plugin build order

File:
1 edited

Legend:

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

    r4428 r5147  
    11<project name="mappaint" default="build" basedir=".">
    22
    3         <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
    4         <property name="josm" location="../../core/dist/josm-custom.jar" />
    5         <!--<property name="josm" location="../josm/josm-latest.jar" ></property>-->
    6        
    7         <!-- target directory to place the plugin in -->
    8         <!-- Windows has a different home directory scheme then unix/linux -->
    9         <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix -->
    10         <property name="plugins" location="${user.home}/.josm/plugins" ></property>
    11         <!--<property name="plugins" location="${user.home}/Anwendungsdaten/JOSM/plugins" ></property>-->
     3  <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
     4  <property name="josm" location="../../core/dist/josm-custom.jar" />
     5  <!--<property name="josm" location="../josm/josm-latest.jar" ></property>-->
     6 
     7  <!-- target directory to place the plugin in -->
     8  <!-- Windows has a different home directory scheme then unix/linux -->
     9  <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix -->
     10  <property name="plugins" location="${user.home}/.josm/plugins" ></property>
     11  <!--<property name="plugins" location="${user.home}/Anwendungsdaten/JOSM/plugins" ></property>-->
    1212
    13         <!-- you should not need to modify anything below this! -->
     13  <!-- you should not need to modify anything below this! -->
    1414
    1515
    16         <target name="init">
    17                 <mkdir dir="build"></mkdir>
    18                 <mkdir dir="dist"></mkdir>
    19         </target>
     16  <target name="init">
     17    <mkdir dir="build"></mkdir>
     18    <mkdir dir="dist"></mkdir>
     19  </target>
    2020
    21         <target name="compile" depends="init">
    22                 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" source="1.5" target="1.5">
    23                         <include name="**/*.java" />
    24                 </javac>
    25         </target>
     21  <target name="compile" depends="init">
     22    <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" source="1.5" target="1.5">
     23      <include name="**/*.java" />
     24    </javac>
     25  </target>
    2626
    27         <target name="build" depends="compile">
    28                 <copy todir="build/standard">
    29                         <fileset dir="styles/standard"></fileset>
    30                 </copy>
    31                 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    32                         <env key="LANG" value="C"/>
    33                         <arg value="info"/>
    34                         <arg value="--xml"/>
    35                         <arg value="."/>
    36                 </exec>
    37                 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    38                 <delete file="REVISION"/>
    39                 <jar destfile="dist/mappaint.jar" basedir="build">
    40                         <manifest>
    41                                 <attribute name="Plugin-Class" value="mappaint.MapPaintPlugin" />
    42                                 <attribute name="Plugin-Description" value="An alternative render for the map with colouring, line thickness and icons.&lt;br&gt;" />
    43                                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    44                                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    45                                 <attribute name="Author" value="Nick Whitelegg / Ulf Lamping"/>
    46                         </manifest>
    47                 </jar>
    48         </target>
     27  <target name="build" depends="compile">
     28    <copy todir="build/standard">
     29      <fileset dir="styles/standard"></fileset>
     30    </copy>
     31    <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     32      <env key="LANG" value="C"/>
     33      <arg value="info"/>
     34      <arg value="--xml"/>
     35      <arg value="."/>
     36    </exec>
     37    <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     38    <delete file="REVISION"/>
     39    <jar destfile="dist/mappaint.jar" basedir="build">
     40      <manifest>
     41        <attribute name="Plugin-Class" value="mappaint.MapPaintPlugin" />
     42        <attribute name="Plugin-Description" value="An alternative render for the map with colouring, line thickness and icons.&lt;br&gt;" />
     43        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     44        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     45        <attribute name="Author" value="Nick Whitelegg / Ulf Lamping"/>
     46      </manifest>
     47    </jar>
     48  </target>
    4949
    50         <target name="clean">
    51                 <delete dir="build" />
    52                 <delete dir="dist" />
    53         </target>
     50  <target name="clean">
     51    <delete dir="build" />
     52    <delete dir="dist" />
     53  </target>
    5454
    55         <target name="clean_install">
    56                 <delete file="${plugins}/mappaint.jar" />
    57         </target>
     55  <target name="clean_install">
     56    <delete file="${plugins}/mappaint.jar" />
     57  </target>
    5858
    59         <target name="install" depends="build">
    60                 <copy file="dist/mappaint.jar" todir="${plugins}"/>
    61         </target>
     59  <target name="install" depends="build">
     60    <copy file="dist/mappaint.jar" todir="${plugins}"/>
     61  </target>
    6262
    6363</project>
Note: See TracChangeset for help on using the changeset viewer.