Examples of Launcher


Examples of org.apache.tuscany.sca.runtime.Launcher

    }

    public void setUp() throws URISyntaxException {
        URL propsURL = getClass().getClassLoader().getResource("repo/tuscany.properties");
        repo = new File(propsURL.toURI()).getParentFile();
        launcher = new Launcher(repo);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.Launcher

        Wrapper wrapper = new TuscanyWrapper(s);
        wrapper.setName("TuscanyServlet");
        tc.addChild(wrapper);
        tc.addServletMapping("/*", "TuscanyServlet", true);

        Launcher launcher = new Launcher(new File(REPO));

        return launcher;
    }
View Full Code Here

Examples of org.apache.uima.ducc.agent.launcher.Launcher

    }
    return ni;
  }

  private Launcher launcher() {
    return new Launcher();
  }
View Full Code Here

Examples of org.jacorb.test.common.launch.Launcher

            String outDir = System.getProperty("jacorb.test.outdir");
            serverProperties.put ("emma.coverage.out.file", outDir + "/coverage-server.ec");
            serverProperties.put("emma.verbosity.level", System.getProperty("emma.verbosity.level", "quiet") );
        }

        final Launcher launcher = JacORBLauncher.getLauncher (serverVersion,
                    coverage,
                    System.getProperty("java.class.path"),
                    serverProperties,
                    getTestServerMain(),
                    getServerArgs());

        serverProcess = launcher.launch();

        // add a shutdown hook to ensure that the server process
        // is shutdown even if this JVM is going down unexpectedly
        Runtime.getRuntime().addShutdownHook(new ProcessShutdown(serverProcess));
View Full Code Here

Examples of org.jacorb.test.harness.launch.Launcher

            String propName = key.substring(prefix.length());

            serverProperties.setProperty(propName, value);
        }

        final Launcher launcher = getLauncher(System.getProperty("java.class.path"),
                                        serverProperties,
                                        getTestServerMain(),
                                        serverArgs.toArray(new String[serverArgs.size()]));

        serverProcess = launcher.launch();

        // add a shutdown hook to ensure that the server process
        // is shutdown even if this JVM is going down unexpectedly
        Runtime.getRuntime().addShutdownHook(new ProcessShutdown(serverProcess));
View Full Code Here

Examples of org.jacorb.test.harness.launch.Launcher

            }
        }

        try
        {
            Launcher launcher = new Launcher();

            launcher.setClasspath(classpath);
            launcher.setMainClass(mainClass);
            launcher.setArgs(processArgs);
            launcher.setVmArgs(jvmArgs);

            if (home != null)
            {
                launcher.setJacorbHome(new File(home));
            }
            launcher.setProperties(props);

            launcher.init();

            return launcher;
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.sonatype.nexus.bootstrap.Launcher

    final String basePath = bundleContext.getProperty("nexus-base");
    final String args = bundleContext.getProperty("nexus-args");

    MDC.put("userId", SYSTEM_USERID);
    server = new Launcher(basePath, null, null, args.split(","));
    server.startAsync();
  }
View Full Code Here

Examples of org.spoutcraft.launcher.api.Launcher

    // Set up the launcher and load login frame
    LoginFrame frame = new MetroLoginFrame();

    try {
      @SuppressWarnings("unused")
      Launcher launcher = new Launcher(new GameUpdater(), new GameLauncher(), frame);
    } catch (IOException failure) {
      failure.printStackTrace();
      ErrorDialog dialog = new ErrorDialog(frame, failure);
      splash.dispose();
      frame.setVisible(true);
View Full Code Here

Examples of winstone.Launcher

        args.put("ajp13Port", "-1");
        args.put("controlPort", "-1");
        args.put("debug", "8");
        args.put("logThrowingLineNo", "true");
        Logger.init(Logger.FULL_DEBUG, System.out, true);
        Launcher winstone = new Launcher(args);

        // Check for a simple connection
        WebConversation wc = new WebConversation();
        WebRequest wreq = new GetMethodWebRequest(
                "http://localhost:10003/examples/CountRequestsServlet");
        WebResponse wresp = wc.getResponse(wreq);
        InputStream content = wresp.getInputStream();
        assertTrue("Loading CountRequestsServlet", content.available() > 0);
        content.close();
        winstone.shutdown();
        Thread.sleep(500);
    }
View Full Code Here

Examples of winstone.Launcher

        args.put("ajp13Port", "-1");
        args.put("controlPort", "-1");
        args.put("debug", "8");
        args.put("logThrowingLineNo", "true");
        Logger.init(Logger.FULL_DEBUG, System.out, true);
        Launcher winstone = new Launcher(args);

        // Check for a simple connection
        WebConversation wc = new WebConversation();
        WebRequest wreq = new GetMethodWebRequest(
                "http://localhost:10004/examples/CountRequestsServlet");
        WebResponse wresp1 = wc.getResponse(wreq);
        WebImage img[] = wresp1.getImages();
        for (int n = 0; n < img.length; n++)
            wc.getResponse(img[n].getRequest());
        // Thread.sleep(2000);
        // WebResponse wresp2 = wc.getResponse(wreq);
        // Thread.sleep(2000);
        //WebResponse wresp3 = wc.getResponse(wreq);
        InputStream content = wresp1.getInputStream();
        assertTrue("Loading CountRequestsServlet + child images", content
                .available() > 0);
        content.close();
        winstone.shutdown();
        Thread.sleep(500);
    }
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.