Ignore:
Timestamp:
2009-01-01T18:55:45+01:00 (16 years ago)
Author:
stoecker
Message:

removed tab stop usage

File:
1 edited

Legend:

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

    r12588 r12780  
    11<project name="tcx-support" default="dist" basedir=".">
    2  
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"       value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir"     value="build"/>
    16   <property name="plugin.dist.dir"      value="../../dist"/>
    17   <property name="plugin.name"          value="${ant.project.name}"/>
    18   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/>
    21  
    22   <property name="plugin.description" value="Adds support for TCX files."/>
    23   <property name="plugin.stage" value="100"/>
    24   <property name="plugin.class" value="org.openstreetmap.josm.plugins.TcxPlugin"/>
    25  
    26   <!-- update site meta data -->
    27   <property name="plugin.site.file" value="josm-site.xml"/>
    28   <property name="plugin.site.description" value=""/>
    29   <property name="plugin.site.url" value=""/>
    30   <property name="plugin.site.upload.target" value=""/>
    31 
    32   <property name="ant.build.javac.target" value="1.5"/>
    33  
    34         <!-- All jar files necessary to run only JOSM (no tests) -->
    35         <fileset id="josm_required_libs" dir="lib">
    36         </fileset>
    37        
    38  
    39   <target name="dist" depends="compile,site">
    40         <!-- jars -->
    41         <unjar dest="build">
    42                 <fileset refid="josm_required_libs" />
    43         </unjar>
    44         <!-- images -->
    45         <copy todir="build/images">
    46                 <fileset dir="images" />
    47         </copy>
    48 
    49        
    50    
    51     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    52       <env key="LANG" value="C"/>
    53       <arg value="info"/>
    54       <arg value="--xml"/>
    55       <arg value="."/>
    56     </exec>
    57     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    58     <delete file="REVISION"/>
    59     <!-- create jar file -->
    60     <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    61       <manifest>
    62         <attribute name="Plugin-Class" value="${plugin.class}" />
    63         <attribute name="Plugin-Description" value="${plugin.description}" />
    64         <attribute name="Plugin-Stage" value="${plugin.stage}" />
    65         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    66         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    67         <attribute name="Plugin-Mainversion" value="1180" />
     2<!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
     3    <property environment="env"/>
     4    <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
     5        <and>
     6            <os family="windows"/>
     7        </and>
     8    </condition>
     9<!-- compilation properties -->
     10    <property name="josm.build.dir"   value="../../core"/>
     11    <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
     12    <property name="josm"         location="../../core/dist/josm-custom.jar" />
     13    <property name="plugin.build.dir" value="build"/>
     14    <property name="plugin.dist.dir"  value="../../dist"/>
     15    <property name="plugin.name"      value="${ant.project.name}"/>
     16    <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     17    <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/>
     18    <property name="plugin.description" value="Adds support for TCX files."/>
     19    <property name="plugin.stage" value="100"/>
     20    <property name="plugin.class" value="org.openstreetmap.josm.plugins.TcxPlugin"/>
     21<!-- update site meta data -->
     22    <property name="plugin.site.file" value="josm-site.xml"/>
     23    <property name="plugin.site.description" value=""/>
     24    <property name="plugin.site.url" value=""/>
     25    <property name="plugin.site.upload.target" value=""/>
     26    <property name="ant.build.javac.target" value="1.5"/>
     27<!-- All jar files necessary to run only JOSM (no tests) -->
     28    <fileset id="josm_required_libs" dir="lib"></fileset>
     29    <target name="dist" depends="compile,site">
     30<!-- jars -->
     31        <unjar dest="build">
     32            <fileset refid="josm_required_libs" />
     33        </unjar>
     34<!-- images -->
     35        <copy todir="build/images">
     36            <fileset dir="images" />
     37        </copy>
     38        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     39            <env key="LANG" value="C"/>
     40            <arg value="info"/>
     41            <arg value="--xml"/>
     42            <arg value="."/>
     43        </exec>
     44        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     45        <delete file="REVISION"/>
     46<!-- create jar file -->
     47        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     48            <manifest>
     49                <attribute name="Plugin-Class" value="${plugin.class}" />
     50                <attribute name="Plugin-Description" value="${plugin.description}" />
     51                <attribute name="Plugin-Stage" value="${plugin.stage}" />
     52                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     53                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     54                <attribute name="Plugin-Mainversion" value="1180" />
    6855<!--        <attribute name="Class-Path" value="lib/jaxb-api.jar;lib/jaxb-impl.jar" />-->
    69       </manifest>
    70     </jar>
    71   </target>
    72 
    73   <target name="compile" depends="init">
    74     <echo message="creating ${plugin.jar}"/>
    75     <mkdir dir="${plugin.build.dir}"/>
    76     <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    77       <classpath>
    78                 <pathelement path="${josm.build.dir}/build"/>
    79                 <fileset dir="${josm.build.dir}/lib">
    80                         <include name="**/*.jar"/>
    81                 </fileset>
    82                 <fileset dir="./lib">
    83                         <include name="**/*.jar"/>
    84                 </fileset>
    85       </classpath>
    86     </javac>
    87   </target>
    88  
    89   <target name="install" depends="dist">
    90     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    91   </target>
    92 
    93   <target name="init">
    94     <echo>java version: ${java.version}</echo>
    95   </target>
    96 
    97   <target name="clean">
    98     <delete dir="${plugin.build.dir}" />
    99     <delete dir="${plugin.site.file}" />
    100     <delete file="${plugin.jar}" />
    101   </target>
    102 
    103   <!-- write site description for the given plugin so josm will accept it -->
    104   <target name="site">
    105     <echo message="creating site description in ${plugin.site.file}"/>
    106     <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
     56            </manifest>
     57        </jar>
     58    </target>
     59    <target name="compile" depends="init">
     60        <echo message="creating ${plugin.jar}"/>
     61        <mkdir dir="${plugin.build.dir}"/>
     62        <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
     63            <classpath>
     64                <pathelement path="${josm.build.dir}/build"/>
     65                <fileset dir="${josm.build.dir}/lib">
     66                    <include name="**/*.jar"/>
     67                </fileset>
     68                <fileset dir="./lib">
     69                    <include name="**/*.jar"/>
     70                </fileset>
     71            </classpath>
     72        </javac>
     73    </target>
     74    <target name="install" depends="dist">
     75        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     76    </target>
     77    <target name="init">
     78        <echo>java version: ${java.version}</echo>
     79    </target>
     80    <target name="clean">
     81        <delete dir="${plugin.build.dir}" />
     82        <delete dir="${plugin.site.file}" />
     83        <delete file="${plugin.jar}" />
     84    </target>
     85<!-- write site description for the given plugin so josm will accept it -->
     86    <target name="site">
     87        <echo message="creating site description in ${plugin.site.file}"/>
     88        <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
    10789  &lt;plugins>
    10890  &lt;plugin id="${ant.project.name}" version="${plugin.version}">
     
    11395  &lt;/plugins>
    11496</echo>
    115 </target>
    116 
     97    </target>
    11798<!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
    118 <target name="site-full-donotuse">
    119   <echo message="creating site description in ${plugin.site.file}"/>
    120   <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
     99    <target name="site-full-donotuse">
     100        <echo message="creating site description in ${plugin.site.file}"/>
     101        <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
    121102    &lt;site version="1.0">
    122103    &lt;!-- meta data of site -->
     
    139120&lt;/site>
    140121</echo>
    141 </target>
    142 
    143 
     122    </target>
    144123<!-- upload the site description and the jar file via ssh -->
    145 <target name="upload" depends="dist,site">
    146   <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    147   <exec executable="scp">
    148     <arg value="${plugin.jar}"/>
    149     <arg value="${plugin.site.file}"/>
    150     <arg value="${plugin.site.upload.target}"/>
    151   </exec>
    152 </target>
    153 
     124    <target name="upload" depends="dist,site">
     125        <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
     126        <exec executable="scp">
     127            <arg value="${plugin.jar}"/>
     128            <arg value="${plugin.site.file}"/>
     129            <arg value="${plugin.site.upload.target}"/>
     130        </exec>
     131    </target>
    154132</project>
Note: See TracChangeset for help on using the changeset viewer.