buildframework/helium/tools/common/bin/CheckTools.java
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
    26         try {
    26         try {
    27             Runtime runtime = Runtime.getRuntime();
    27             Runtime runtime = Runtime.getRuntime();
    28             
    28             
    29             Process toolProcess = runtime.exec("python -V");
    29             Process toolProcess = runtime.exec("python -V");
    30             InputStream err = toolProcess.getErrorStream();
    30             InputStream err = toolProcess.getErrorStream();
    31             if (!(toString(err).trim().startsWith("Python 2.5")))
    31             String output = toString(err).trim();
       
    32             if (!(output.startsWith("Python 2.5")) && !(output.startsWith("Python 2.6")))
    32             {
    33             {
    33                 System.out.println("Error: Python 2.5 not found");
    34                 System.out.println("Error: Python 2.5/2.6 not found");
    34                 System.out.println(err);
    35                 System.out.println(output);
    35             }
    36             }
    36             
    37             
    37             toolProcess = runtime.exec("java -version");
    38             toolProcess = runtime.exec("java -version");
    38             err = toolProcess.getErrorStream();
    39             err = toolProcess.getErrorStream();
    39             if (!(toString(err).trim().startsWith("java version \"1.6")))
    40             if (!(toString(err).trim().startsWith("java version \"1.6")))