Changeset 31598 in osm for applications/editors/josm/plugins/seachart
- Timestamp:
- 2015-10-06T16:44:11+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/seachart/js57toosm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/js57toosm/build.xml
r30894 r31598 5 5 <property name="ant.build.javac.target" value="1.7"/> 6 6 <property name="ant.build.javac.source" value="1.7"/> 7 7 <property name="lang.dir" value="/usr/local/bin/commons-lang3-3.4/"/> 8 8 9 <target name="init"> 9 10 <mkdir dir="${build}"/> … … 20 21 <attribute name="Class-Path" value="$jarfile"/> 21 22 </manifest> 23 <zipgroupfileset dir="${lang.dir}" includes="**/commons-lang3-3.4.jar" /> 22 24 </jar> 23 25 </target> -
applications/editors/josm/plugins/seachart/js57toosm/src/js57toosm/Js57toosm.java
r31157 r31598 12 12 import java.io.*; 13 13 import java.util.*; 14 15 import org.apache.commons.lang3.StringEscapeUtils; 14 16 15 17 import s57.S57obj; … … 175 177 String valstr = S57val.stringValue(item.getValue(), item.getKey()); 176 178 if (!attstr.isEmpty() && !valstr.isEmpty()) 177 out.format(" <tag k='seamark:%s:%s' v='%s'/>%n", type, attstr, valstr);179 out.format(" <tag k='seamark:%s:%s' v='%s'/>%n", type, attstr, StringEscapeUtils.escapeXml10(valstr)); 178 180 } 179 181 for (Obj obj : feature.objs.keySet()) { … … 187 189 if (!attstr.isEmpty() && !valstr.isEmpty()) { 188 190 if ((ix == 0) && (tab.size() == 1)) { 189 out.format(" <tag k='seamark:%s:%s' v='%s'/>%n", type, attstr, valstr);191 out.format(" <tag k='seamark:%s:%s' v='%s'/>%n", type, attstr, StringEscapeUtils.escapeXml10(valstr)); 190 192 } else { 191 out.format(" <tag k='seamark:%s:%d:%s' v='%s'/>%n", type, ix + 1, attstr, valstr);193 out.format(" <tag k='seamark:%s:%d:%s' v='%s'/>%n", type, ix + 1, attstr, StringEscapeUtils.escapeXml10(valstr)); 192 194 } 193 195 }
Note:
See TracChangeset
for help on using the changeset viewer.