Commit c6fb7160 authored by pierrehub2b's avatar pierrehub2b
Browse files

Update AtsLauncher.java

parent 22791672
......@@ -26,6 +26,8 @@ import java.util.zip.ZipInputStream;
public class AtsLauncher {
private static String atsToolsUrl = "http://www.actiontestscript.com";
private static String suiteFiles = "suite";
private static String reportLevel = "1";
private static void printLog(String data) {
System.out.println("[ATS-LAUNCHER] " + data);
......@@ -34,8 +36,6 @@ public class AtsLauncher {
public static void main(String[] args) throws IOException, InterruptedException {
boolean buildOnly = false;
String suiteFiles = "suite";
String reportLevel = "1";
for(int i=0; i<args.length; i++) {
if(args[i].startsWith("-buildEnvironment")) {
......@@ -58,6 +58,7 @@ public class AtsLauncher {
final Path atsFolder = Paths.get(System.getProperty("user.home"), ".actiontestscript");
final Path atsTools = atsFolder.resolve("tools");
printLog("Using ATS tools URL -> " + atsToolsUrl);
printLog("Using tools folder -> " + atsTools.toString());
List<String> envList = new ArrayList<String>();
......@@ -185,6 +186,10 @@ public class AtsLauncher {
final URLConnection connection = new URL(atsToolsUrl + "/tools/" + toolName + ".zip").openConnection();
final String lastModified = connection.getHeaderField("Last-Modified");
if(lastModified == null) {
throw new IOException("Unable to get ATS tools URL header field, maybe ATS host is not reachable !");
}
final String toolPath = checkTool(lastModified, atsTools, toolName);
if(toolPath != null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment