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

Add environment variable to launch fitnesse with specific java version

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Activity

          xblond Xavier Blond created issue -
          antoine_aumjaud Antoine Aumjaud made changes -
          Field Original Value New Value
          Assignee Antoine Aumjaud [ antoine_aumjaud ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          antoine_aumjaud Antoine Aumjaud made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 145075 ] JNJira + In-Review [ 205990 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: