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; }