Index: applications/editors/josm/plugins/smed/build.xml
===================================================================
--- applications/editors/josm/plugins/smed/build.xml	(revision 23240)
+++ applications/editors/josm/plugins/smed/build.xml	(revision 23244)
@@ -41,10 +41,10 @@
      -->
 	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
+	<property name="smed_ex" 				value="../dist/"/>
+	<property name="plugin.build.dir"       value="build/"/>
 	<property name="plugin.src.dir"         value="src"/>
 	<!-- this is the directory where the plugin jar is copied to -->
 	<property name="plugin.dist.dir"        value="../../dist"/>
 	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
 	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
 
@@ -91,12 +91,23 @@
 		</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="plugins"/>
+					<fileset dir="../smed_about/smed_dist"/>
+		</copy>
+
+		<copy todir="${plugin.build.dir}">
+					<fileset dir="../smed_ex/smed_dist"/>
 		</copy>
 		
 		<copy todir="${plugin.build.dir}">
 			<fileset dir=".">
-                <include name="copyright.txt" />
-                <include name="LICENSE.txt" />
+                <include name="*.txt" />
 			</fileset>
 		</copy>
Index: applications/editors/josm/plugins/smed/src/smed/Smed.java
===================================================================
--- applications/editors/josm/plugins/smed/src/smed/Smed.java	(revision 23240)
+++ applications/editors/josm/plugins/smed/src/smed/Smed.java	(revision 23244)
@@ -8,4 +8,5 @@
 import java.net.URL;
 import java.net.URLClassLoader;
+import java.util.Arrays;
 import java.util.Enumeration;
 import java.util.List;
@@ -23,4 +24,5 @@
 import smed.plug.SmedPluginApp;
 import smed.plug.ifc.SmedPluggable;
+import smed.plug.util.JARFileFilter;
 import smed.plug.util.SmedPluginLoader;
 import smed.tabs.SmedTabAction;
@@ -39,7 +41,10 @@
         File pluginDir = Main.pref.getPluginsDirectory();
         String pluginDirName = pluginDir.getAbsolutePath();
-        File splug = new File(pluginDirName + "/splug");
-        if(!splug.exists()) splug.mkdir();
+        SmedFile splugDir = new SmedFile(pluginDirName + "/splug");
+        
+        if(!splugDir.exists()) splugDir.mkdir();
 
+        File[] jars = splugDir.listFiles(new JARFileFilter());
+        
         // build smed_ifc.jar from smed.jar
         JarEntry e = null;
@@ -49,6 +54,4 @@
         int len;
 
-        System.out.println(new java.util.Date());
-        
         try {
             JarFile file = new JarFile(pluginDirName  + "/smed.jar");
@@ -57,5 +60,4 @@
             BufferedOutputStream oos = new BufferedOutputStream( jos);
             
-            /* nicht ohne Versionierung freigeben
             // extract *.jar to splug
             Enumeration<JarEntry> ent = file.entries();
@@ -64,19 +66,22 @@
             	eName = e.getName(); 
             	if(eName.endsWith(".jar")) {
-            		FileOutputStream pfos = new FileOutputStream(pluginDirName + "/splug/" + eName);
-            		BufferedOutputStream pos = new BufferedOutputStream(pfos);
-            		inp = new BufferedInputStream(file.getInputStream( e ));
+            		if(splugDir.needUpdate(jars,eName)) {
+            			FileOutputStream pfos = new FileOutputStream(pluginDirName + "/splug/" + eName);
+            			BufferedOutputStream pos = new BufferedOutputStream(pfos);
+            			inp = new BufferedInputStream(file.getInputStream( e ));
             		
-                    while ((len = inp.read(buffer)) > 0) {
-                        pos.write(buffer, 0, len);
-                    }
+            			while ((len = inp.read(buffer)) > 0) {
+            				pos.write(buffer, 0, len);
+            			}
             		
-            		pos.flush();
-            		pos.close();
-            		inp.close();
-            		pfos.close();
+            			pos.flush();
+            			pos.close();
+            			inp.close();
+            			pfos.close();
+            		}
             	}
             }
-            */
+            
+
             
             // write smed_ifc.jar to splug
Index: applications/editors/josm/plugins/smed/src/smed/SmedFile.java
===================================================================
--- applications/editors/josm/plugins/smed/src/smed/SmedFile.java	(revision 23244)
+++ applications/editors/josm/plugins/smed/src/smed/SmedFile.java	(revision 23244)
@@ -0,0 +1,37 @@
+package smed;
+
+import java.io.File;
+
+import smed.plug.util.JARFileFilter;
+
+public class SmedFile extends File{
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
+
+	public SmedFile(String pathname) {
+		super(pathname);
+	}
+
+	public boolean needUpdate(File[] jars, String name) {
+		
+		for(File j : jars) {
+			String jName = j.getName();
+			
+			if(jName.length() > 15) { // < 16 isn'nt a SmedFile
+
+				if (jName.substring(16).equals(name.substring(16))) {
+					if(jName.substring(0, 15).compareTo(name.substring(0, 15)) < 0) { // obsolet
+						j.delete();
+						return true;			
+					} else return false;	// no update needed
+				}
+			}
+		}
+
+		// nothing found -> extract
+		return true;
+	}
+}
Index: applications/editors/josm/plugins/smed/src/smed/plug/ifc/SmedPluggable.java
===================================================================
--- applications/editors/josm/plugins/smed/src/smed/plug/ifc/SmedPluggable.java	(revision 23240)
+++ applications/editors/josm/plugins/smed/src/smed/plug/ifc/SmedPluggable.java	(revision 23244)
@@ -6,11 +6,11 @@
 public interface SmedPluggable {
 
-    boolean start();
-    boolean stop();
-    String getName();
-    String getInfo();
-    JComponent getComponent();
-    
-    void setPluginManager(SmedPluginManager manager);
+	boolean start();
+	boolean stop();
+	String getName();
+	String getInfo();
+	JComponent getComponent();
+	
+	void setPluginManager(SmedPluginManager manager);
 
 }
Index: applications/editors/josm/plugins/smed_about/build.xml
===================================================================
--- applications/editors/josm/plugins/smed_about/build.xml	(revision 23240)
+++ applications/editors/josm/plugins/smed_about/build.xml	(revision 23244)
@@ -28,5 +28,5 @@
 **
 -->
-<project name="02_smed_about" basedir=".">
+<project name="smed_about" basedir=".">
 
 	<!-- enter the SVN commit message -->
@@ -35,4 +35,6 @@
 	<property name="plugin.main.version" value="3329" />
 
+	<!-- Declaring	time-stamps-->
+	<tstamp/>
 
 	<!--
@@ -48,9 +50,7 @@
 	<property name="smed.plugins"           value="../smed/plugins"/>
 	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
 	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="smed.jar"               value="${plugin.dist.dir}/smed.jar"/>
+	<property name="plugin.dist.dir"        value="smed_dist"/>
+	<property name="plugin.jar"             value="${plugin.dist.dir}/02_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
 
 	<!--
@@ -61,4 +61,5 @@
 	<target name="init">
 		<mkdir dir="${plugin.build.dir}"/>
+		<mkdir dir="${plugin.dist.dir}"/>
 	</target>
 	<!--
@@ -77,5 +78,5 @@
     -->
 	<target name="compile_smed" depends="init_smed">
-		<echo message="compiling sources for  ${smed.jar} ... "/>
+		<echo message="compiling sources for smed.jar ... "/>
 		<javac srcdir="${smed.src.dir}" classpath="${josm}" debug="true" destdir="${smed.build.dir}">
 			<compilerarg value="-Xlint:deprecation"/>
@@ -119,10 +120,9 @@
 		<copy todir="${smed.build.dir}">
 			<fileset dir="../smed">
-                <include name="copyright.txt" />
-                <include name="LICENSE.txt" />
-			</fileset>
-		</copy>
-
-		<jar destfile="${smed.jar}" basedir="${smed.build.dir}">
+                <include name="*.txt" />
+			</fileset>
+		</copy>
+
+		<jar destfile="${smed}" basedir="${smed.build.dir}">
 			<!--
         ************************************************
@@ -170,4 +170,12 @@
 			</fileset>
 		</copy>
+
+		<delete>
+			<fileset dir="${plugin.dist.dir}">
+	    		<include name="*smed_about.jar"/>
+			</fileset>
+		</delete>
+
+		
 		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
 			<!--
@@ -192,6 +200,4 @@
 		</jar>
 		
-		<copy file="${plugin.jar}" todir="${smed.plugins}"/>
-		
 	</target>
 	
@@ -202,8 +208,12 @@
     -->
 	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
 		<delete dir="${smed.build.dir}"/>
-		<delete file="${smed.jar}"/>
+		<delete file="${smed}"/>
+		<delete>
+			<fileset dir="${plugin.dist.dir}">
+	    		<include name="*smed_about.jar"/>
+			</fileset>
+		</delete>
+
 	</target>
 
@@ -215,9 +225,15 @@
 	<target name="install" depends="dist">
 		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">
+		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug/" else="${user.home}/.josm/plugins/splug/">
 			<and>
 				<os family="windows"/>
 			</and>
 		</condition>
+
+		<delete>
+			<fileset dir="${josm.plugins.dir}">
+	    		<include name="*smed_about.jar"/>
+			</fileset>
+		</delete>
 		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
 	</target>
Index: applications/editors/josm/plugins/smed_about/src/smed_about/SmedAbout.java
===================================================================
--- applications/editors/josm/plugins/smed_about/src/smed_about/SmedAbout.java	(revision 23240)
+++ applications/editors/josm/plugins/smed_about/src/smed_about/SmedAbout.java	(revision 23244)
@@ -12,69 +12,69 @@
 public class SmedAbout implements SmedPluggable{
 
-    private JPanel jPanel = null;  //  @jve:decl-index=0:visual-constraint="43,24"
-    private JLabel jLabel = null;
-    private JLabel jLabel1 = null;
-    private JLabel jLabel2 = null;
-    @Override
-    public boolean start() {
-        // TODO Auto-generated method stub
-        return false;
-    }
+	private JPanel jPanel = null;  //  @jve:decl-index=0:visual-constraint="43,24"
+	private JLabel jLabel = null;
+	private JLabel jLabel1 = null;
+	private JLabel jLabel2 = null;
+	@Override
+	public boolean start() {
+		// TODO Auto-generated method stub
+		return false;
+	}
 
-    @Override
-    public boolean stop() {
-        // TODO Auto-generated method stub
-        return false;
-    }
+	@Override
+	public boolean stop() {
+		// TODO Auto-generated method stub
+		return false;
+	}
 
-    @Override
-    public String getName() {
-        return "About";
-    }
+	@Override
+	public String getName() {
+		return "About";
+	}
 
-    @Override
-    public void setPluginManager(SmedPluginManager manager) {
-        // TODO Auto-generated method stub
+	@Override
+	public void setPluginManager(SmedPluginManager manager) {
+		// TODO Auto-generated method stub
+		
+	}
 
-    }
+	@Override
+	public String getInfo() {
 
-    @Override
-    public String getInfo() {
+		return "something about the programm";
+	}
 
-        return "something about the programm";
-    }
+	@Override
+	public JComponent getComponent() {
 
-    @Override
-    public JComponent getComponent() {
+		return getJPanel();
+	}
 
-        return getJPanel();
-    }
-
-
-    /**
-     * This method initializes jPanel
-     *
-     * @return javax.swing.JPanel
-     */
-    private JPanel getJPanel() {
-        if (jPanel == null) {
-            jLabel2 = new JLabel();
-            jLabel2.setBounds(new Rectangle(30, 90, 340, 30));
-            jLabel2.setText("Description:");
-            jLabel1 = new JLabel();
-            jLabel1.setBounds(new Rectangle(30, 55, 340, 30));
-            jLabel1.setText("Version:                           Date:");
-            jLabel = new JLabel();
-            jLabel.setBounds(new Rectangle(30, 20, 340, 30));
-            jLabel.setText("Authors: Werner König and Malclom Herring");
-            jPanel = new JPanel();
-            jPanel.setLayout(null);
-            jPanel.setSize(new Dimension(400, 300));
-            jPanel.add(jLabel, null);
-            jPanel.add(jLabel1, null);
-            jPanel.add(jLabel2, null);
-        }
-        return jPanel;
-    }
+	
+	/**
+	 * This method initializes jPanel	
+	 * 	
+	 * @return javax.swing.JPanel	
+	 */
+	private JPanel getJPanel() {
+		if (jPanel == null) {
+			jLabel2 = new JLabel();
+			jLabel2.setBounds(new Rectangle(30, 90, 340, 30));
+			jLabel2.setText("Description:");
+			jLabel1 = new JLabel();
+			jLabel1.setBounds(new Rectangle(30, 55, 340, 30));
+			jLabel1.setText("Version:                           Date:");
+			jLabel = new JLabel();
+			jLabel.setBounds(new Rectangle(30, 20, 340, 30));
+			jLabel.setText("Authors: Werner König and Malclom Herring");
+			jPanel = new JPanel();
+			jPanel.setLayout(null);
+			jPanel.setSize(new Dimension(400, 300));
+			jPanel.add(jLabel, null);
+			jPanel.add(jLabel1, null);
+			jPanel.add(jLabel2, null);
+		}
+		return jPanel;
+	}
 
 }
Index: applications/editors/josm/plugins/smed_ex/build.xml
===================================================================
--- applications/editors/josm/plugins/smed_ex/build.xml	(revision 23240)
+++ applications/editors/josm/plugins/smed_ex/build.xml	(revision 23244)
@@ -28,5 +28,5 @@
 **
 -->
-<project name="01_smed_ex" basedir=".">
+<project name="smed_ex" basedir=".">
 
 	<!-- enter the SVN commit message -->
@@ -35,4 +35,6 @@
 	<property name="plugin.main.version" value="3329" />
 
+	<!-- Declaring	time-stamps-->
+	<tstamp/>
 
 	<!--
@@ -41,17 +43,14 @@
      -->
 	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="smed"					location="../../dist/smed.jar/"/>
+	<property name="smed"					location="../../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="smed.plugins"           value="../smed/plugins"/>
-	<property name="plugin.src.dir"         value="src"/>
 	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
 	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="smed.jar"               value="${plugin.dist.dir}/smed.jar"/>
-
+	<property name="plugin.dist.dir"        value="smed_dist"/>
+	<property name="plugin.jar"             value="${plugin.dist.dir}/01_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
 
 	<!--
@@ -62,6 +61,6 @@
 	<target name="init">
 		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
+		<mkdir dir="${plugin.dist.dir}"/>
+	</target>
 	<!--
     **********************************************************
@@ -79,5 +78,5 @@
     -->
 	<target name="compile_smed" depends="init_smed">
-		<echo message="compiling sources for  ${smed.jar} ... "/>
+		<echo message="compiling sources for smed.jar ... "/>
 		<javac srcdir="${smed.src.dir}" classpath="${josm}" debug="true" destdir="${smed.build.dir}">
 			<compilerarg value="-Xlint:deprecation"/>
@@ -85,8 +84,8 @@
 		</javac>
 	</target>
-	
-	<!--
-    **********************************************************
-    ** compile - compiles the source tree
+
+	<!--
+    **********************************************************
+    ** compile - complies the source tree
     **********************************************************
     -->
@@ -126,5 +125,5 @@
 		</copy>
 
-		<jar destfile="${smed.jar}" basedir="${smed.build.dir}">
+		<jar destfile="${smed}" basedir="${smed.build.dir}">
 			<!--
         ************************************************
@@ -172,4 +171,11 @@
 			</fileset>
 		</copy>
+		
+		<delete>
+			<fileset dir="${plugin.dist.dir}">
+	    		<include name="*smed_ex.jar"/>
+			</fileset>
+		</delete>
+		
 		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
 			<!--
@@ -194,6 +200,4 @@
 		</jar>
 		
-		<copy file="${plugin.jar}" todir="${smed.plugins}"/>
-		
 	</target>
 	
@@ -204,8 +208,12 @@
     -->
 	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
 		<delete dir="${smed.build.dir}"/>
-		<delete file="${smed.jar}"/>
+		<delete file="${smed}"/>
+		<delete>
+			<fileset dir="${plugin.dist.dir}">
+	    		<include name="*smed_ex.jar"/>
+			</fileset>
+		</delete>
+
 	</target>
 
@@ -217,9 +225,16 @@
 	<target name="install" depends="dist">
 		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">
+		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug/" else="${user.home}/.josm/plugins/splug/">
 			<and>
 				<os family="windows"/>
 			</and>
 		</condition>
+
+		<delete>
+			<fileset dir="${josm.plugins.dir}">
+	    		<include name="*smed_ex.jar"/>
+			</fileset>
+		</delete>
+
 		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
 	</target>
Index: applications/editors/josm/plugins/smed_ex/src/smed_ex/SmedEx.java
===================================================================
--- applications/editors/josm/plugins/smed_ex/src/smed_ex/SmedEx.java	(revision 23240)
+++ applications/editors/josm/plugins/smed_ex/src/smed_ex/SmedEx.java	(revision 23244)
@@ -16,80 +16,80 @@
 public class SmedEx implements SmedPluggable {
 
-    private JPanel jPanel = null;  //  @jve:decl-index=0:visual-constraint="78,30"
-    private JButton jButton = null;
+	private JPanel jPanel = null;  //  @jve:decl-index=0:visual-constraint="78,30"
+	private JButton jButton = null;
 
-    @Override
-    public boolean stop() {
-        // TODO Auto-generated method stub
-        return false;
-    }
+	@Override
+	public boolean stop() {
+		// TODO Auto-generated method stub
+		return false;
+	}
 
-    @Override
-    public String getName() {
+	@Override
+	public String getName() {
 
-        return "hello";
-    }
+		return "Hello";
+	}
 
-    @Override
-    public String getInfo() {
+	@Override
+	public String getInfo() {
 
-        return "say hello";
-    }
+		return "say hello";
+	}
 
-    @Override
-    public JComponent getComponent() {
+	@Override
+	public JComponent getComponent() {
+		
+		return getJPanel();
+	}
 
-        return getJPanel();
-    }
+	@Override
+	public void setPluginManager(SmedPluginManager manager) {
+		// TODO Auto-generated method stub
 
-    @Override
-    public void setPluginManager(SmedPluginManager manager) {
-        // TODO Auto-generated method stub
+	}
 
-    }
+	/**
+	 * This method initializes jPanel	
+	 * 	
+	 * @return javax.swing.JPanel	
+	 */
+	private JPanel getJPanel() {
+		if (jPanel == null) {
+			jPanel = new JPanel();
+			jPanel.setLayout(null);
+			jPanel.setPreferredSize(new Dimension(200, 130));
+			jPanel.add(getJButton(), null);
+		}
+		return jPanel;
+	}
 
-    /**
-     * This method initializes jPanel
-     *
-     * @return javax.swing.JPanel
-     */
-    private JPanel getJPanel() {
-        if (jPanel == null) {
-            jPanel = new JPanel();
-            jPanel.setLayout(null);
-            jPanel.setPreferredSize(new Dimension(200, 130));
-            jPanel.add(getJButton(), null);
-        }
-        return jPanel;
-    }
+	/**
+	 * This method initializes jButton	
+	 * 	
+	 * @return javax.swing.JButton	
+	 */
+	private JButton getJButton() {
+		if (jButton == null) {
+			jButton = new JButton();
+			jButton.setBounds(new Rectangle(15, 40, 160, 40));
+			jButton.setText("Hello World!");
+			
+			jButton.addActionListener(new ActionListener() {
 
-    /**
-     * This method initializes jButton
-     *
-     * @return javax.swing.JButton
-     */
-    private JButton getJButton() {
-        if (jButton == null) {
-            jButton = new JButton();
-            jButton.setBounds(new Rectangle(15, 40, 160, 40));
-            jButton.setText("Hello World!");
+				@Override
+				public void actionPerformed(ActionEvent e) {
+					JOptionPane.showMessageDialog( null, "it works" );
+				}
+				
+			});
+		}
+		return jButton;
+	}
 
-            jButton.addActionListener(new ActionListener() {
-
-                @Override
-                public void actionPerformed(ActionEvent e) {
-                    JOptionPane.showMessageDialog( null, "it works" );
-                }
-
-            });
-        }
-        return jButton;
-    }
-
-    @Override
-    public boolean start() {
-        // TODO Auto-generated method stub
-        return false;
-    }
+	@Override
+	public boolean start() {
+		// TODO Auto-generated method stub
+		return false;
+	}
 
 }
Index: applications/editors/josm/plugins/smed_ex/src/smed_ex/build.xml
===================================================================
--- applications/editors/josm/plugins/smed_ex/src/smed_ex/build.xml	(revision 23240)
+++ 	(revision )
@@ -1,147 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-** This is a template build file for a JOSM  plugin.
-**
-** Maintaining versions
-** ====================
-** see README.template
-**
-** Usage
-** =====
-** To build it run
-**
-**    > ant  dist
-**
-** To install the generated plugin locally (in you default plugin directory) run
-**
-**    > ant  install
-**
-** The generated plugin jar is not automatically available in JOSMs plugin configuration
-** dialog. You have to check it in first.
-**
-** Use the ant target 'publish' to check in the plugin and make it available to other
-** JOSM users:
-**    set the properties commit.message and plugin.main.version
-** and run
-**    > ant  publish
-**
-**
--->
-<project name="smed_ex" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="New release" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3329" />
-
-
-	<!--
-      ************************************************
-      ** should not be necessary to change the following properties
-     -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="smed"					location="../../dist/smed.jar/"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
-    **********************************************************
-    ** init - initializes the build
-    **********************************************************
-    -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** compile - complies the source tree
-    **********************************************************
-    -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
-    **********************************************************
-    ** dist - creates the plugin jar
-    **********************************************************
-    -->
-	<target name="dist" depends="compile">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-
-        <copy todir="${plugin.build.dir}/images">
-            <fileset dir="${plugin.src.dir}/images"/>
-        </copy>
-
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/smed_ex/msg">
-			<fileset dir="${plugin.src.dir}/smed_ex/msg"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-                <include name="copyright.txt" />
-                <include name="LICENSE.txt" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.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, Malcolm"/>
-				<attribute name="Plugin-Class" value="smed_ex.impl.SmedExImpl"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Plugin for Seamap Editor"/>
-				<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}"/>
-				<attribute name="Class-Path" value="./tplug/ifc.jar"/>
-			</manifest>
-		</jar>
-	</target>
-	
-	<!--
-    **********************************************************
-    ** clean - clean up the build environment
-    **********************************************************
-    -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	
-</project>
