io.vertx.core.Launcher Java Examples
The following examples show how to use
io.vertx.core.Launcher.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DescriptorTest.java From vertx-stack with Apache License 2.0 | 6 votes |
@Test public void testResolutionWithDefaultDescriptorInVertxHome() { File home = new File("target/home"); home.mkdirs(); System.setProperty("vertx.home", home.getAbsolutePath()); FileUtils.copyFile(new File("src/test/resources/stacks/core-with-system-variable.json"), new File(home, "vertx-stack.json")); List<String> args = new ArrayList<>(); args.add("resolve"); args.add("-Dvertx.version=3.1.0"); Launcher.main(args.toArray(new String[args.size()])); assertThat(new File(home, "lib/vertx-core-3.1.0.jar")).isFile(); System.clearProperty("vertx.home"); }
Example #2
Source File: MainLauncher.java From AlipayWechatPlatform with GNU General Public License v3.0 | 5 votes |
public static void main(String[] args) { //Force to use slf4j DefaultChannelId.newInstance(); System.setProperty("vertx.logger-delegate-factory-class-name", "io.vertx.core.logging.SLF4JLogDelegateFactory"); String[] finalArgs = new String[3 + args.length]; System.arraycopy(new String[]{"run", "com.turingdi.awp.verticle.MainVerticle", "-conf"}, 0, finalArgs, 0, 3); System.arraycopy(args, 0, finalArgs, 3, args.length); new Launcher().dispatch(finalArgs); }
Example #3
Source File: DescriptorTest.java From vertx-stack with Apache License 2.0 | 5 votes |
@Test public void testResolutionOfCoreUsingSystemVariable() { List<String> args = new ArrayList<>(); args.add("resolve"); args.add("--dir=" + root.getAbsolutePath()); args.add("-Dvertx.version=3.1.0"); args.add(new File("src/test/resources/stacks/core-with-system-variable.json").getAbsolutePath()); Launcher.main(args.toArray(new String[args.size()])); assertThat(new File(root, "vertx-core-3.1.0.jar")).isFile(); }
Example #4
Source File: DescriptorTest.java From vertx-stack with Apache License 2.0 | 5 votes |
@Test public void testResolutionWithDefaultDescriptor() { File defaultStack = new File("vertx-stack.json"); FileUtils.copyFile(new File("src/test/resources/stacks/core-with-system-variable.json"), defaultStack); List<String> args = new ArrayList<>(); args.add("resolve"); args.add("--dir=" + root.getAbsolutePath()); args.add("-Dvertx.version=3.1.0"); Launcher.main(args.toArray(new String[args.size()])); assertThat(new File(root, "vertx-core-3.1.0.jar")).isFile(); defaultStack.delete(); }
Example #5
Source File: MyLauncher.java From vertx-maven-plugin with Apache License 2.0 | 4 votes |
public static void main(String[] args) { new Launcher().dispatch(args); System.exit(0); }
Example #6
Source File: MyLauncher.java From vertx-maven-plugin with Apache License 2.0 | 4 votes |
public static void main(String[] args) { new Launcher().dispatch(args); System.exit(0); }
Example #7
Source File: VertxDemoApp.java From Hands-On-Reactive-Programming-in-Spring-5 with MIT License | 4 votes |
public static void main(final String[] args) { Launcher.executeCommand("run", VertxDemoApp.class.getName()); }
Example #8
Source File: MyLauncher.java From vertx-maven-plugin with Apache License 2.0 | 4 votes |
public static void main(String[] args) { new Launcher().dispatch(args); System.exit(0); }
Example #9
Source File: MyLauncher.java From vertx-maven-plugin with Apache License 2.0 | 4 votes |
public static void main(String[] args) { new Launcher().dispatch(args); System.exit(0); }