[josm-plugins] 68/369: Backporting recent code for pluing surveyor
Bas Couwenberg
sebastic at xs4all.nl
Sat Oct 18 12:03:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch master
in repository josm-plugins.
commit 93a88ae8a0b855aedcc88a433399f30d340b227d
Author: Giovanni Mascellani <mascellani at poisson.phc.unipi.it>
Date: Sun Jun 7 13:32:22 2009 +0000
Backporting recent code for pluing surveyor
---
debian/patches/100_surveyor.dpatch | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/debian/patches/100_surveyor.dpatch b/debian/patches/100_surveyor.dpatch
index 526fb35..d38522a 100755
--- a/debian/patches/100_surveyor.dpatch
+++ b/debian/patches/100_surveyor.dpatch
@@ -3,6 +3,7 @@
##
## DP: Patch for plugin surveyor
## DP: * Disable upstream SVN access
+## DP: * Backport recent code
@DPATCH@
diff -urNad trunk~/surveyor/build.xml trunk/surveyor/build.xml
@@ -17,3 +18,35 @@ diff -urNad trunk~/surveyor/build.xml trunk/surveyor/build.xml
<copy todir="${plugin.build.dir}/">
<fileset dir="resources">
<include name="*.xml"/>
+diff -urNad trunk~/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveEditLayerTimerTask.java trunk/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveEditLayerTimerTask.java
+--- trunk~/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveEditLayerTimerTask.java 2009-02-01 21:50:42.000000000 +0100
++++ trunk/surveyor/src/at/dallermassl/josm/plugin/surveyor/AutoSaveEditLayerTimerTask.java 2009-05-21 16:21:51.000000000 +0200
+@@ -7,10 +7,11 @@
+ import static org.openstreetmap.josm.tools.I18n.tr;
+
+ import java.io.File;
+ import java.io.FileOutputStream;
+ import java.io.IOException;
++import java.io.PrintWriter;
+ import java.util.TimerTask;
+
+ import javax.swing.JOptionPane;
+
+ import livegps.LiveGpsLock;
+@@ -51,11 +52,15 @@
+
+ // write to temporary file, on success, rename tmp file to target file:
+ File tmpFile = new File(file.getAbsoluteFile()+".tmp");
+ System.out.println("AutoSaving osm data to file " + file.getAbsolutePath());
+ synchronized(LiveGpsLock.class) {
+- XmlWriter.output(new FileOutputStream(tmpFile), new OsmWriter.All(dataset, false));
++ OsmWriter w = new OsmWriter(new PrintWriter(new FileOutputStream(tmpFile)), false, dataset.version);
++ w.header();
++ w.writeDataSources(dataset);
++ w.writeContent(dataset);
++ w.footer();
+ }
+ tmpFile.renameTo(file);
+ System.out.println("AutoSaving finished");
+ } catch (IOException x) {
+ x.printStackTrace();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/josm-plugins.git
More information about the Pkg-grass-devel
mailing list