public void clean() { // need to remove the generated directories... // need to remove generated/xml, generated/ejb, generated/jsp, // remove generated/xml File generatedXmlRoot = getScratchDir("xml"); FileUtils.whack(generatedXmlRoot); // remove generated/ejb File generatedEjbRoot = getScratchDir("ejb"); // recursively delete... FileUtils.whack(generatedEjbRoot); // remove generated/jsp File generatedJspRoot = getScratchDir("jsp"); // recursively delete... FileUtils.whack(generatedJspRoot); // remove the internal archive directory which holds the original // archive (and possibly deployment plan) that cluster sync can use FileUtils.whack(getAppInternalDir()); }
public void createDeploymentClassLoader(ClassLoaderHierarchy clh, ArchiveHandler handler) throws URISyntaxException, MalformedURLException { this.addTransientAppMetaData(ExtendedDeploymentContext.IS_TEMP_CLASSLOADER, Boolean.TRUE); this.sharableTemp = createClassLoader(clh, handler, null); }
private ClassLoader createClassLoader(ClassLoaderHierarchy clh, ArchiveHandler handler, String appName) throws URISyntaxException, MalformedURLException { // first we create the appLib class loader, this is non shared libraries class loader ClassLoader applibCL = clh.getAppLibClassLoader(appName, getAppLibs()); ClassLoader parentCL = clh.createApplicationParentCL(applibCL, this); return handler.getClassLoader(parentCL, this); }
ExtendedDeploymentContext deploymentContext = new DeploymentContextImpl(report, logger, null, commandParams, null);
@Override public File getScratchDir(String subDirName) { String modulePortion = Util.getURIName( getSource().getURI()); return (new File(super.getScratchDir(subDirName), modulePortion)); }
params = new DeployCommandParameters(); ExtendedDeploymentContext initialContext = new DeploymentContextImpl(report, archive, params, env); ArchiveHandler archiveHandler = null; try {
@Override public File getScratchDir(String subDirName) { String modulePortion = Util.getURIName( getSource().getURI()); return (new File(super.getScratchDir( subDirName), modulePortion)); } };
context = new DeploymentContextImpl(report, archive, parameters, env); context.setArchiveHandler(archiveHandler); String appName = archiveHandler.getDefaultApplicationName(archive, context);
public void createApplicationClassLoader(ClassLoaderHierarchy clh, ArchiveHandler handler) throws URISyntaxException, MalformedURLException { this.addTransientAppMetaData(ExtendedDeploymentContext.IS_TEMP_CLASSLOADER, Boolean.FALSE); this.cloader = createClassLoader(clh, handler, parameters.name()); }
initial = new DeploymentContextImpl(copy, env);
initial = new DeploymentContextImpl(copy, env);
commandParams.virtualservers = virtualservers; ExtendedDeploymentContext lifecycleContext = new DeploymentContextImpl(report, logger, null, commandParams, null); lifecycleContext.getAppProps().putAll(appprops);
ArchiveHandler handler = deployment.getArchiveHandler(sourceArchive); final String appName = handler.getDefaultApplicationName(sourceArchive); DeploymentContextImpl dummyContext = new DeploymentContextImpl(report, logger, sourceArchive, parameters, env); handler.expand(sourceArchive, archiveFactoryProvider.get().createArchive(tmpDir), dummyContext); sourceArchive =
commandParams.enabled = enabled; ExtendedDeploymentContext lifecycleContext = new DeploymentContextImpl(report, logger, null, commandParams, null); try { deployment.registerAppInDomainXML(null, lifecycleContext, t, true);
DeployCommandParameters parameters = archive.getParentArchive().getArchiveMetaData(DeploymentProperties.COMMAND_PARAMS, DeployCommandParameters.class); Properties appProps = archive.getParentArchive().getArchiveMetaData(DeploymentProperties.APP_PROPS, Properties.class); ExtendedDeploymentContext context = new DeploymentContextImpl(null, archive, parameters, habitat.<ServerEnvironment>getService(ServerEnvironment.class)); if (appProps != null) { context.getAppProps().putAll(appProps);
initialContext = new DeploymentContextImpl(report, archive, this, env); initialContext.setArchiveHandler(archiveHandler);
ExtendedDeploymentContext initialContext = new DeploymentContextImpl(report, logger, archive, this, env); if (tracing!=null) { initialContext.addModuleMetaData(tracing);