Examples of ExitStatusException


Examples of org.apache.tools.ant.ExitStatusException

                    }
                }
            }
            log("failing due to " + text, Project.MSG_DEBUG);
            throw ((status == null) ? new BuildException(text)
             : new ExitStatusException(text, status.intValue()));
        }
    }
View Full Code Here

Examples of org.apache.tools.ant.ExitStatusException

                        text = "No message";
                    }
                }
            }
            throw ((status == null) ? new BuildException(text)
             : new ExitStatusException(text, status.intValue()));
        }
    }
View Full Code Here

Examples of org.apache.tools.ant.ExitStatusException

        getProject().log(RetroWeaverTask.this, msg, Project.MSG_INFO);
      }

      public void weavingError(String msg) {
        getProject().log(RetroWeaverTask.this, msg, Project.MSG_ERR);
        throw new ExitStatusException("weaving error", 1);
      }

      public void weavingPath(String pPath) {
        if (itsVerbose) {
          getProject().log(RetroWeaverTask.this, "Weaving " + pPath,
              Project.MSG_INFO);
        }
      }
    });

    if (verifyClasspath != null && doVerify()) {

      List<String> refPath = new ArrayList<String>();

      for (String pathItem : verifyClasspath.list()) {
        refPath.add(pathItem);
      }
      if (itsDestDir != null) {
        refPath.add(itsDestDir.getPath());
      }

      RefVerifier rv = new RefVerifier(itsVersion, new EmptyVisitor(), refPath, new VerifierListener() {
        public void verifyPathStarted(String msg) {
          getProject().log(RetroWeaverTask.this, msg,
              Project.MSG_INFO);
        }

        public void verifyClassStarted(String msg) {
          if (itsVerbose) {
            getProject().log(RetroWeaverTask.this, msg, Project.MSG_INFO);
          }
        }

        public void acceptWarning(String msg) {
          getProject().log(RetroWeaverTask.this, msg, Project.MSG_WARN);
        }

        public void displaySummary(int warningCount) {
          String msg = "Verification complete, " + warningCount
              + " warning(s).";
          getProject().log(RetroWeaverTask.this, msg,
              Project.MSG_WARN);

          if (itsFailOnError) {
            throw new ExitStatusException(Integer
                .toString(warningCount)
                + " warning(s)", 1);
          }
        }
      });
View Full Code Here

Examples of org.apache.tools.ant.ExitStatusException

        int err = -1;
        try {
            err = executeJava();
            if (err != 0) {
                if (failOnError) {
                    throw new ExitStatusException("Java returned: " + err,
                            err,
                            getLocation());
                } else {
                    log("Java Result: " + err, Project.MSG_ERR);
                }
View Full Code Here

Examples of org.apache.tools.ant.ExitStatusException

        try {
            checkConfiguration();
            err = executeJava();
            if (err != 0) {
                if (failOnError) {
                    throw new ExitStatusException("Java returned: " + err,
                            err,
                            getLocation());
                } else {
                    log("Java Result: " + err, Project.MSG_ERR);
                }
View Full Code Here

Examples of org.apache.tools.ant.ExitStatusException

                    }
                }
            }
            log("failing due to " + text, Project.MSG_DEBUG);
            throw ((status == null) ? new BuildException(text)
             : new ExitStatusException(text, status.intValue()));
        }
    }
View Full Code Here

Examples of org.apache.tools.ant.ExitStatusException

        try {
            checkConfiguration();
            err = executeJava();
            if (err != 0) {
                if (failOnError) {
                    throw new ExitStatusException("Java returned: " + err,
                            err,
                            getLocation());
                } else {
                    log("Java Result: " + err, Project.MSG_ERR);
                }
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.