Package org.platformlayer.ops.java

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


    // /usr/bin/java -Djetty.home=/var/jetty/default -Djava.io.tmpdir=/tmp -jar /var/jetty/default/start.jar
    // --pre=etc/jetty-logging.xml

    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();
  }
View Full Code Here


    // --pre=etc/jetty-logging.xml

    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();
  }
View Full Code Here

    JavaCommandBuilder command = new JavaCommandBuilder();
    command.addClasspathFolder(getInstallDir());
    // command.addDefine("logback.configurationFile", getLogConfigurationFile());
    command.setMainClass("org.openstack.keystone.server.KeystoneUserServer");

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

    return command.get();
  }

  @Override
View Full Code Here

    command.addClasspathFolder(getInstallDir());
    command.addClasspathFolder(getServicesPath());

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

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

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

    return command.get();
  }
View Full Code Here

    JavaCommandBuilder command = new JavaCommandBuilder();
    command.addClasspathFolder(getInstallDir());
    // command.addDefine("logback.configurationFile", getLogConfigurationFile());
    command.setMainClass("org.openstack.keystone.server.KeystoneAdminServer");

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

    return command.get();
  }

  @Override
View Full Code Here

  @Override
  protected Command getCommand() throws OpsException {
    JavaCommandBuilder command = new JavaCommandBuilder();
    command.addClasspathFolder(getInstallDir());
    command.setMainClass("com.fathomdb.dns.server.DnsServer");
    command.addDefine("logback.configurationFile", getLogConfigurationPath());

    return command.get();
  }

  @Override
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.