Commit MetaInfo

Revisión013d878244657c39e4c93c8e91f77e7b7775e124 (tree)
Tiempo2013-05-12 09:26:47
Autoryuu hayashi <hayashi.yuu@gmai...>
Commiteryuu hayashi

Log Message

Merge branch 'master' of git://git.sourceforge.jp/gitroot/gpx2osm/gpx2osm.git

Cambiar Resumen

Diferencia incremental

--- a/gpx2osm/build.xml
+++ b/gpx2osm/build.xml
@@ -15,21 +15,45 @@
1515 <property name="classes" value="${basedir}/classes" />
1616 <property name="appname" value="gpx2osm"></property>
1717 <property name="version" value="${verdate}"></property>
18-
18+
19+ <target name="classes.dir.check">
20+ <condition property="classes.dir.exists">
21+ <available file="${classes}" type="dir"/>
22+ </condition>
23+ </target>
24+
25+ <target name="src.dir.check">
26+ <condition property="src.dir.exists">
27+ <available file="${src}" type="dir"/>
28+ </condition>
29+ </target>
30+
1931 <!--
2032 [STEP 1] クリーンナップ
2133 -->
22- <target name="clean" description="前回作成したclassファイルを削除する">
34+ <target name="classes.clean" depends="classes.dir.check" if="classes.dir.exists">
2335 <delete>
2436 <fileset dir="${classes}" includes="**/*.class" />
37+ </delete>
38+ </target>
39+ <target name="src.clean" depends="src.dir.check" if="src.dir.exists">
40+ <delete>
2541 <fileset dir="${src}" includes="**/*.class" />
2642 </delete>
2743 </target>
44+
45+ <target name="clean" depends="src.dir.check,classes.dir.check" description="前回作成したclassファイルを削除する">
46+ <echo>'${classes}' and '${src}' cleaned.</echo>
47+ </target>
2848
2949 <!--
3050 [STEP 2] コンパイル
3151 -->
32- <target name="compile_src" depends="clean" description="コンパイル src">
52+ <target name="mkdir.classes" depends="classes.dir.check" unless="classes.dir.exists">
53+ <mkdir dir="${classes}" />
54+ </target>
55+
56+ <target name="compile_src" depends="clean,mkdir.classes" description="コンパイル src">
3357 <javac optimize="off" debug="on" verbose="false" srcdir="${src}" destdir="${classes}" encoding="UTF-8" >
3458 <include name="**" />
3559 <exclude name="**/*.smap" />
--- a/gpx2osm/src/osm/jp/osmtracker/tool/Gpx2osm.java
+++ b/gpx2osm/src/osm/jp/osmtracker/tool/Gpx2osm.java
@@ -176,11 +176,9 @@ public class Gpx2osm {
176176 }
177177 }
178178
179- if (nameStr.startsWith("Picture")) {
180- System.out.println("'"+ nameStr +"' : スキップ");
181- }
182- else if (nameStr.startsWith("Voice recording")) {
183- System.out.println("'"+ nameStr +"' : スキップ");
179+ if (nameStr.startsWith("Picture") || nameStr.startsWith("写真")
180+ || nameStr.startsWith("Voice recording") || nameStr.startsWith("録音")) {
181+ System.out.println("'"+ nameStr +"'はスキップはスキップしました。");
184182 }
185183 else {
186184 System.out.println("name : '"+ nameStr +"'");
@@ -213,7 +211,6 @@ public class Gpx2osm {
213211 nod.setAttribute("timestamp", timeStr);
214212 nod.setAttribute("lat", latStr);
215213 nod.setAttribute("lon", lonStr);
216- nod.appendChild(getSourceTag(timeStr));
217214 osmnode.appendChild(nod);
218215
219216 // WAYを作成する
@@ -231,6 +228,7 @@ public class Gpx2osm {
231228 Element nd = document.createElement("nd");
232229 nd.setAttribute("ref", Integer.toString(iCounter + 1));
233230 way.appendChild(getCopy(nd));
231+ way.appendChild(getSourceTag(timeStr));
234232
235233 // 回答ノードの内容をWAYに転記する
236234 NodeList nlist = onode.getChildNodes();
@@ -250,6 +248,7 @@ public class Gpx2osm {
250248 way = document.createElement("way");
251249 way.setAttribute("id", Integer.toString(iCounter));
252250 way.appendChild(getCopy(nd));
251+ way.appendChild(getSourceTag(timeStr));
253252 NodeList nlist = onode.getChildNodes();
254253 for (int i=0; i < nlist.getLength(); i++) {
255254 way.appendChild(getCopy(nlist.item(i)));
Show on old repository browser