Package org.platformlayer.ops.java

Examples of org.platformlayer.ops.java.JavaCommandBuilder.addArgument()


    JavaCommandBuilder command = new JavaCommandBuilder();
    command.addClasspathFolder(getInstallDir());
    command.addDefine("jetty.home", getBaseDir());
    command.addDefine("java.io.tmpdir", "/tmp");
    command.setJar(new File(getBaseDir(), "start.jar"));
    command.addArgument(Argument.buildLiteral("--pre=etc/jetty-logging.xml"));
    return command.get();
  }

  @Override
  protected Map<String, String> getConfigurationProperties() throws OpsException {
View Full Code Here


    command.setMainClass("org.platformlayer.xaas.web.StandaloneXaasWebserver");

    command.addDefine("conf", getConfigurationFile());

    command.addArgument(Argument.buildFile(getRootWar()));

    return command.get();
  }

  public File getRootWar() {
View Full Code Here

  @Override
  protected Command getCommand() throws OpsException {
    JavaCommandBuilder builder = new JavaCommandBuilder();
    builder.setMainClass("org.apache.zookeeper.server.quorum.QuorumPeerMain");
    builder.addArgument(Argument.buildFile(getConfigurationFile()));
    builder.addClasspath(getInstanceDir(), false);
    builder.addClasspathFolder(getBaseDir());
    builder.addClasspathFolder(new File(getBaseDir(), "lib"));

    return builder.get();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.