buildframework/helium/tools/common/bin/CheckTools.java
branchwip
changeset 380 db59fc762214
parent 179 d8ac696cc51f
equal deleted inserted replaced
369:1248e8f6a72d 380:db59fc762214
    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")))