Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14439

Add environment variable to launch fitnesse with specific java version

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • fitnesse-plugin
    • None

      In class FitnesseExecutor.java,

      it could be nice to add the possibility to specify a FIT_JAVA_HOME to start fitnesse with a specific java version.

      It could look like something like this :

      public ArrayList<String> getJavaCmd(FilePath workingDirectory, EnvVars envVars) {
      String java = "java";
      if(envVars.containsKey("FIT_JAVA_HOME"))
      java = new File(new File(envVars.get("FIT_JAVA_HOME"), "bin"), java).getAbsolutePath();
      else if (envVars.containsKey("JAVA_HOME"))
      java = new File(new File(envVars.get("JAVA_HOME"), "bin"), java).getAbsolutePath();

      Very useful if you want to test a project build with maven and java 5

            antoine_aumjaud Antoine Aumjaud
            xblond Xavier Blond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: