Examples of VMRunnerConfiguration


Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

        String workingDirName = null;
        if (workingDir != null)
            workingDirName = workingDir.getAbsolutePath();

        // Create a VM runner configuration
        VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainTypeName, classpath);
        runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
        runConfig.setVMArguments(execArgs.getVMArgumentsArray());
        runConfig.setVMSpecificAttributesMap(vmAttributesMap);
        runConfig.setWorkingDirectory(workingDirName);
        runConfig.setBootClassPath(getBootpath(configuration));

        // Run!!
        runner.run(runConfig, launch, monitor);
    }
View Full Code Here

Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

      // Classpath
      String[] classpath = getClasspath(configuration);

      // Create VM config
      VMRunnerConfiguration runConfig = new VMRunnerConfiguration(
          mainTypeName, classpath);
      runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
      runConfig.setVMArguments(execArgs.getVMArgumentsArray());
      runConfig.setWorkingDirectory(workingDirName);
      runConfig.setEnvironment(envp);
      runConfig.setVMSpecificAttributesMap(vmAttributesMap);
     
      // Bootpath
      String[] bootpath = getBootpath(configuration);
      if (bootpath != null && bootpath.length > 0)
        runConfig.setBootClassPath(bootpath);
     
      setDefaultSourceLocator(launch, configuration);
     
      if (ILaunchManager.PROFILE_MODE.equals(mode)) {
        try {
View Full Code Here

Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

      ExecutionArguments execArgs = new ExecutionArguments(getVMArguments(configuration),
          getProgramArguments(configuration));

      // Create VM configuration
      //here the classpath means for the Jetty Server , not for the application! by TonyQ 2011/3/7
      VMRunnerConfiguration runConfig = new VMRunnerConfiguration(
          Plugin.BOOTSTRAP_CLASS_NAME , getJettyClasspath(configuration));
      runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());

      // Environment variables
      runConfig.setEnvironment(getEnvironment(configuration));

      //Here prepare the classpath is really for webapp in Runtime Arguments , too.
      runConfig.setVMArguments(getRuntimeArguments(configuration,execArgs.getVMArgumentsArray(),
          getWebappClasspath(configuration)));

      runConfig.setWorkingDirectory(getWorkingDirectoryAbsolutePath(configuration));
      runConfig.setVMSpecificAttributesMap(getVMSpecificAttributesMap(configuration));

      // Boot path
      runConfig.setBootClassPath(getBootpath(configuration));

      // check for cancellation
      if (monitor.isCanceled()) return;

      // stop in main
View Full Code Here

Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

          getProgramArguments(configuration));

      // Create VM configuration
      // here the classpath means for the Jetty Server , not for the
      // application! by TonyQ 2011/3/7
      VMRunnerConfiguration runConfig = new VMRunnerConfiguration(
          Plugin.BOOTSTRAP_CLASS_NAME,
          getJettyClasspath(configuration));

      // logger to list classpaths
      // for(String path:getJettyClasspath(configuration)){
      // System.out.println("path:"+path);
      // }
      runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());

      // Environment variables
      runConfig.setEnvironment(getEnvironment(configuration));

      boolean debug = ILaunchManager.DEBUG_MODE.equals(mode);
      // Here prepare the classpath is really for webapp in Runtime
      // Arguments , too.
      runConfig.setVMArguments(getRuntimeArguments(configuration,
          execArgs.getVMArgumentsArray(),debug));

      runConfig
          .setWorkingDirectory(getWorkingDirectoryAbsolutePath(configuration));
      runConfig
          .setVMSpecificAttributesMap(getVMSpecificAttributesMap(configuration));

      // Boot path
      runConfig.setBootClassPath(getBootpath(configuration));

      // check for cancellation
      if (monitor.isCanceled())
        return;
View Full Code Here

Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

       
        if (runner == null) {
            abort("Cannot initiate VM",
                    new RuntimeException("Cannot initiate VM"));
        }
        VMRunnerConfiguration mutantsConfig = createConfig(
                config, mode);
       
        setDefaultSourceLocator(launch, config);
        runner.run(mutantsConfig, launch, null);
       
View Full Code Here

Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

        String vmArgs = getVMArguments(configuration);
        ExecutionArguments execArgs = new ExecutionArguments(vmArgs, "");
        String[] envp = DebugPlugin.getDefault().getLaunchManager()
                .getEnvironment(configuration);

        VMRunnerConfiguration runConfig = createVM(configuration, mode);
       
        runConfig.setVMArguments(execArgs.getVMArgumentsArray());
        runConfig.setWorkingDirectory(workingDirName);
        runConfig.setEnvironment(envp);

        Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
        runConfig.setVMSpecificAttributesMap(vmAttributesMap);

        String[] bootpath = getBootpath(configuration);
        runConfig.setBootClassPath(bootpath);
       
        return runConfig;
    }
View Full Code Here

Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

   
    private VMRunnerConfiguration createVM(
            ILaunchConfiguration configuration, String runMode)
            throws CoreException {
        String[] classPath= createClassPath(configuration);
      VMRunnerConfiguration vmConfig = new VMRunnerConfiguration(
                CreateMutants.class.getName(),
                classPath);
     
      String mutants = configuration.getAttribute(
                MuClipseConstants.MUTANTS, "");
        String source = configuration.getAttribute(
                MuClipseConstants.SOURCE, "");
        String classes = configuration.getAttribute(
                MuClipseConstants.CLASSES, "");
        String tests = configuration.getAttribute(
                MuClipseConstants.TESTS, "NO TESTS");
        String classesMutate = configuration.getAttribute(
            MuClipseConstants.CLASSCHOICE, "");
       
        String projectName = configuration.getAttribute(
                IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
        String tradList =
          configuration.getAttribute(
            MuClipseConstants.TRAD_OPS, "");
        String classList =
         configuration.getAttribute(
            MuClipseConstants.CLASS_OPS, "");
       
        String[] args = new String[8];
        args[0] = composeFullName(projectName, "");
        args[1] = source;
        args[2] = classes;
        args[3] = mutants;
        args[4] = tests;
        args[5] = tradList;
        args[6] = classList;
        args[7] = classesMutate;
        vmConfig.setProgramArguments(args);
        return vmConfig;
    }
View Full Code Here

Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

       
        if (runner == null) {
            abort("Cannot initiate VM",
                    new RuntimeException("Cannot initiate VM"));
        }
        VMRunnerConfiguration muJavaConfig = createMuJavaConfig(
                config, mode);
       
        setDefaultSourceLocator(launch, config);
        runner.run(muJavaConfig, launch, null);
       
View Full Code Here

Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

        String vmArgs = getVMArguments(configuration);
        ExecutionArguments execArgs = new ExecutionArguments(vmArgs, "");
        String[] envp = DebugPlugin.getDefault().getLaunchManager()
                .getEnvironment(configuration);

        VMRunnerConfiguration runConfig = createVMmuJava(configuration, mode);
        runConfig.setVMArguments(execArgs.getVMArgumentsArray());
        runConfig.setWorkingDirectory(workingDirName);
        runConfig.setEnvironment(envp);

        Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
        runConfig.setVMSpecificAttributesMap(vmAttributesMap);

        String[] bootpath = getBootpath(configuration);
        runConfig.setBootClassPath(bootpath);

        return runConfig;
    }
View Full Code Here

Examples of org.eclipse.jdt.launching.VMRunnerConfiguration

   
    private VMRunnerConfiguration createVMmuJava(
            ILaunchConfiguration configuration, String runMode)
            throws CoreException {
      String[] classPath= createClassPath(configuration);
      VMRunnerConfiguration vmConfig = new VMRunnerConfiguration(
                RunTests.class.getName(),
                classPath);
      String mutants = configuration.getAttribute(
                MuClipseConstants.MUTANTS, "");
        String source = configuration.getAttribute(
                MuClipseConstants.SOURCE, "");
        String classes = configuration.getAttribute(
                MuClipseConstants.CLASSES, "");
        String tests = configuration.getAttribute(
                MuClipseConstants.TESTS, "");
        String whichTest = configuration.getAttribute(
            MuClipseConstants.WHICH_TEST, "");
        String classlist = configuration.getAttribute(
            MuClipseConstants.CLASSCHOICE, "");
        String timeout = "" + configuration.getAttribute(
            MuClipseConstants.TIMEOUT, 5000);
        String testlevel = "" + configuration.getAttribute(
            MuClipseConstants.TESTLEVEL, 3);
       
        String projectName = configuration.getAttribute(
                IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
       
        String[] args = new String[9];
        args[0] = composeFullName(projectName, "");
        args[1] = source;
        args[2] = classes;
        args[3] = mutants;
        args[4] = tests;
        args[5] = whichTest;
        args[6] = classlist;
        args[7] = timeout;
        args[8] = testlevel;
        vmConfig.setProgramArguments(args);
        return vmConfig;
    }
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.