Changeset 8687 in josm for trunk/scripts
- Timestamp:
- 2015-08-24T14:41:08+02:00 (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 7 7 javadoc 8 8 checkstyle-josm.xml 9 taginfo_*.json 10 taginfo-img
-
- Property svn:ignore
-
trunk/scripts/taginfoextract.groovy
r8681 r8687 10 10 */ 11 11 import groovy.json.JsonBuilder 12 13 import java.awt.image.BufferedImage 14 import java.nio.file.FileSystems 15 import java.nio.file.Files 16 import java.nio.file.Path 17 18 import javax.imageio.ImageIO 19 12 20 import org.openstreetmap.josm.Main 13 21 import org.openstreetmap.josm.data.Version … … 22 30 import org.openstreetmap.josm.gui.mappaint.Environment 23 31 import org.openstreetmap.josm.gui.mappaint.LineElemStyle 32 import org.openstreetmap.josm.gui.mappaint.MultiCascade 24 33 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.IconReference 25 import org.openstreetmap.josm.gui.mappaint. MultiCascade34 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource 26 35 import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.SimpleKeyValueCondition 27 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource28 36 import org.openstreetmap.josm.gui.mappaint.mapcss.Selector.GeneralSelector 29 37 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser … … 35 43 import org.openstreetmap.josm.io.CachedFile 36 44 import org.openstreetmap.josm.tools.Utils 37 38 import javax.imageio.ImageIO39 import java.awt.image.BufferedImage40 import java.nio.file.FileSystems41 import java.nio.file.Files42 import java.nio.file.Path43 45 44 46 class taginfoextract { … … 191 193 } else { 192 194 System.err.println 'Invalid type ' + options.t 193 System.exit(1) 194 } 195 196 System.exit(0) 195 if (!options.noexit) { 196 System.exit(1) 197 } 198 } 199 200 if (!options.noexit) { 201 System.exit(0) 202 } 197 203 } 198 204 … … 208 214 cli._(longOpt:'svnrev', args:1, argName:"revision", "corresponding revision of the repository https://svn.openstreetmap.org/ (optional, current revision is read from the local checkout or from the web if not given, see --svnweb)") 209 215 cli._(longOpt:'imgdir', args:1, argName:"directory", "directory to put the generated images in (default: ./taginfo-img)") 216 cli._(longOpt:'noexit', "don't call System.exit(), for use from Ant script") 210 217 cli._(longOpt:'svnweb', 'fetch revision of the repository https://svn.openstreetmap.org/ from web and not from the local repository') 211 218 cli._(longOpt:'imgurlprefix', args:1, argName:'prefix', 'image URLs prefix for generated image files')
Note:
See TracChangeset
for help on using the changeset viewer.