logger.info("Launching {}", clz);
logger.info(" args: {}", args);
logger.info(" properties: {}", systemProperties);
logger.info(" classpath: {}", classpath);
SimpleJavaApplicationSchema schema = new SimpleJavaApplicationSchema(clz.getName(), classpath);
if (args != null) {
for (String arg : args) {
schema.addArgument(arg);
}
}
if (systemProperties != null) {
schema.setSystemProperties(new PropertiesBuilder(systemProperties));
}
NativeJavaApplicationBuilder<SimpleJavaApplication, SimpleJavaApplicationSchema> builder =
new NativeJavaApplicationBuilder<SimpleJavaApplication, SimpleJavaApplicationSchema>();
builder.setRemoteDebuggingEnabled(remoteDebug);