Index: applications/editors/josm/plugins/livegps/build.xml
===================================================================
--- applications/editors/josm/plugins/livegps/build.xml	(revision 5147)
+++ applications/editors/josm/plugins/livegps/build.xml	(revision 5153)
@@ -1,9 +1,14 @@
 <project name="livegps" default="dist" basedir=".">
+
   <!-- compilation properties -->
-  <property name="josm.build.dir" value="../../core"/>
-  <property name="josm.home.dir" value="${user.home}/.josm"/>
-  <property name="plugin.build.dir" value="build"/>
-  <property name="plugin.name" value="${ant.project.name}"/>
-  <property name="plugin.jar" value="${plugin.name}.jar"/>
+  <property name="josm.build.dir"	value="../../core"/>
+  <property name="josm.home.dir"	value="${user.home}/.josm"/>
+  <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="plugin.jar" value="../dist/${plugin.name}.jar"/>
   <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/>
   
@@ -47,5 +52,5 @@
           <include name="**/*.jar"/>
         </fileset>
-        <pathelement location="${livegpsplugin.jar}"/>
+        <pathelement location="${plugin.jar}"/>
       </classpath>
     </javac>
@@ -63,5 +68,5 @@
     <delete dir="${plugin.build.dir}" />
     <delete dir="${plugin.site.file}" />
-    <delete dir="${plugin.jar}" />
+    <delete file="${plugin.jar}" />
   </target>
 
