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/colorscheme/build.xml

    r12588 r12780  
    11<project name="colorscheme" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11  
    12   <property name="plugin.description" value="Allows the user to create different color schemes and to switch between them. Just change the colors and create a new scheme. Used to switch to a white background with matching colors for better visibility in bright sunlight. See dialog in JOSM's preferences and 'Map Settings' (strange but true :-) (V${plugin.version})."/>
    13   <property name="plugin.class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin"/>
    14 
    15   <!-- update site meta data -->
    16   <property name="plugin.site.file" value="josm-site.xml"/>
    17   <property name="plugin.site.description" value="Josm's ColorScheme Plugin Update Site"/>
    18   <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/colorscheme/"/>
    19   <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/colorscheme/"/>
    20 
    21   <property name="ant.build.javac.target" value="1.5"/>
    22  
    23   <target name="dist" depends="compile, site">
    24     <echo message="creating ${plugin.jar}"/>
    25     <!-- images -->
    26     <!--
    27          <copy todir="${plugin.build.dir}/images">
    28            <fileset dir="src/images" />
    29          </copy>
    30          -->
    31     <!-- copy configuration xml files -->
    32     <copy todir="${plugin.build.dir}">
    33       <fileset dir="src">
    34         <include name="*.xml"/>
    35       </fileset>
    36     </copy>
    37    
    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-Version" value="${version.entry.commit.revision}"/>
    52         <attribute name="Plugin-Mainversion" value="1180"/>
    53         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    54       </manifest>
    55     </jar>
    56   </target>
    57 
    58   <target name="compile" depends="init">
    59     <mkdir dir="${plugin.build.dir}"/>
    60     <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    61       <classpath>
    62         <pathelement path="${josm.build.dir}/build"/>
    63         <fileset dir="${josm.build.dir}/lib">
    64           <include name="**/*.jar"/>
    65         </fileset>
    66       </classpath>
    67     </javac>
    68   </target>
    69 
    70   <target name="install" depends="dist">
    71     <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />
    72   </target>
    73 
    74   <target name="init">
    75     <echo>java version: ${java.version}</echo>
    76   </target>
    77 
    78   <target name="clean">
    79     <delete dir="${plugin.site.file}" />
    80     <delete dir="${plugin.build.dir}" />
    81     <delete file="${plugin.jar}" />
    82   </target>
    83 
    84   <!-- write site description for the given plugin so josm will accept it -->
    85   <target name="site">
    86     <echo message="creating site description in ${plugin.site.file}"/>
    87     <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
     2<!-- compilation properties -->
     3    <property name="josm.build.dir"   value="../../core"/>
     4    <property name="josm.home.dir"    value="${user.home}/.josm"/>
     5    <property name="josm"         location="../../core/dist/josm-custom.jar" />
     6    <property name="plugin.build.dir" value="build"/>
     7    <property name="plugin.dist.dir"  value="../../dist"/>
     8    <property name="plugin.name"      value="${ant.project.name}"/>
     9    <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     10    <property name="plugin.description" value="Allows the user to create different color schemes and to switch between them. Just change the colors and create a new scheme. Used to switch to a white background with matching colors for better visibility in bright sunlight. See dialog in JOSM's preferences and 'Map Settings' (strange but true :-) (V${plugin.version})."/>
     11    <property name="plugin.class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin"/>
     12<!-- update site meta data -->
     13    <property name="plugin.site.file" value="josm-site.xml"/>
     14    <property name="plugin.site.description" value="Josm's ColorScheme Plugin Update Site"/>
     15    <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/colorscheme/"/>
     16    <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/colorscheme/"/>
     17    <property name="ant.build.javac.target" value="1.5"/>
     18    <target name="dist" depends="compile, site">
     19        <echo message="creating ${plugin.jar}"/>
     20<!-- images -->
     21<!--
     22     <copy todir="${plugin.build.dir}/images">
     23       <fileset dir="src/images" />
     24     </copy>
     25     -->
     26<!-- copy configuration xml files -->
     27        <copy todir="${plugin.build.dir}">
     28            <fileset dir="src">
     29                <include name="*.xml"/>
     30            </fileset>
     31        </copy>
     32        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     33            <env key="LANG" value="C"/>
     34            <arg value="info"/>
     35            <arg value="--xml"/>
     36            <arg value="."/>
     37        </exec>
     38        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     39        <delete file="REVISION"/>
     40<!-- create jar file -->
     41        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     42            <manifest>
     43                <attribute name="Plugin-Class" value="${plugin.class}" />
     44                <attribute name="Plugin-Description" value="${plugin.description}" />
     45                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     46                <attribute name="Plugin-Mainversion" value="1180"/>
     47                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     48            </manifest>
     49        </jar>
     50    </target>
     51    <target name="compile" depends="init">
     52        <mkdir dir="${plugin.build.dir}"/>
     53        <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
     54            <classpath>
     55                <pathelement path="${josm.build.dir}/build"/>
     56                <fileset dir="${josm.build.dir}/lib">
     57                    <include name="**/*.jar"/>
     58                </fileset>
     59            </classpath>
     60        </javac>
     61    </target>
     62    <target name="install" depends="dist">
     63        <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />
     64    </target>
     65    <target name="init">
     66        <echo>java version: ${java.version}</echo>
     67    </target>
     68    <target name="clean">
     69        <delete dir="${plugin.site.file}" />
     70        <delete dir="${plugin.build.dir}" />
     71        <delete file="${plugin.jar}" />
     72    </target>
     73<!-- write site description for the given plugin so josm will accept it -->
     74    <target name="site">
     75        <echo message="creating site description in ${plugin.site.file}"/>
     76        <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
    8877  &lt;plugins>
    8978  &lt;plugin id="${ant.project.name}" version="${plugin.version}">
     
    9483  &lt;/plugins>
    9584</echo>
    96 </target>
    97 
     85    </target>
    9886<!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
    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"?>
     87    <target name="site-full-donotuse">
     88        <echo message="creating site description in ${plugin.site.file}"/>
     89        <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
    10290    &lt;site version="1.0">
    10391    &lt;!-- meta data of site -->
     
    120108&lt;/site>
    121109</echo>
    122 </target>
    123 
     110    </target>
    124111<!-- upload the site description and the jar file via ssh -->
    125 <target name="upload" depends="dist,site">
    126   <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    127   <exec executable="scp">
    128     <arg value="${plugin.jar}"/>
    129     <arg value="${plugin.site.file}"/>
    130     <arg value="${plugin.site.upload.target}"/>
    131   </exec>
    132 </target>
    133 
     112    <target name="upload" depends="dist,site">
     113        <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
     114        <exec executable="scp">
     115            <arg value="${plugin.jar}"/>
     116            <arg value="${plugin.site.file}"/>
     117            <arg value="${plugin.site.upload.target}"/>
     118        </exec>
     119    </target>
    134120</project>
Note: See TracChangeset for help on using the changeset viewer.