Changeset 12066 in josm
- Timestamp:
- 2017-05-05T21:50:01+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/SyncEditorLayerIndex.groovy
r12061 r12066 39 39 static String josmInputFile = 'imagery_josm.imagery.xml' 40 40 static String ignoreInputFile = 'imagery_josm.ignores.txt' 41 static File WriteroutputFile = null42 static BufferedWriter outputStream = null41 static FileOutputStream outputFile = null 42 static OutputStreamWriter outputStream = null 43 43 def skip = [:] 44 44 … … 56 56 script.loadJosmEntries() 57 57 if(options.josmxml) { 58 def file = new File Writer(options.josmxml)59 def stream = new BufferedWriter(file)58 def file = new FileOutputStream(options.josmxml) 59 def stream = new OutputStreamWriter(file, "UTF-8") 60 60 script.printentries(script.josmEntries, stream) 61 stream.close(); 62 file.close(); 61 63 } 62 64 script.loadELIEntries() 63 65 if(options.elixml) { 64 def file = new File Writer(options.elixml)65 def stream = new BufferedWriter(file)66 def file = new FileOutputStream(options.elixml) 67 def stream = new OutputStreamWriter(file, "UTF-8") 66 68 script.printentries(script.eliEntries, stream) 69 stream.close(); 70 file.close(); 67 71 } 68 72 script.checkInOneButNotTheOther() … … 110 114 } 111 115 if (options.output && options.output != "-") { 112 outputFile = new File Writer(options.output)113 outputStream = new BufferedWriter(outputFile)116 outputFile = new FileOutputStream(options.output) 117 outputStream = new OutputStreamWriter(outputFile, "UTF-8") 114 118 } 115 119 }
Note:
See TracChangeset
for help on using the changeset viewer.