public Meecrowave deployClasspath() { return deployClasspath(""); }
public Meecrowave deployClasspath() { return deployClasspath(""); }
public Meecrowave deployClasspath(final String context) { return deployClasspath(new DeploymentMeta(context, null, null)); }
public Meecrowave bake(final String ctx) { start(); return deployClasspath(ctx); }
public Meecrowave bake(final String ctx) { start(); return deployClasspath(ctx); }
public Meecrowave deployClasspath(final String context) { return deployClasspath(new DeploymentMeta(context, null, null)); }
public Meecrowave bake(final Consumer<Context> customizer) { start(); return deployClasspath(new DeploymentMeta("", null, customizer)); }
public Meecrowave bake(final Consumer<Context> customizer) { start(); return deployClasspath(new DeploymentMeta("", null, customizer)); }
@Override protected AutoCloseable onStart() { final Meecrowave meecrowave = new Meecrowave(configuration); meecrowave.start(); meecrowave.deployClasspath(new Meecrowave.DeploymentMeta(context, docBase, customizer)); return meecrowave; } }
@Override protected AutoCloseable onStart() { final Meecrowave meecrowave = new Meecrowave(configuration); meecrowave.start(); meecrowave.deployClasspath(new Meecrowave.DeploymentMeta(context, docBase, customizer)); return meecrowave; } }
meecrowave.start(); if (war == null) { meecrowave.deployClasspath(new Meecrowave.DeploymentMeta( ctx, ofNullable(line.getOptionValue("docbase")).map(File::new).orElseGet(() ->
singletonList(jsContextCustomizer), "js", singletonMap("context", ctx))); if (useClasspathDeployment) { meecrowave.deployClasspath(deploymentMeta); } else { meecrowave.deployWebapp(deploymentMeta);
meecrowave.start(); if (war == null) { meecrowave.deployClasspath(new Meecrowave.DeploymentMeta( ctx, ofNullable(line.getOptionValue("docbase")).map(File::new).orElseGet(() ->
@Override public void run() { try { try (final Meecrowave meecrowave = new Meecrowave(create(args)) { @Override protected Connector createConnector() { return new Connector(CustomPefixHttp11NioProtocol.class.getName()); } }) { this.instance = meecrowave; meecrowave.start(); meecrowave.deployClasspath(new Meecrowave.DeploymentMeta("", null, stdCtx -> { stdCtx.setResources(new StandardRoot() { @Override protected void registerURLStreamHandlerFactory() { // no-op: not supported into OSGi since there is already one and it must set a // single time } }); })); doWait(meecrowave, null); } } catch (final Exception e) { throw new IllegalStateException(e); } }
new Thread(() -> { try (final Meecrowave meecrowave = new Meecrowave(Cli.create(buildArgs()))) { meecrowave.start().deployClasspath(new Meecrowave.DeploymentMeta("", null, stdCtx -> { stdCtx.setResources(new StandardRoot() {