Package org.codehaus.plexus.util.xml.pull

Examples of org.codehaus.plexus.util.xml.pull.MXParser.nextText()


          foundRoot = true;
        }
        else if (parser.getName().equals("packaging")) {
          // 1st: if found project/packaging -> overwrite
          if (parser.getDepth() == 2) {
            packaging = StringUtils.trim(parser.nextText());
            break;
          }
        }
        else if (!foundRoot) {
          throw new XmlPullParserException("Unrecognised tag: '" + parser.getName() + "'", parser, null);
View Full Code Here


        }
        else if (parser.getName().equals("groupId")) {
          // 1st: if found project/groupId -> overwrite
          // 2nd: if in parent, and groupId is still null, overwrite
          if (parser.getDepth() == 2 || (inParent && groupId == null)) {
            groupId = StringUtils.trim(parser.nextText());
          }
        }
        else if (parser.getName().equals("artifactId")) {
          // 1st: if found project/artifactId -> overwrite
          // 2nd: if in parent, and artifactId is still null, overwrite
View Full Code Here

        }
        else if (parser.getName().equals("artifactId")) {
          // 1st: if found project/artifactId -> overwrite
          // 2nd: if in parent, and artifactId is still null, overwrite
          if (parser.getDepth() == 2 || (inParent && artifactId == null)) {
            artifactId = StringUtils.trim(parser.nextText());
          }
        }
        else if (parser.getName().equals("version")) {
          // 1st: if found project/version -> overwrite
          // 2nd: if in parent, and version is still null, overwrite
View Full Code Here

        }
        else if (parser.getName().equals("version")) {
          // 1st: if found project/version -> overwrite
          // 2nd: if in parent, and version is still null, overwrite
          if (parser.getDepth() == 2 || (inParent && version == null)) {
            version = StringUtils.trim(parser.nextText());
          }
        }
        else if (parser.getName().equals("packaging")) {
          // 1st: if found project/packaging -> overwrite
          if (parser.getDepth() == 2) {
View Full Code Here

          }
        }
        else if (parser.getName().equals("packaging")) {
          // 1st: if found project/packaging -> overwrite
          if (parser.getDepth() == 2) {
            packaging = StringUtils.trim(parser.nextText());
          }
        }
        else if (!foundRoot) {
          throw new XmlPullParserException("Unrecognised tag: '" + parser.getName() + "'", parser, null);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.