Changeset 3073 in osm


Ignore:
Timestamp:
2007-06-01T10:25:30+02:00 (17 years ago)
Author:
christofd
Message:

rewrote livegpsplugin

  • added a dialog showing the information
  • using events/listeners to pass the gps data
Location:
applications/editors/josm/plugins/livegps
Files:
6 added
1 edited

Legend:

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

    r1955 r3073  
    11<project name="livegps" default="dist" basedir=".">
    22
    3         <target name="dist" depends="compile">
    4                 <!-- images -->
    5                 <copy todir="build/images">
    6                         <fileset dir="images" />
    7                 </copy>
     3  <property name="josm.build.dir" value="../../josm"/>
     4  <property name="josm.home.dir" value="${user.home}/.josm"/>
     5  <property name="plugin.build.dir" value="build"/>
    86
    9                 <!-- create josm-custom.jar -->
    10                 <jar destfile="livegps.jar" basedir="build">
    11                         <manifest>
    12                 <attribute name="Plugin-Class" value="livegps.LiveGpsPlugin" />
    13                 <attribute name="Plugin-Description" value="Allow live GPS feed from a gpsd server" />
    14                         </manifest>
    15                 </jar>
    16         </target>
    177
    18         <target name="compile" depends="init">
    19                 <javac srcdir="livegps" classpath="../../josm/bin/" destdir="build" />
    20         </target>
     8 
     9  <target name="dist" depends="compile">
     10    <!-- images -->
     11    <copy todir="${plugin.build.dir}/images">
     12      <fileset dir="images" />
     13    </copy>
     14      <!-- copy configuration xml files -->
     15        <!--
     16    <copy todir="${plugin.build.dir}">
     17      <fileset dir="src">
     18        <include name="*.xml"/>
     19      </fileset>
     20    </copy>
     21    -->
     22       
     23    <!-- create plugin jar -->
     24    <jar destfile="${ant.project.name}.jar" basedir="${plugin.build.dir}">
     25      <manifest>
     26        <attribute name="Plugin-Class" value="livegps.LiveGpsPlugin" />
     27        <attribute name="Plugin-Description" value="Allow live GPS feed from a gpsd server" />
     28        <attribute name="Plugin-Stage" value="50" />
     29      </manifest>
     30    </jar>
     31  </target>
    2132
    22         <target name="init">
    23                 <mkdir dir="build" />
    24         </target>
     33  <target name="compile" depends="init">
     34    <mkdir dir="${plugin.build.dir}"/>
     35    <javac srcdir="livegps" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
     36      <classpath>
     37        <pathelement path="${josm.build.dir}/build"/>
     38        <fileset dir="${josm.build.dir}/lib">
     39          <include name="**/*.jar"/>
     40        </fileset>
     41      </classpath>
     42    </javac>
     43  </target>
    2544
    26         <target name="clean">
    27                 <delete dir="build" />
    28         </target>
     45  <target name="install" depends="dist">
     46    <copy file="${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />
     47  </target>
     48
     49  <target name="init">
     50        <mkdir dir="${plugin.build.dir}" />
     51  </target>
     52
     53  <target name="clean">
     54    <delete dir="${plugin.build.dir}" />
     55  </target>
    2956
    3057</project>
Note: See TracChangeset for help on using the changeset viewer.