Changeset 3073 in osm
- Timestamp:
- 2007-06-01T10:25:30+02:00 (17 years ago)
- Location:
- applications/editors/josm/plugins/livegps
- Files:
-
- 6 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/build.xml
r1955 r3073 1 1 <project name="livegps" default="dist" basedir="."> 2 2 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"/> 8 6 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>17 7 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> 21 32 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> 25 44 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> 29 56 30 57 </project>
Note:
See TracChangeset
for help on using the changeset viewer.