Index: applications/editors/josm/plugins/openvisible/build.xml
===================================================================
--- applications/editors/josm/plugins/openvisible/build.xml	(revision 13497)
+++ applications/editors/josm/plugins/openvisible/build.xml	(revision 14003)
@@ -1,39 +1,36 @@
 <project name="openvisible" default="dist" basedir=".">
-<!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
-    <property environment="env"/>
-    <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
-        <and>
-            <os family="windows"/>
-        </and>
-    </condition>
-<!-- compilation properties -->
-    <property name="josm.build.dir" value="../../core"/>
-    <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
-    <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="${plugin.name}.jar"/>
-    <property name="plugin.description" value="Allows opening gpx/osm files that intersect the currently visible screen area (V${plugin.version})."/>
-    <property name="plugin.stage" value="50"/>
-    <property name="plugin.class" value="at.dallermassl.josm.plugin.openvisible.OpenVisiblePlugin"/>
-<!-- update site meta data -->
-    <property name="plugin.site.file" value="josm-site.xml"/>
-    <property name="plugin.site.description" value="Josm's OpenVisible Update Site"/>
-    <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/${ant.project.name}/"/>
-    <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/${ant.project.name}/"/>
+    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.build.dir"       value="build"/>
+    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <target name="dist" depends="compile,site">
-<!-- images -->
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
         <copy todir="${plugin.build.dir}/images">
-            <fileset dir="images" />
+            <fileset dir="images"/>
         </copy>
-<!-- copy configuration xml files
-     <copy todir="${plugin.build.dir}">
-       <fileset dir="src">
-         <include name="*.xml"/>
-       </fileset>
-     </copy>
-     -->
-        <mkdir dir="${plugin.dist.dir}"/>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Christof Dallermassl"/>
+                <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.openvisible.OpenVisiblePlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5"/>
+                <attribute name="Plugin-Description" value="Allows opening gpx/osm files that intersect the currently visible screen area"/>
+                <attribute name="Plugin-Mainversion" value="1465"/>
+                <attribute name="Plugin-Stage" value="50"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -44,98 +41,17 @@
         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
         <delete file="REVISION"/>
-<!-- create jar file -->
-        <jar destfile="${plugin.dist.dir}/${plugin.jar}" basedir="${plugin.build.dir}">
-            <manifest>
-                <attribute name="Plugin-Class" value="${plugin.class}" />
-                <attribute name="Plugin-Description" value="${plugin.description}" />
-                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-                <attribute name="Plugin-Mainversion" value="1180" />
-                <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5" />
-                <attribute name="Plugin-Stage" value="${plugin.stage}" />
-            </manifest>
-        </jar>
     </target>
-    <target name="compile" depends="init">
-        <echo message="creating ${plugin.jar}"/>
-        <mkdir dir="${plugin.build.dir}"/>
-        <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
-            <classpath>
-                <pathelement path="${josm.build.dir}/build"/>
-                <fileset dir="${josm.build.dir}/lib">
-                    <include name="**/*.jar"/>
-                </fileset>
-<!--
-            <fileset dir="lib">
-              <include name="**/*.jar"/>
-            </fileset>
-            -->
-            </classpath>
-        </javac>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
     </target>
     <target name="install" depends="dist">
-        <copy file="${plugin.dist.dir}/${plugin.jar}" todir="${josm.plugins.dir}"/>
-<!--
-    <copy todir="${josm.home.dir}/plugins">
-          <fileset dir="lib">
-            <include name="**/*.jar"/>
-          </fileset>
-    </copy>
-    -->
-    </target>
-    <target name="init">
-        <echo>java version: ${java.version}</echo>
-    </target>
-<!-- write site description for the given plugin so josm will accept it -->
-    <target name="site">
-        <echo message="creating site description in ${plugin.site.file}"/>
-        <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
-  &lt;plugins>
-  &lt;plugin id="${ant.project.name}" version="${plugin.version}">
-  &lt;name>${ant.project.name}&lt;/name>
-  &lt;description>${plugin.description}&lt;/description>
-  &lt;resource>${plugin.site.url}${plugin.jar}&lt;/resource>
-  &lt;/plugin>
-  &lt;/plugins>
-</echo>
-    </target>
-<!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
-    <target name="site-full-donotuse">
-        <echo message="creating site description in ${plugin.site.file}"/>
-        <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
-    &lt;site version="1.0">
-    &lt;!-- meta data of site -->
-&lt;site-info>
-&lt;site-name>${plugin.site.description}&lt;/site-name>
-&lt;site-url>${plugin.site.url}&lt;/site-url>
-&lt;/site-info>
-
-&lt;!-- plugins available on this site -->
-&lt;plugins>
-&lt;plugin id="${ant.project.name}" version="${plugin.version}">
-&lt;name>${ant.project.name}&lt;/name>
-&lt;description>${plugin.description}&lt;/description>
-&lt;resources>
-&lt;resource src="${plugin.site.url}${plugin.jar}"
-target="${josm.home.dir}/plugins/${plugin.jar}"/>
-&lt;/resources>
-&lt;/plugin>
-&lt;/plugins>
-&lt;/site>
-</echo>
-    </target>
-<!-- upload the site description and the jar file via ssh -->
-    <target name="upload" depends="dist,site">
-        <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
-        <exec executable="scp">
-            <arg value="${plugin.dist.dir}/${plugin.jar}"/>
-            <arg value="${plugin.site.file}"/>
-            <arg value="${plugin.site.upload.target}"/>
-        </exec>
-    </target>
-    <target name="clean">
-        <delete dir="${plugin.build.dir}" />
-        <delete dir="${plugin.site.file}" />
-        <delete file="${plugin.dist.dir}/${plugin.jar}" />
+        <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>
