Ejemplo n.º 1
0
  protected boolean copyAgentAppWarFile(IStateAccess stateAccess) {
    boolean status = false;
    String srcDir = ConfigUtil.getEtcDirPath();
    String destDir = (String) stateAccess.get(STR_KEY_JETTY_INST_DEPLOY_DIR);

    try {
      FileUtils.copyJarFile(srcDir, destDir, STR_AGENT_APP_WAR_FILE);
      Debug.log(
          "ConfigureAgentAppTask.copyAgentAppWarFile() - copy "
              + STR_AGENT_APP_WAR_FILE
              + " from "
              + srcDir
              + " to "
              + destDir);
      status = true;
    } catch (Exception e) {
      Debug.log(
          "ConfigureAgentAppTask."
              + "copyAgentAppWarFile() - Error occured while copying "
              + STR_AGENT_APP_WAR_FILE
              + " from "
              + srcDir
              + " to "
              + destDir,
          e);
    }
    return status;
  }