Last change
on this file since 3257 was 3073, checked in by christofd, 18 years ago |
rewrote livegpsplugin
- added a dialog showing the information
- using events/listeners to pass the gps data
|
File size:
1.6 KB
|
Rev | Line | |
---|
[1955] | 1 | <project name="livegps" default="dist" basedir=".">
|
---|
| 2 |
|
---|
[3073] | 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"/>
|
---|
[1955] | 6 |
|
---|
| 7 |
|
---|
[3073] | 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>
|
---|
[1955] | 32 |
|
---|
[3073] | 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>
|
---|
[1955] | 44 |
|
---|
[3073] | 45 | <target name="install" depends="dist">
|
---|
| 46 | <copy file="${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />
|
---|
| 47 | </target>
|
---|
[1955] | 48 |
|
---|
[3073] | 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>
|
---|
| 56 |
|
---|
[1955] | 57 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.