Changeset 14741 in josm for trunk/src/org/openstreetmap/josm/io/session/GenericSessionExporter.java
- Timestamp:
- 2019-01-27T18:58:32+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/GenericSessionExporter.java
r14718 r14741 13 13 import java.io.IOException; 14 14 import java.io.OutputStream; 15 import java.net.MalformedURLException; 15 16 16 17 import javax.swing.AbstractAction; … … 191 192 addDataFile(support.getOutputStreamZip(zipPath)); 192 193 } else { 193 File f = layer.getAssociatedFile(); 194 if (f != null) { 195 final String fileString = support.relativize(f.toPath()); 196 file.appendChild(support.createTextNode(fileString)); 194 try { 195 File f = layer.getAssociatedFile(); 196 if (f != null) { 197 file.appendChild(support.createTextNode(f.toURI().toURL().toString())); 198 } 199 } catch (MalformedURLException e) { 200 throw new IOException(e); 197 201 } 198 202 }
Note:
See TracChangeset
for help on using the changeset viewer.