Package org.apache.tools.ant

Examples of org.apache.tools.ant.UnsupportedElementException


     */
  public void addConfig(final Configuration config) {
    if (fSteps != null) {
          final String msg = config.getTaskName() + " invalid at this position! "
          + "It has to be the first node of \"" + getTaskName() + "\"!";
          throw new UnsupportedElementException(msg, config.getTaskName());
    }
    fConfig = config;
  }
View Full Code Here


      if (task instanceof TestStepSequence) {
        addSteps((TestStepSequence) task);
          }
      else if (!fImplicitSteps)
      {
            throw new UnsupportedElementException("No step allowed after </steps>!", task.getTaskName());
      }
      else
      {
        if (fSteps == null) {
          final TestStepSequence implicitSteps = new TestStepSequence();
View Full Code Here

    }

    if (fSteps != null) {
          final String msg = getTaskName()
          + " doesn't support multiple nested \"" + steps.getTaskName() + "\" elements.";
          throw new UnsupportedElementException(msg, steps.getTaskName());
    }
    fSteps = steps;
    fImplicitSteps = false;
  }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.UnsupportedElementException

Copyright © 2018 www.massapicom. 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.