private List<String> modules() { indent(); if (match(Token.Kind.MODULES, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no properties. } List<String> modules = new ArrayList<String>(); chewEols(); chewIndents(); String module; while ((module = idFragment()) != null) { chewEols(); chewIndents(); modules.add(module); } if (match(Token.Kind.RBRACKET) == null) { // ERROR! parseException("Expected ]"); } return modules; }
private List<Property> properties(Token.Kind kind) { indent(); if (match(kind, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no properties. } List<Property> properties = new ArrayList<Property>(); chewEols(); chewIndents(); Property p; while ((p = property()) != null) { chewEols(); chewIndents(); properties.add(p); } if (match(Token.Kind.RBRACKET) == null) { // ERROR! parseException("Expected ]"); } return properties; }
List<Token> propKey; chewIndents(); while ((propKey = match(Kind.IDENT, Kind.COLON)) != null) { chewIndents(); Map<String, Object> childProps = configurationMap(); chewEols(); chewIndents(); if (match(Kind.RBRACKET) == null && match(Kind.RBRACE) == null) parseException("Expected ']' after configuration properties"); chewIndents();
private ScmElement scm() { chewIndents(); if (match(Token.Kind.SCM, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no scm element chewIndents(); chewIndents();
chewIndents(); repositories = match(Token.Kind.STRING); chewEols(); chewIndents(); if (null != repositories) { url = validateUrl(repositories.get(0).value);
/** * Dependencies of a project. The real meat of it. */ private List<Id> dependencies(Token.Kind kind, boolean allowNullVersion) { indent(); if (match(kind, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no deps. } List<Id> deps = new ArrayList<Id>(); chewEols(); chewIndents(); // Slurp up the dep ids. Id id; while ((id = id(allowNullVersion)) != null) { // Optional additional params at the end. String classifier = classifier(); if (null != classifier) { id.setClassifier(classifier); } chewEols(); chewIndents(); deps.add(id); } if (match(Token.Kind.RBRACKET) == null) { // ERROR! parseException("Expected ]"); } return deps; }
chewIndents(); chewIndents(); chewIndents(); List<Property> properties = properties(Token.Kind.PROPS); chewIndents(); List<Id> overrides = dependencies(Token.Kind.OVERRIDES, false); chewIndents(); List<Id> deps = dependencies(Token.Kind.DEPS, true); chewIndents(); List<String> modules = modules(); chewIndents(); List<Plugin> pluginOverrides = plugins(Kind.PLUGIN_OVERRIDE); List<Plugin> plugins = plugins(Kind.PLUGIN);
chewIndents(); List<Token> aMatch = match(Token.Kind.IDENT); if (aMatch == null) {
chewIndents(); if (match(Kind.ID, Kind.COLON) == null) { log.severe("Plugin declaration is missing an 'id' tag");
private List<String> modules() { indent(); if (match(Token.Kind.MODULES, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no properties. } List<String> modules = new ArrayList<String>(); chewEols(); chewIndents(); String module; while ((module = idFragment()) != null) { chewEols(); chewIndents(); modules.add(module); } if (match(Token.Kind.RBRACKET) == null) { // ERROR! parseException("Expected ]"); } return modules; }
private List<String> modules() { indent(); if (match(Token.Kind.MODULES, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no properties. } List<String> modules = new ArrayList<String>(); chewEols(); chewIndents(); String module; while ((module = idFragment()) != null) { chewEols(); chewIndents(); modules.add(module); } if (match(Token.Kind.RBRACKET) == null) { // ERROR! parseException("Expected ]"); } return modules; }
List<Token> propKey; chewIndents(); while ((propKey = match(Kind.IDENT, Kind.COLON)) != null) { chewIndents(); Map<String, Object> childProps = configurationMap(); chewEols(); chewIndents(); if (match(Kind.RBRACKET) == null && match(Kind.RBRACE) == null) parseException("Expected ']' after configuration properties"); chewIndents();
private List<Property> properties(Token.Kind kind) { indent(); if (match(kind, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no properties. } List<Property> properties = new ArrayList<Property>(); chewEols(); chewIndents(); Property p; while ((p = property()) != null) { chewEols(); chewIndents(); properties.add(p); } if (match(Token.Kind.RBRACKET) == null) { // ERROR! parseException("Expected ]"); } return properties; }
private List<Property> properties(Token.Kind kind) { indent(); if (match(kind, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no properties. } List<Property> properties = new ArrayList<Property>(); chewEols(); chewIndents(); Property p; while ((p = property()) != null) { chewEols(); chewIndents(); properties.add(p); } if (match(Token.Kind.RBRACKET) == null) { // ERROR! parseException("Expected ]"); } return properties; }
chewIndents(); repositories = match(Token.Kind.STRING); chewEols(); chewIndents(); if (null != repositories) { url = validateUrl(repositories.get(0).value);
chewIndents(); repositories = match(Token.Kind.STRING); chewEols(); chewIndents(); if (null != repositories) { url = validateUrl(repositories.get(0).value);
/** * Dependencies of a project. The real meat of it. */ private List<Id> dependencies(Token.Kind kind, boolean allowNullVersion) { indent(); if (match(kind, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no deps. } List<Id> deps = new ArrayList<Id>(); chewEols(); chewIndents(); // Slurp up the dep ids. Id id; while ((id = id(allowNullVersion)) != null) { // Optional additional params at the end. String classifier = classifier(); if (null != classifier) { id.setClassifier(classifier); } chewEols(); chewIndents(); deps.add(id); } if (match(Token.Kind.RBRACKET) == null) { // ERROR! parseException("Expected ]"); } return deps; }
/** * Dependencies of a project. The real meat of it. */ private List<Id> dependencies(Token.Kind kind, boolean allowNullVersion) { indent(); if (match(kind, Token.Kind.COLON, Token.Kind.LBRACKET) == null) { return null; // no deps. } List<Id> deps = new ArrayList<Id>(); chewEols(); chewIndents(); // Slurp up the dep ids. Id id; while ((id = id(allowNullVersion)) != null) { // Optional additional params at the end. String classifier = classifier(); if (null != classifier) { id.setClassifier(classifier); } chewEols(); chewIndents(); deps.add(id); } if (match(Token.Kind.RBRACKET) == null) { // ERROR! parseException("Expected ]"); } return deps; }
chewIndents(); if (match(Kind.ID, Kind.COLON) == null) { log.severe("Plugin declaration is missing an 'id' tag");
chewIndents(); if (match(Kind.ID, Kind.COLON) == null) { log.severe("Plugin declaration is missing an 'id' tag");