コード例 #1
0
ファイル: PostProcess.java プロジェクト: 4DvAnCeBoY/dotCMS
  public boolean postProcess(boolean clean) {

    AntInvoker invoker = new AntInvoker(getDistributionHome());
    try {
      if (clean) {
        boolean ret =
            invoker.runTask(
                "clean-plugins",
                getDistributionHome()
                    + File.separator
                    + UpdateAgent.FOLDER_HOME_BIN
                    + File.separator
                    + "ant"
                    + File.separator
                    + "build.xml");
        if (!ret) {
          return false;
        }
      }
      return invoker.runTask(
          "deploy-plugins",
          getDistributionHome()
              + File.separator
              + UpdateAgent.FOLDER_HOME_BIN
              + File.separator
              + "ant"
              + File.separator
              + "build.xml");

    } catch (IOException e) {
      UpdateAgent.logger.fatal("IOException: " + e.getMessage(), e);
    }
    return false;
  }
コード例 #2
0
ファイル: PostProcess.java プロジェクト: 4DvAnCeBoY/dotCMS
 public boolean checkRequisites() throws UpdateException {
   AntInvoker invoker = new AntInvoker(getDistributionHome());
   return invoker.checkRequisites();
 }