@Override public File getApplicationsDir() { return env.getApplicationRepositoryPath(); }
public File getAppInternalDir() { final File internalDir = new File(env.getApplicationRepositoryPath(), INTERNAL_DIR_NAME); return new File(internalDir, VersioningUtils.getRepositoryName(parameters.name())); }
final File appsDir = env.getApplicationRepositoryPath();
/** * Synchronize all the applications in the applications directory. * We use the mod time of the application directory to decide if * the application has changed. If it has changed, we also send * any of the generated content. */ private void synchronizeApplications(Payload.Outbound payload, Server server, SyncRequest sr) throws URISyntaxException { if (logger.isLoggable(Level.FINER)) logger.finer("ServerSynchronizer: " + "synchronize application instance " + sr.instance); Map<String, Application> apps = getApps(server); File appsDir = env.getApplicationRepositoryPath(); for (ModTime mt : sr.files) { if (apps.containsKey(mt.name)) { syncApp(apps.get(mt.name), appsDir, mt, payload); // if client has app, remove it from set apps.remove(mt.name); } else removeApp(apps.get(mt.name), appsDir, mt, payload); } // now do all the remaining apps the client doesn't have for (Map.Entry<String, Application> e : apps.entrySet()) syncApp(e.getValue(), appsDir, new ModTime(e.getKey(), 0), payload); }
/** * Synchronize all the applications in the applications directory. * We use the mod time of the application directory to decide if * the application has changed. If it has changed, we also send * any of the generated content. */ private void synchronizeApplications(Payload.Outbound payload, Server server, SyncRequest sr) throws URISyntaxException { logger.finer("ServerSynchronizer: synchronize application instance " + sr.instance); Map<String, Application> apps = getApps(server); File appsDir = env.getApplicationRepositoryPath(); for (ModTime mt : sr.files) { if (apps.containsKey(mt.name)) { syncApp(apps.get(mt.name), appsDir, mt, payload); // if client has app, remove it from set apps.remove(mt.name); } else removeApp(apps.get(mt.name), appsDir, mt, payload); } // now do all the remaining apps the client doesn't have for (Map.Entry<String, Application> e : apps.entrySet()) syncApp(e.getValue(), appsDir, new ModTime(e.getKey(), 0), payload); }
ServerEnvironment se = wscImpl.getHabitat().getByContract(ServerEnvironment.class); File appFile = new File(se.getApplicationRepositoryPath(),serviceRef.getBundleDescriptor().getApplication().getAppName()); if (appFile.exists()) { retVal = new File(appFile,serviceRef.getWsdlFileUri()).toURL();
private void cleanupLeftOverDirectories() { env.getApplicationRepositoryPath(), J2EE_APPS); FileUtils.whack(oldJ2eeAppsRepository); File oldJ2eeModulesRepository = new File( env.getApplicationRepositoryPath(), J2EE_MODULES); FileUtils.whack(oldJ2eeModulesRepository);
File webInf = new File(instance.getApplicationRepositoryPath(), repositoryBitName+"/WEB-INF"); webInf.mkdirs(); webXml = new File(webInf, "web.xml");
FileUtils.whack(new File(env.getApplicationRepositoryPath(), VersioningUtils.getRepositoryName(name)));
_modulesRoot = instance.getApplicationRepositoryPath();
final File reposDir = new File(env.getApplicationRepositoryPath(), VersioningUtils.getRepositoryName(name)); if (reposDir.exists()) { for (int i=0 ; i<domain.getApplications().getApplications().size() ; i++) {
final File reposDir = new File(env.getApplicationRepositoryPath(), VersioningUtils.getRepositoryName(name)); if (reposDir.exists()) {