Examples of runTask()


Examples of org.openbravo.erpCommon.utility.AntExecutor.runTask()

    final File srcDir = new File(srcPath);
    final File baseDir = srcDir.getParentFile();
    try {
      log.debug("Restarting tomcat with basedir " + baseDir);
      final AntExecutor antExecutor = new AntExecutor(baseDir.getAbsolutePath());
      antExecutor.runTask("tomcat.restart.do");
    } catch (final Exception e) {
      e.printStackTrace(System.err);
      throw new OBException(e);
    }
  }
View Full Code Here

Examples of org.openbravo.erpCommon.utility.AntExecutor.runTask()

    final String baseDirPath = OBPropertiesProvider.getInstance().getOpenbravoProperties()
        .getProperty("source.path");
    try {
      log.debug("Restarting tomcat with basedir " + baseDirPath);
      final AntExecutor antExecutor = new AntExecutor(baseDirPath);
      antExecutor.runTask("tomcat.restart");
    } catch (final Exception e) {
      e.printStackTrace(System.err);
      throw new OBException(e);
    }
  }
View Full Code Here

Examples of org.openbravo.erpCommon.utility.AntExecutor.runTask()

    final File srcDir = new File(srcPath);
    final File baseDir = srcDir.getParentFile();
    try {
      log.debug("Reloading context with basedir " + baseDir);
      final AntExecutor antExecutor = new AntExecutor(baseDir.getAbsolutePath());
      antExecutor.runTask("tomcat.reload.do");
    } catch (final Exception e) {
      e.printStackTrace(System.err);
      throw new OBException(e);
    }
  }
View Full Code Here

Examples of org.openbravo.erpCommon.utility.AntExecutor.runTask()

    final String baseDirPath = OBPropertiesProvider.getInstance().getOpenbravoProperties()
        .getProperty("source.path");
    try {
      log.debug("Reloading context with basedir " + baseDirPath);
      final AntExecutor antExecutor = new AntExecutor(baseDirPath);
      antExecutor.runTask("tomcat.reload");
    } catch (final Exception e) {
      e.printStackTrace(System.err);
      throw new OBException(e);
    }
  }
View Full Code Here

Examples of org.openbravo.erpCommon.utility.AntExecutor.runTask()

    final String srcPath = args[0];
    final File srcDir = new File(srcPath);
    final File baseDir = srcDir.getParentFile();
    try {
      final AntExecutor antExecutor = new AntExecutor(baseDir.getAbsolutePath());
      antExecutor.runTask("apply.module.forked");
    } catch (final Exception e) {
      e.printStackTrace(System.err);
      throw new OBException(e);
    }
  }
View Full Code Here

Examples of org.openbravo.erpCommon.utility.AntExecutor.runTask()

      final AntExecutor ant = new AntExecutor(getProperty("source.path")
          + (additionalPath != null ? "/" + additionalPath : ""));
      ant.setOBPrintStreamLog(System.err);
      // ant.setLogLevel(Project.MSG_INFO);
      // ant.setOBPrintStreamLog(null);// outputLogWriter);
      ant.runTask(task);
      final String result = ant.getErr();
      if (result.indexOf("Success") != -1) {
        return;
      } else {
        System.err.println(result);
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.