Changeset 8687 in josm for trunk/scripts


Ignore:
Timestamp:
2015-08-24T14:41:08+02:00 (4 years ago)
Author:
Don-vip
Message:

see #11795 - add taginfo target to Ant build

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        77javadoc
        88checkstyle-josm.xml
         9taginfo_*.json
         10taginfo-img
  • trunk/scripts/taginfoextract.groovy

    r8681 r8687  
    1010 */
    1111import groovy.json.JsonBuilder
     12
     13import java.awt.image.BufferedImage
     14import java.nio.file.FileSystems
     15import java.nio.file.Files
     16import java.nio.file.Path
     17
     18import javax.imageio.ImageIO
     19
    1220import org.openstreetmap.josm.Main
    1321import org.openstreetmap.josm.data.Version
     
    2230import org.openstreetmap.josm.gui.mappaint.Environment
    2331import org.openstreetmap.josm.gui.mappaint.LineElemStyle
     32import org.openstreetmap.josm.gui.mappaint.MultiCascade
    2433import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.IconReference
    25 import org.openstreetmap.josm.gui.mappaint.MultiCascade
     34import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource
    2635import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.SimpleKeyValueCondition
    27 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource
    2836import org.openstreetmap.josm.gui.mappaint.mapcss.Selector.GeneralSelector
    2937import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser
     
    3543import org.openstreetmap.josm.io.CachedFile
    3644import org.openstreetmap.josm.tools.Utils
    37 
    38 import javax.imageio.ImageIO
    39 import java.awt.image.BufferedImage
    40 import java.nio.file.FileSystems
    41 import java.nio.file.Files
    42 import java.nio.file.Path
    4345
    4446class taginfoextract {
     
    191193        } else {
    192194            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        }
    197203    }
    198204
     
    208214        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)")
    209215        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")
    210217        cli._(longOpt:'svnweb', 'fetch revision of the repository https://svn.openstreetmap.org/ from web and not from the local repository')
    211218        cli._(longOpt:'imgurlprefix', args:1, argName:'prefix', 'image URLs prefix for generated image files')
Note: See TracChangeset for help on using the changeset viewer.