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

    r4088 r5147  
    11<project name="nearclick" 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}/Application Data/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}/Application Data/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" target="1.5" classpath="${josm}" destdir="build" debug="true">
    23                         <include name="**/*.java" />
    24                 </javac>
    25         </target>
     21  <target name="compile" depends="init">
     22    <javac srcdir="src" target="1.5" classpath="${josm}" destdir="build" debug="true">
     23      <include name="**/*.java" />
     24    </javac>
     25  </target>
    2626
    27         <target name="build" depends="compile">
    28                 <jar destfile="dist/nearclick.jar" basedir="build">
    29                         <manifest>
    30                                 <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" />
    31                                 <attribute name="Plugin-Description" value="Simulates a click when you do a small and short drag. This is usefull for tablet pens, when you have problems just clicking the tablet without the mouse moving (general Java - tablet problem)." />
    32                         </manifest>
    33                 </jar>
    34         </target>
     27  <target name="build" depends="compile">
     28    <jar destfile="dist/nearclick.jar" basedir="build">
     29      <manifest>
     30        <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" />
     31        <attribute name="Plugin-Description" value="Simulates a click when you do a small and short drag. This is usefull for tablet pens, when you have problems just clicking the tablet without the mouse moving (general Java - tablet problem)." />
     32      </manifest>
     33    </jar>
     34  </target>
    3535
    36         <target name="clean">
    37                 <delete dir="build" />
    38                 <delete dir="dist" />
    39         </target>
     36  <target name="clean">
     37    <delete dir="build" />
     38    <delete dir="dist" />
     39  </target>
    4040
    41         <target name="clean_install">
    42                 <delete file="${plugins}/nearclick.jar" />
    43         </target>
     41  <target name="clean_install">
     42    <delete file="${plugins}/nearclick.jar" />
     43  </target>
    4444
    45         <target name="install" depends="build">
    46                 <copy file="dist/nearclick.jar" todir="${plugins}"/>
    47         </target>
     45  <target name="install" depends="build">
     46    <copy file="dist/nearclick.jar" todir="${plugins}"/>
     47  </target>
    4848
    4949</project>
Note: See TracChangeset for help on using the changeset viewer.