Package org.eclipse.jdt.launching

Examples of org.eclipse.jdt.launching.ExecutionArguments


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

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


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

        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);
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

    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

    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

      String[] envp = getEnvironment(configuration);

      // Program & VM arguments
      String pgmArgs = getProgramArguments(configuration);
      String vmArgs = getVMArguments(configuration);
      ExecutionArguments execArgs = new ExecutionArguments(vmArgs, pgmArgs);

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

      // Class paths
      String[] classpath = getClasspath(configuration);
      String[] webAppClasspathArray = getProjectClasspath(configuration);
      String webAppClasspath = null;
      {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < webAppClasspathArray.length; i++) {
          String path = webAppClasspathArray[i];
          if (sb.length() > 0)
            sb.append(File.pathSeparator);
          sb.append(path);
        }
        webAppClasspath = sb.toString();
      }

      // Create VM configuration
      VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainTypeName,
          classpath);
      runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
      runConfig.setEnvironment(envp);

      List<String> runtimeVmArgs = getJettyArgs(configuration);
      runtimeVmArgs.add("-Drjrclasspath=" + webAppClasspath);
      runtimeVmArgs.addAll(Arrays.asList(execArgs.getVMArgumentsArray()));

      runConfig.setVMArguments(runtimeVmArgs.toArray(new String[runtimeVmArgs
          .size()]));
      runConfig.setWorkingDirectory(workingDirName);
      runConfig.setVMSpecificAttributesMap(vmAttributesMap);
View Full Code Here

      String[] envp = getEnvironment(configuration);

      // Program & VM arguments
      String pgmArgs = getProgramArguments(configuration);
      String vmArgs = getVMArguments(configuration);
      ExecutionArguments execArgs = new ExecutionArguments(vmArgs,
          pgmArgs);

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

      // Class paths
     
      //here the classpath means for the Jetty Server , not for the application! by TonyQ 2011/3/7
      String[] classpath = getClasspath(configuration);
     
     
      //here the classpath is really for web app.
      String[] webAppClasspathArray = getProjectClasspath(configuration);
      String webAppClasspath = null;
      {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < webAppClasspathArray.length; i++) {
          String path = webAppClasspathArray[i];
          if (sb.length() > 0)
            sb.append(File.pathSeparator);
          sb.append(path);
        }
        webAppClasspath = sb.toString();
      }

      // Create VM configuration
      VMRunnerConfiguration runConfig = new VMRunnerConfiguration(
          mainTypeName, classpath);
      runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
      runConfig.setEnvironment(envp);

      List<String> runtimeVmArgs = getJettyArgs(configuration);
      runtimeVmArgs.add("-Drjrclasspath=" + webAppClasspath);
      runtimeVmArgs.addAll(Arrays.asList(execArgs.getVMArgumentsArray()));

      runConfig.setVMArguments(runtimeVmArgs
          .toArray(new String[runtimeVmArgs.size()]));
      runConfig.setWorkingDirectory(workingDirName);
      runConfig.setVMSpecificAttributesMap(vmAttributesMap);
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

    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

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.