Package org.eclipse.jdt.launching

Examples of org.eclipse.jdt.launching.ExecutionArguments


        String[] envp = DebugPlugin.getDefault().getLaunchManager().getEnvironment(configuration);

        // Program & VM args (and set Prose path property)
        String pgmArgs = getProgramArguments(configuration);
        String vmArgs = getVMArguments(configuration);
        ExecutionArguments execArgs = new ExecutionArguments(vmArgs, pgmArgs);

        // VM-specific attributes
        Map vmAttributesMap = getVMSpecificAttributesMap(configuration);

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

        // Create VM config
        VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainTypeName, classpath);
        runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
        runConfig.setEnvironment(envp);
        runConfig.setVMArguments(execArgs.getVMArgumentsArray());
        runConfig.setWorkingDirectory(workingDirName);
        runConfig.setVMSpecificAttributesMap(vmAttributesMap);

        // Bootpath
        runConfig.setBootClassPath(getBootpath(configuration));
View Full Code Here


    {

        // add program & VM arguments provided by getProgramArguments and getVMArguments
        String pgmArgs = getProgramArguments(configuration);
        String vmArgs = getVMArguments(configuration);
        ExecutionArguments execArgs = new ExecutionArguments(vmArgs, pgmArgs);
        vmArguments.addAll(Arrays.asList(execArgs.getVMArgumentsArray()));
        programArguments.addAll(Arrays.asList(execArgs.getProgramArgumentsArray()));

        String testFailureNames = configuration.getAttribute(JUnitLaunchConfigurationConstants.ATTR_FAILURES_NAMES, ""); //$NON-NLS-1$

        programArguments.add("-version"); //$NON-NLS-1$
        programArguments.add("3"); //$NON-NLS-1$
View Full Code Here

    String[] envp= getEnvironment(configuration);
   
    // Program & VM args
    String pgmArgs = getBehaviorLocator(configuration);
    String vmArgs = getVMArguments(configuration);
    ExecutionArguments execArgs = new ExecutionArguments(vmArgs, pgmArgs);
   
    // VM-specific attributes
    Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
   
    // Classpath
    String[] classpath = getClasspath(configuration);
   
    // Create VM config
    VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainTypeName, classpath);
    runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
    runConfig.setEnvironment(envp);
    runConfig.setVMArguments(execArgs.getVMArgumentsArray());
    runConfig.setWorkingDirectory(workingDirName);
    runConfig.setVMSpecificAttributesMap(vmAttributesMap);

    // Bootpath
    runConfig.setBootClassPath(getBootpath(configuration));
View Full Code Here

    if (workingDir != null)
      workingDirName = workingDir.getAbsolutePath();
   
    // Program & VM args
    String vmArgs = getVMArguments(configuration);
    ExecutionArguments execArgs = new ExecutionArguments(vmArgs, "");
    String[] envp = DebugPlugin.getDefault().getLaunchManager().getEnvironment(configuration);
   
    // copy jar files which are required to execute JavaScript
    JavaScriptLaunchUtil.copyLibraries();
   
    VMRunnerConfiguration runConfig = new VMRunnerConfiguration(
        JavaScriptLaunchConstants.JAVASCRIPT_EXECUTOR,
        JavaScriptLaunchUtil.getClassPathAsStringArray());
   
    List args = new ArrayList();
   
    String script = configuration.getAttribute(
        JavaScriptLaunchConstants.ATTR_JAVASCRIPT_FILE, "");
    args.add(fixArgument(script));
   
    List includes = configuration.getAttribute(
        JavaScriptLaunchConstants.ATTR_JAVASCRIPT_INCLUDES, Collections.EMPTY_LIST);
    IWorkspaceRoot wsroot = ResourcesPlugin.getWorkspace().getRoot();
   
    for(int i=0;i<includes.size();i++){
      String include = (String)includes.get(i);
      if(include.startsWith(JavaScriptLibraryTable.PREFIX)){
        IResource resource = wsroot.findMember(include.substring(JavaScriptLibraryTable.PREFIX.length()));
        if(resource!=null && resource instanceof IFile && resource.exists()){
          args.add(fixArgument(((IFile)resource).getLocation().toString()));
        }
      } else {
        args.add(fixArgument(include));
      }
    }
   
    runConfig.setVMArguments(execArgs.getVMArgumentsArray());
    runConfig.setProgramArguments((String[])args.toArray(new String[args.size()]));
    runConfig.setWorkingDirectory(workingDirName);
    runConfig.setEnvironment(envp);
   
    Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
View Full Code Here

        // Verify the configuration
        String mainTypeName = verifyMainTypeName(configuration);
        IVMInstall vm = verifyVMInstall(configuration);
        IVMRunner runner = vm.getVMRunner(mode);

        ExecutionArguments execArgs =
            new ExecutionArguments(getVMArguments(configuration), getProgramArguments(configuration));
        Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
        String[] classpath = getClasspath(configuration);

        File workingDir = verifyWorkingDirectory(configuration);
        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!!
View Full Code Here

        // Verify the configuration
        String mainTypeName = verifyMainTypeName(configuration);
        IVMInstall vm = verifyVMInstall(configuration);
        IVMRunner runner = vm.getVMRunner(mode);

        ExecutionArguments execArgs =
            new ExecutionArguments(getVMArguments(configuration), getProgramArguments(configuration));
        Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
        String[] classpath = getClasspath(configuration);

        File workingDir = verifyWorkingDirectory(configuration);
        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!!
View Full Code Here

        // Verify the configuration
        String mainTypeName = verifyMainTypeName(configuration);
        IVMInstall vm = verifyVMInstall(configuration);
        IVMRunner runner = vm.getVMRunner(mode);

        ExecutionArguments execArgs =
            new ExecutionArguments(getVMArguments(configuration), getProgramArguments(configuration));
        Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
        String[] classpath = getClasspath(configuration);

        File workingDir = verifyWorkingDirectory(configuration);
        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!!
View Full Code Here

      // Program & VM args
      String pgmArgs = getProgramArguments(configuration);
      String vmArgs = getVMArguments(configuration);
      String[] envp = getEnvironment(configuration);
     
      ExecutionArguments execArgs = new ExecutionArguments(vmArgs, pgmArgs);

      // VM-specific attributes
      Map vmAttributesMap = getVMSpecificAttributesMap(configuration);

      // 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
View Full Code Here

    try {
      monitor.subTask("verifying installation");

      // Program & VM arguments
      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));
View Full Code Here

    try {
      monitor.subTask("verifying installation");

      // Program & VM arguments
      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));

      // 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));
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.launching.ExecutionArguments

Copyright © 2018 www.massapicom. 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.