/** * Execute the application defined by the specified {@link SimpleApplicationSchema}. * * @param schema the {@link SimpleApplicationSchema} defining the application to execute */ protected void execute(SimpleApplicationSchema schema) { LocalPlatform platform = LocalPlatform.getInstance(); try (Application application = platform.realize("Vagrant", schema, new SystemApplicationConsole())) { application.waitFor(); } catch (Exception e) { throw new RuntimeException("Error executing Vagrant command", e); } }
Application application = platform.realize("Vagrant", schema, console)) application.waitFor(); application.close();