/** * Send requests to the client to remove the specified app directory * and all the generated directories. */ private void removeApp(Application app, File base, ModTime mt, Payload.Outbound payload) throws URISyntaxException { if (logger.isLoggable(Level.FINE)) logger.fine("ServerSynchronizer: removing files for application " + mt.name + " because it is no longer deployed to this instance"); try { File dir = fileOf(base, mt.name); removeDir(dir, payload); dir = env.getApplicationCompileJspPath(); removeDir(fileOf(dir, mt.name), payload); dir = env.getApplicationGeneratedXMLPath(); removeDir(fileOf(dir, mt.name), payload); dir = env.getApplicationEJBStubPath(); removeDir(fileOf(dir, mt.name), payload); dir = new File(env.getApplicationStubPath(), "policy"); removeDir(fileOf(dir, mt.name), payload); } catch (IOException ioex) { if (logger.isLoggable(Level.FINE)) { logger.fine("ServerSynchronizer: IOException removing app " + mt.name); logger.fine(ioex.toString()); } } }
env.getApplicationEJBStubPath(), J2EE_APPS); FileUtils.whack(oldJ2eeAppsEJBStubDir); File oldJ2eeModulesEJBStubDir = new File( env.getApplicationEJBStubPath(), J2EE_MODULES); FileUtils.whack(oldJ2eeModulesEJBStubDir);
gdir = env.getApplicationGeneratedXMLPath(); attachAppDir(fileOf(gdir, mt.name), payload); gdir = env.getApplicationEJBStubPath(); attachAppDir(fileOf(gdir, mt.name), payload); gdir = new File(env.getApplicationStubPath(), "policy");
gdir = env.getApplicationGeneratedXMLPath(); attachAppDir(fileOf(gdir, mt.name), payload); gdir = env.getApplicationEJBStubPath(); attachAppDir(fileOf(gdir, mt.name), payload); gdir = new File(env.getApplicationStubPath(), "policy");
/** * Send requests to the client to remove the specified app directory * and all the generated directories. */ private void removeApp(Application app, File base, ModTime mt, Payload.Outbound payload) throws URISyntaxException { logger.fine("ServerSynchronizer: removing files for application " + mt.name + " because it is no longer deployed to this instance"); try { File dir = fileOf(base, mt.name); removeDir(dir, payload); dir = env.getApplicationCompileJspPath(); removeDir(fileOf(dir, mt.name), payload); dir = env.getApplicationGeneratedXMLPath(); removeDir(fileOf(dir, mt.name), payload); dir = env.getApplicationEJBStubPath(); removeDir(fileOf(dir, mt.name), payload); dir = new File(env.getApplicationStubPath(), "policy"); removeDir(fileOf(dir, mt.name), payload); } catch (IOException ioex) { logger.fine("ServerSynchronizer: IOException removing app " + mt.name); logger.fine(ioex.toString()); } }