Index: /applications/editors/josm/plugins/smed/build.xml
===================================================================
--- /applications/editors/josm/plugins/smed/build.xml	(revision 23399)
+++ /applications/editors/josm/plugins/smed/build.xml	(revision 23400)
@@ -41,9 +41,10 @@
      -->
 	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="smed_ex" 				value="../dist/"/>
 	<property name="plugin.build.dir"       value="build/"/>
-	<property name="plugin.src.dir"         value="src"/>
+	<property name="plugin.src.dir"         value="src/"/>
+	<property name="smed.dist.dir"        value="dist/"/>
 	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
+	<property name="plugin.dist.dir"        value="../../dist/"/>
+	<property name="smed_core.dist.dir"     value="core/dist/"/>
 	<property name="ant.build.javac.target" value="1.5"/>
 	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
@@ -56,6 +57,6 @@
 	<target name="init">
 		<mkdir dir="${plugin.build.dir}"/>
-		<mkdir dir="../smed_about/smed_dist"/>
-		<mkdir dir="../smed_ex/smed_dist"/>
+		<mkdir dir="${smed_core.dist.dir}"/>
+		<mkdir dir="${smed.dist.dir}"/>
 	</target>
 
@@ -93,20 +94,8 @@
 		</copy>
 		
-		<delete>
-			<fileset dir="${plugin.build.dir}">
-	    		<include name="*smed_ex.jar"/>
-				<include name="*smed_about.jar"/>
-			</fileset>
-		</delete>
-
-		
 		<copy todir="${plugin.build.dir}">
-					<fileset dir="../smed_about/smed_dist"/>
+			<fileset dir="${smed.dist.dir}"/>
 		</copy>
-
-		<copy todir="${plugin.build.dir}">
-					<fileset dir="../smed_ex/smed_dist"/>
-		</copy>
-		
+						
 		<copy todir="${plugin.build.dir}">
 			<fileset dir=".">
@@ -134,4 +123,7 @@
 			</manifest>
 		</jar>
+		
+		<!-- install interface -->
+		<copy file="${plugin.jar}" todir="${smed_core.dist.dir}"/>
 	</target>
 	
@@ -160,5 +152,3 @@
 		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
 	</target>
-
-	
 </project>
Index: /applications/editors/josm/plugins/smed/plugs/oseam/build.xml
===================================================================
--- /applications/editors/josm/plugins/smed/plugs/oseam/build.xml	(revision 23399)
+++ /applications/editors/josm/plugins/smed/plugs/oseam/build.xml	(revision 23400)
@@ -28,5 +28,5 @@
 **
 -->
-<project name="OSeaM" default="dist" basedir=".">
+<project name="oseam" default="dist" basedir=".">
 
 	<!-- enter the SVN commit message -->
@@ -43,11 +43,11 @@
      -->
 	<property name="josm"                   location="../../../../core/dist/josm-custom.jar"/>
-	<property name="smed"					location="../../../../dist/smed.jar/"/>
+	<property name="smed"					location="../../core/dist/smed.jar"/>
 	<property name="plugin.build.dir"       value="build"/>
 	<property name="plugin.src.dir"         value="src"/>
 	<property name="smed.build.dir"         value="../../../smed/build"/>
-	<property name="smed.src.dir"           value="../../../smed/src"/>
+	<property name="delete_string"          value="*${ant.project.name}.jar"/>
 	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../../../dist"/>
+	<property name="plugin.dist.dir"        value="../../dist"/>
 	<property name="ant.build.javac.target" value="1.5"/>
 	<property name="plugin.jar"             value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
@@ -60,82 +60,13 @@
 	<target name="init">
 		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** init_smed - initializes the build of smed
-    **********************************************************
-    -->
-	<target name="init_smed">
-		<mkdir dir="${smed.build.dir}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** compile_smed - compiles the source tree of smed
-    **********************************************************
-    -->
-	<target name="compile_smed" depends="init_smed">
-		<echo message="compiling sources for smed.jar ... "/>
-		<javac srcdir="${smed.src.dir}" classpath="${josm}" debug="true" destdir="${smed.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
+		<mkdir dir="${plugin.dist.dir}"/>
 	</target>
 	
 	<!--
     **********************************************************
-    ** dist_smed - creates smed.jar
-    **********************************************************
-    -->
-	<target name="dist_smed" depends="compile_smed">
-		<echo message="creating smed.jar ... "/>
-
-		<copy todir="${smed.build.dir}/images">
-			<fileset dir="${smed.src.dir}/images"/>
-		</copy>
-		
-		<copy todir="${smed.build.dir}/images">
-			<fileset dir="../../../smed/images"/>
-		</copy>
-
-		<copy todir="${smed.build.dir}/smed/msg">
-			<fileset dir="${smed.src.dir}/smed/msg"/>
-		</copy>
-
-		<copy todir="${smed.build.dir}">
-			<fileset dir="../../../smed">
-                <include name="*.txt" />
-			</fileset>
-		</copy>
-
-		<jar destfile="${smed}" basedir="${smed.build.dir}">
-			<!--
-        ************************************************
-        ** configure these properties. Most of them will be copied to the plugins
-        ** manifest file. Property values will also show up in the list available
-        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
-        **
-        ************************************************
-    -->
-			<manifest>
-				<attribute name="Author" value="Werner"/>
-				<attribute name="Plugin-Class" value="smed.Smed"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap"/>
-				<attribute name="Plugin-Icon" value="images/Smed.png"/>
-				<attribute name="Plugin-Link" value="http://openseamap.org/"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
-    **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init,dist_smed">
+	<target name="compile" depends="init">
 		<echo message="compiling sources for  ${plugin.jar} ... "/>
 		<javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
@@ -161,6 +92,6 @@
 			<fileset dir="images"/>
 		</copy>
-		<copy todir="${plugin.build.dir}/oseam/msg">
-			<fileset dir="${plugin.src.dir}/oseam/msg"/>
+		<copy todir="${plugin.build.dir}/${ant.project.name}/msg">
+			<fileset dir="${plugin.src.dir}/${ant.project.name}/msg"/>
 		</copy>
 		<copy todir="${plugin.build.dir}">
@@ -173,5 +104,5 @@
 		<delete>
 			<fileset dir="${plugin.dist.dir}">
-	    		<include name="*OSeaM.jar"/>
+	    		<include name="${delete_string}"/>
 			</fileset>
 		</delete>
@@ -196,5 +127,4 @@
 				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
 				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-				<attribute name="Class-Path" value="./tplug/ifc.jar"/>
 			</manifest>
 		</jar>
@@ -227,8 +157,7 @@
 	<target name="clean">
 		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
 		<delete>
 			<fileset dir="${plugin.dist.dir}">
-	    		<include name="*OSeaM.jar"/>
+	    		<include name="${delete_string}"/>
 			</fileset>
 		</delete>
@@ -238,7 +167,8 @@
     **********************************************************
     ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-	<target name="install" depends="dist">
+    ** for developing
+    **********************************************************
+    -->
+	<target name="install-develop" depends="dist">
 		<property environment="env"/>
 		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">
@@ -250,11 +180,13 @@
 		<delete>
 			<fileset dir="${josm.plugins.dir}">
-	    		<include name="*OSeaM.jar"/>
+	    		<include name="${delete_string}"/>
 			</fileset>
 		</delete>
-
+		
 		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
+
+		<delete file="${plugin.jar}"/>
+		
+	</target>
 
 	<!--
@@ -264,6 +196,7 @@
 		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
 		** property ${coreversion.info.entry.revision}
-		**
-		-->
+		** 
+		-->
+	
 	<target name="core-info">
 		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
@@ -278,5 +211,5 @@
 		<delete file="core.info.xml" />
 	</target>
-
+	
 	<!--
 		** commits the source tree for this plugin
@@ -354,5 +287,9 @@
 	</target>
 
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+	<target name="publish"> <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" -->
+		<echo>No normal josm-plugin, publishing over smed !!!
+			1. ant - dist to each subplugin
+			2. ant publish to smed
+		</echo>
 	</target>
 </project>
