public String getDirectoryDeployed(String moduleID) { ApplicationName module = getModule(moduleID); if (module == null) { return null; } if (module instanceof Application) { return ((Application)module).getDirectoryDeployed(); } else { return null; } }
public static Properties getDeployProperties(Application instance) { Properties deploymentProps = new Properties(); for (Property prop : instance.getProperty()) { deploymentProps.put(prop.getName(), prop.getValue()); } deploymentProps.setProperty(ServerTags.OBJECT_TYPE, instance.getObjectType()); if (instance.getContextRoot() != null) { deploymentProps.setProperty(ServerTags.CONTEXT_ROOT, instance.getContextRoot()); } if (instance.getDirectoryDeployed() != null) { deploymentProps.setProperty(ServerTags.DIRECTORY_DEPLOYED, instance.getDirectoryDeployed()); } return deploymentProps; }
public static Properties getDeployProperties(Application instance) { Properties deploymentProps = new Properties(); for (Property prop : instance.getProperty()) { if (prop.getValue() != null) { deploymentProps.put(prop.getName(), prop.getValue()); } } if (instance.getObjectType() != null) { deploymentProps.setProperty(ServerTags.OBJECT_TYPE, instance.getObjectType()); } if (instance.getContextRoot() != null) { deploymentProps.setProperty(ServerTags.CONTEXT_ROOT, instance.getContextRoot()); } if (instance.getDirectoryDeployed() != null) { deploymentProps.setProperty(ServerTags.DIRECTORY_DEPLOYED, instance.getDirectoryDeployed()); } return deploymentProps; }
/** * Get the applications that should be * available to the specified server instance. */ private Map<String, Application> getApps(Server server) { /* if (syncAllApps) return getAllApps(); */ Map<String, Application> apps = new HashMap<String, Application>(); if (applications == null) return apps; // no apps // all apps are under <server>, even in a cluster for (ApplicationRef ref : server.getApplicationRef()) { Application app = applications.getApplication(ref.getRef()); if (app != null) { if (logger.isLoggable(Level.FINEST)) logger.finest("ServerSynchronizer: got app " + app.getName()); if (Boolean.parseBoolean(app.getDirectoryDeployed())) { if (logger.isLoggable(Level.FINEST)) logger.finest("ServerSynchronizer: " + "skipping directory deployed app: " + app.getName()); } else apps.put(VersioningUtils.getRepositoryName(app.getName()), app); } } return apps; }
/** * Get the applications that should be * available to the specified server instance. */ private Map<String, Application> getApps(Server server) { /* if (syncAllApps) return getAllApps(); */ Map<String, Application> apps = new HashMap<String, Application>(); if (applications == null) return apps; // no apps // all apps are under <server>, even in a cluster for (ApplicationRef ref : server.getApplicationRef()) { Application app = applications.getApplication(ref.getRef()); if (app != null) { logger.finest("ServerSynchronizer: got app " + app.getName()); if (Boolean.parseBoolean(app.getDirectoryDeployed())) logger.finest("ServerSynchronizer: skipping directory " + "deployed app: " + app.getName()); else apps.put(VersioningUtils.getRepositoryName(app.getName()), app); } } return apps; }
if (! Boolean.valueOf(app.getDirectoryDeployed())) { File repackagedFile = null; try {
public static String getDirectoryDeployed(String moduleID) { ApplicationName module = getModule(moduleID); if (module == null) { return null; } if (module instanceof Application) { return ((Application)module).getDirectoryDeployed(); } else if (module instanceof WebModule) { return ((WebModule)module).getDirectoryDeployed(); } else if (module instanceof EjbModule) { return ((EjbModule)module).getDirectoryDeployed(); } else if (module instanceof ConnectorModule) { return ((ConnectorModule)module).getDirectoryDeployed(); } else if (module instanceof AppclientModule) { return ((AppclientModule)module).getDirectoryDeployed(); } else if (module instanceof J2eeApplication) { return ((J2eeApplication)module).getDirectoryDeployed(); } else { return null; } }
isDirectoryDeployed = Boolean.valueOf(application.getDirectoryDeployed());
if (!Boolean.valueOf(application.getDirectoryDeployed()) && source.exists()) { FileUtils.whack(new File(source.getURI()));