Index: /applications/editors/josm/plugins/surveyor/build.xml
===================================================================
--- /applications/editors/josm/plugins/surveyor/build.xml	(revision 3079)
+++ /applications/editors/josm/plugins/surveyor/build.xml	(revision 3080)
@@ -3,4 +3,5 @@
 	<property name="josm.build.dir" value="../JOSM"/>
 	<property name="josm.home.dir" value="${user.home}/.josm"/>
+  <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/>
 	<property name="plugin.build.dir" value="bin"/>
 
@@ -22,6 +23,8 @@
 		<jar destfile="${ant.project.name}.jar" basedir="${plugin.build.dir}">
 			<manifest>
-                <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin" />
-                <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions." />
+        <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin" />
+        <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions." />
+        <attribute name="Plugin-Dependencies" value="livegps" />
+        <attribute name="Plugin-Stage" value="60" />
 			</manifest>
 		</jar>
@@ -29,5 +32,5 @@
 
 	<target name="compile" depends="init">
-		<mkdir dir="bin"/>
+		<mkdir dir="${plugin.build.dir}"/>
 		<javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
 			<classpath>
@@ -36,4 +39,5 @@
 	        <include name="**/*.jar"/>
 	      </fileset>
+        <pathelement location="${livegpsplugin.jar}"/>
 			</classpath>
 	  </javac>
@@ -44,6 +48,6 @@
 	</target>
 
-	<target name="init">
-	</target>
+  <target name="init">
+	 </target>
 
 	<target name="clean">
