-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://josm.openstreetmap.de/osmsvn/applications/editors/josm/plugins@10439 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
- Loading branch information
stoecker
committed
Sep 3, 2008
1 parent
a70d34e
commit 1e09cbc
Showing
5 changed files
with
146 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,76 @@ | ||
<project name="globalsat" default="dist" basedir="."> | ||
|
||
<!-- point to your JOSM directory --> | ||
<property name="josm" location="../../core/dist/josm-custom.jar" /> | ||
<property name="RXTX" location="./libs/RXTXcomm.jar" /> | ||
|
||
<path id="classpath"> | ||
<fileset id="RXTX" file="${RXTX}"/> | ||
<fileset file="${josm}"/> | ||
</path> | ||
|
||
<target name="init"> | ||
<mkdir dir="build"></mkdir> | ||
<mkdir dir="dist"></mkdir> | ||
</target> | ||
|
||
<target name="compile" depends="init"> | ||
<javac srcdir="src" classpathref="classpath" debug="true" destdir="build" target="1.5"> | ||
<!-- <javac srcdir="src" classpathref="classpath" debug="true" destdir="build" target="1.5"> --> | ||
<!-- <javac srcdir="src" classpath="${RXTX}" debug="true" destdir="build" target="1.5"> --> | ||
|
||
<include name="**/*.java" /> | ||
</javac> | ||
</target> | ||
|
||
<target name="dist" depends="compile"> | ||
<unjar dest="build"> | ||
<fileset refid="RXTX" /> | ||
</unjar> | ||
<copy todir="build/images" > | ||
<fileset dir="images" /> | ||
</copy> | ||
<jar destfile="dist/globalsat.jar" basedir="build"> | ||
<manifest> | ||
<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.globalsat.GlobalsatPlugin" /> | ||
<attribute name="Plugin-Description" value="Provide a dialog to read stored tracks from a Globalsat DG100 datalogger into a GPX-layer. Depends on installed rxtx library." /> | ||
<attribute name="Plugin-Author" value="[email protected]" /> | ||
<attribute name="Plugin-Date" value="${version.entry.commit.date}"/> | ||
<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> | ||
</manifest> | ||
</jar> | ||
</target> | ||
|
||
<target name="clean"> | ||
<delete dir="build" /> | ||
<delete dir="dist" /> | ||
</target> | ||
|
||
<target name="install" depends="dist"> | ||
<copy file="dist/globalsat.jar" todir="${user.home}/.josm/plugins"/> | ||
</target> | ||
<!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) --> | ||
<property environment="env"/> | ||
<condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm"> | ||
<and> | ||
<os family="windows"/> | ||
</and> | ||
</condition> | ||
|
||
<!-- compilation properties --> | ||
<property name="josm.build.dir" value="../../core"/> | ||
<property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/> | ||
<property name="josm" location="../../core/dist/josm-custom.jar" /> | ||
<property name="RXTX" location="./libs/RXTXcomm.jar" /> | ||
<property name="plugin.build.dir" value="build"/> | ||
<property name="plugin.dist.dir" value="../../dist"/> | ||
<property name="plugin.name" value="${ant.project.name}"/> | ||
<property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> | ||
|
||
<property name="ant.build.javac.target" value="1.5"/> | ||
|
||
<path id="classpath"> | ||
<fileset id="RXTX" file="${RXTX}"/> | ||
<fileset file="${josm}"/> | ||
</path> | ||
|
||
<target name="dist" depends="compile"> | ||
<unjar dest="build"> | ||
<fileset refid="RXTX" /> | ||
</unjar> | ||
<!-- images --> | ||
<copy todir="build/images"> | ||
<fileset dir="images" /> | ||
</copy> | ||
|
||
<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> | ||
<env key="LANG" value="C"/> | ||
<arg value="info"/> | ||
<arg value="--xml"/> | ||
<arg value="."/> | ||
</exec> | ||
<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> | ||
<delete file="REVISION"/> | ||
|
||
<jar destfile="${plugin.jar}" basedir="build"> | ||
<manifest> | ||
<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.globalsat.GlobalsatPlugin" /> | ||
<attribute name="Plugin-Description" value="Provide a dialog to read stored tracks from a Globalsat DG100 datalogger into a GPX-layer. Depends on installed rxtx library." /> | ||
<attribute name="Plugin-Author" value="[email protected]" /> | ||
<attribute name="Plugin-Date" value="${version.entry.commit.date}"/> | ||
<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> | ||
</manifest> | ||
</jar> | ||
</target> | ||
|
||
<target name="compile" depends="init"> | ||
<echo message="creating ${plugin.jar}"/> | ||
<javac srcdir="src" classpathref="classpath" destdir="build"> | ||
<compilerarg value="-Xlint:deprecation"/> | ||
</javac> | ||
</target> | ||
|
||
<target name="init"> | ||
<mkdir dir="${plugin.build.dir}" /> | ||
</target> | ||
|
||
<target name="clean"> | ||
<delete dir="${plugin.build.dir}" /> | ||
<delete file="${plugin.jar}" /> | ||
</target> | ||
|
||
<target name="install" depends="dist"> | ||
<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,67 @@ | ||
<project name="measurement" default="dist" basedir="."> | ||
|
||
<!-- point to your JOSM directory --> | ||
<property name="josm" location="../../core/dist/josm-custom.jar" /> | ||
|
||
|
||
<target name="init"> | ||
<mkdir dir="build"></mkdir> | ||
<mkdir dir="dist"></mkdir> | ||
</target> | ||
|
||
<target name="compile" depends="init"> | ||
<javac srcdir="src" classpath="${josm}" debug="true" destdir="build" target="1.5"> | ||
<include name="**/*.java" /> | ||
</javac> | ||
</target> | ||
|
||
<target name="dist" depends="compile"> | ||
<copy todir="build/images" > | ||
<fileset dir="images" /> | ||
</copy> | ||
<jar destfile="dist/measurement.jar" basedir="build"> | ||
<manifest> | ||
<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.measurement.MeasurementPlugin" /> | ||
<attribute name="Plugin-Description" value="Provide a measurement dialog and a layer to measure length and angle of segments (there are no segments anymore, I know. Any idea how the angle should be measures now?) and create measurement paths (which also can be imported from a gps layer)" /> | ||
<attribute name="Plugin-Author" value="[email protected]" /> | ||
<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> | ||
<attribute name="Plugin-Date" value="${version.entry.commit.date}"/> | ||
</manifest> | ||
</jar> | ||
</target> | ||
|
||
<target name="clean"> | ||
<delete dir="build" /> | ||
<delete dir="dist" /> | ||
</target> | ||
|
||
<target name="install" depends="dist"> | ||
<copy file="dist/measurement.jar" todir="${user.home}/.josm/plugins"/> | ||
</target> | ||
|
||
<!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) --> | ||
<property environment="env"/> | ||
<condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm"> | ||
<and> | ||
<os family="windows"/> | ||
</and> | ||
</condition> | ||
|
||
<!-- compilation properties --> | ||
<property name="josm.build.dir" value="../../core"/> | ||
<property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/> | ||
<property name="josm" location="../../core/dist/josm-custom.jar" /> | ||
<property name="plugin.build.dir" value="build"/> | ||
<property name="plugin.dist.dir" value="../../dist"/> | ||
<property name="plugin.name" value="${ant.project.name}"/> | ||
<property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> | ||
|
||
<property name="ant.build.javac.target" value="1.5"/> | ||
|
||
<target name="dist" depends="compile"> | ||
<!-- images --> | ||
<copy todir="build/images"> | ||
<fileset dir="images" /> | ||
</copy> | ||
|
||
<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> | ||
<env key="LANG" value="C"/> | ||
<arg value="info"/> | ||
<arg value="--xml"/> | ||
<arg value="."/> | ||
</exec> | ||
<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> | ||
<delete file="REVISION"/> | ||
|
||
<jar destfile="${plugin.jar}" basedir="build"> | ||
<manifest> | ||
<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.measurement.MeasurementPlugin" /> | ||
<attribute name="Plugin-Description" value="Provide a measurement dialog and a layer to measure length and angle of segments and create measurement paths (which also can be imported from a gps layer)" /> | ||
<attribute name="Plugin-Author" value="[email protected]" /> | ||
<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> | ||
<attribute name="Plugin-Date" value="${version.entry.commit.date}"/> | ||
</manifest> | ||
</jar> | ||
</target> | ||
|
||
<target name="compile" depends="init"> | ||
<echo message="creating ${plugin.jar}"/> | ||
<javac srcdir="src" classpath="${josm}" destdir="build"> | ||
<compilerarg value="-Xlint:deprecation"/> | ||
</javac> | ||
</target> | ||
|
||
<target name="init"> | ||
<mkdir dir="${plugin.build.dir}" /> | ||
</target> | ||
|
||
<target name="clean"> | ||
<delete dir="${plugin.build.dir}" /> | ||
<delete file="${plugin.jar}" /> | ||
</target> | ||
|
||
<target name="install" depends="dist"> | ||
<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters