Ignore:
Timestamp:
2007-10-24T07:31:46+02:00 (17 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/livegps/build.xml

    r3836 r5147  
    11<project name="livegps" default="dist" basedir=".">
    22  <!-- compilation properties -->
    3    <property name="josm.build.dir" value="../../core"/>
    4    <property name="josm.home.dir" value="${user.home}/.josm"/>
    5    <property name="plugin.build.dir" value="build"/>
    6    <property name="plugin.name" value="${ant.project.name}"/>
    7    <property name="plugin.jar" value="${plugin.name}.jar"/>
    8    <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/>
    9    
    10    <!-- plugin meta data (enter new version number if anything changed!) -->
    11    <property name="plugin.version" value="1.2.1"/>
    12    <property name="plugin.description" value="Allow live GPS feed from a gpsd server (V${plugin.version})."/>
    13    <property name="plugin.stage" value="50"/>
    14    <property name="plugin.class" value="livegps.LiveGpsPlugin"/>
    15    
    16    <!-- update site meta data -->
    17    <property name="plugin.site.file" value="josm-site.xml"/>
    18    <property name="plugin.site.description" value="Josm's LiveGps Update Site"/>
    19    <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/livegps/"/>
    20    <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/livegps/"/>
    21    
     3  <property name="josm.build.dir" value="../../core"/>
     4  <property name="josm.home.dir" value="${user.home}/.josm"/>
     5  <property name="plugin.build.dir" value="build"/>
     6  <property name="plugin.name" value="${ant.project.name}"/>
     7  <property name="plugin.jar" value="${plugin.name}.jar"/>
     8  <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/>
     9 
     10  <!-- plugin meta data (enter new version number if anything changed!) -->
     11  <property name="plugin.version" value="1.2.1"/>
     12  <property name="plugin.description" value="Allow live GPS feed from a gpsd server (V${plugin.version})."/>
     13  <property name="plugin.stage" value="50"/>
     14  <property name="plugin.class" value="livegps.LiveGpsPlugin"/>
     15 
     16  <!-- update site meta data -->
     17  <property name="plugin.site.file" value="josm-site.xml"/>
     18  <property name="plugin.site.description" value="Josm's LiveGps Update Site"/>
     19  <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/livegps/"/>
     20  <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/livegps/"/>
     21 
    2222
    2323  <target name="dist" depends="compile,site">
     
    5757
    5858  <target name="init">
    59      <echo>java version: ${java.version}</echo>
    60    </target>
     59    <echo>java version: ${java.version}</echo>
     60  </target>
    6161
    6262  <target name="clean">
     
    7171    <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
    7272  &lt;plugins>
    73     &lt;plugin id="${ant.project.name}" version="${plugin.version}">
    74       &lt;name>${ant.project.name}&lt;/name>
    75       &lt;description>${plugin.description}&lt;/description>
    76       &lt;resource>${plugin.site.url}${plugin.jar}&lt;/resource>
    77     &lt;/plugin>
     73  &lt;plugin id="${ant.project.name}" version="${plugin.version}">
     74  &lt;name>${ant.project.name}&lt;/name>
     75  &lt;description>${plugin.description}&lt;/description>
     76  &lt;resource>${plugin.site.url}${plugin.jar}&lt;/resource>
     77  &lt;/plugin>
    7878  &lt;/plugins>
    79     </echo>
    80   </target>
     79</echo>
     80</target>
    8181
    82   <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
    83   <target name="site-full-donotuse">
    84     <echo message="creating site description in ${plugin.site.file}"/>
    85     <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
    86 &lt;site version="1.0">
    87   &lt;!-- meta data of site -->
    88   &lt;site-info>
    89     &lt;site-name>${plugin.site.description}&lt;/site-name>
    90     &lt;site-url>${plugin.site.url}&lt;/site-url>
    91   &lt;/site-info>
     82<!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
     83<target name="site-full-donotuse">
     84  <echo message="creating site description in ${plugin.site.file}"/>
     85  <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
     86    &lt;site version="1.0">
     87    &lt;!-- meta data of site -->
     88&lt;site-info>
     89&lt;site-name>${plugin.site.description}&lt;/site-name>
     90&lt;site-url>${plugin.site.url}&lt;/site-url>
     91&lt;/site-info>
    9292
    93   &lt;!-- plugins available on this site -->
    94   &lt;plugins>
    95     &lt;plugin id="${ant.project.name}" version="${plugin.version}">
    96       &lt;name>${ant.project.name}&lt;/name>
    97       &lt;description>${plugin.description}&lt;/description>
    98       &lt;resources>
    99         &lt;resource src="${plugin.site.url}${plugin.jar}"
    100                   target="${josm.home.dir}/plugins/${plugin.jar}"/>
    101       &lt;/resources>
    102     &lt;/plugin>
    103   &lt;/plugins>
     93&lt;!-- plugins available on this site -->
     94&lt;plugins>
     95&lt;plugin id="${ant.project.name}" version="${plugin.version}">
     96&lt;name>${ant.project.name}&lt;/name>
     97&lt;description>${plugin.description}&lt;/description>
     98&lt;resources>
     99&lt;resource src="${plugin.site.url}${plugin.jar}"
     100target="${josm.home.dir}/plugins/${plugin.jar}"/>
     101&lt;/resources>
     102&lt;/plugin>
     103&lt;/plugins>
    104104&lt;/site>
    105     </echo>
    106   </target>
     105</echo>
     106</target>
    107107
    108   <!-- upload the site description and the jar file via ssh -->
    109   <target name="upload" depends="dist,site">
    110     <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    111     <exec executable="scp">
    112       <arg value="${plugin.jar}"/>
    113       <arg value="${plugin.site.file}"/>
    114       <arg value="${plugin.site.upload.target}"/>
    115     </exec>
    116   </target>
     108<!-- upload the site description and the jar file via ssh -->
     109<target name="upload" depends="dist,site">
     110  <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
     111  <exec executable="scp">
     112    <arg value="${plugin.jar}"/>
     113    <arg value="${plugin.site.file}"/>
     114    <arg value="${plugin.site.upload.target}"/>
     115  </exec>
     116</target>
    117117
    118118</project>
Note: See TracChangeset for help on using the changeset viewer.