Index: /applications/editors/josm/plugins/smed/build.xml
===================================================================
--- /applications/editors/josm/plugins/smed/build.xml	(revision 27378)
+++ /applications/editors/josm/plugins/smed/build.xml	(revision 27379)
@@ -37,4 +37,6 @@
     <property name="plugin.build.dir" value="build"/>
     <property name="plugin.src.dir" value="src"/>
+    <property name="smed.dist.dir" value="dist/"/>
+    <property name="smed_core.dist.dir" value="core/dist/"/>
     <!-- this is the directory where the plugin jar is copied to -->
     <property name="plugin.dist.dir" value="../../dist"/>
@@ -147,4 +149,5 @@
             </and>
         </condition>
+        <delete dir="${josm.plugins.dir}/splug"/>
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
Index: /applications/editors/josm/plugins/smed/plugs/oseam/build.xml
===================================================================
--- /applications/editors/josm/plugins/smed/plugs/oseam/build.xml	(revision 27378)
+++ /applications/editors/josm/plugins/smed/plugs/oseam/build.xml	(revision 27379)
@@ -40,5 +40,5 @@
      -->
     <property name="josm" location="../../../../core/dist/josm-custom.jar"/>
-    <property name="smed" location="../../core/dist/smed.jar"/>
+    <property name="smed" location="../../core/dist/SeaMapEditor.jar"/>
     <property name="plugin.build.dir" value="build"/>
     <property name="plugin.src.dir" value="src"/>
Index: /applications/editors/josm/plugins/smed/src/smed/Smed.java
===================================================================
--- /applications/editors/josm/plugins/smed/src/smed/Smed.java	(revision 27378)
+++ /applications/editors/josm/plugins/smed/src/smed/Smed.java	(revision 27379)
@@ -57,5 +57,5 @@
 
         try {
-            JarFile file = new JarFile(pluginDirName  + "/smed.jar");
+            JarFile file = new JarFile(pluginDirName  + "/SeaMapEditor.jar");
             FileOutputStream fos = new FileOutputStream(pluginDirName + "/splug/smed_ifc.jar");
             JarOutputStream jos = new JarOutputStream(fos);
