From 85486cff5428d17bf30fffcb6c6d722180796969 Mon Sep 17 00:00:00 2001 From: Kenneth Lausdahl Date: Thu, 11 Apr 2024 11:51:46 +0200 Subject: [PATCH] moved pre-build test models to github as a release --- .../test/java/org/intocps/maestro/OnlineTestUtils.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/maestro/src/test/java/org/intocps/maestro/OnlineTestUtils.java b/maestro/src/test/java/org/intocps/maestro/OnlineTestUtils.java index 61e7b2804..07d319afd 100644 --- a/maestro/src/test/java/org/intocps/maestro/OnlineTestUtils.java +++ b/maestro/src/test/java/org/intocps/maestro/OnlineTestUtils.java @@ -17,7 +17,7 @@ public class OnlineTestUtils { - public final static String baseDownloadUrl = "https://overture.au.dk/into-cps/examples/public-coe-test-fmus/latest/"; + public final static String baseDownloadUrl = "https://github.com/INTO-CPS-Association/maestro/releases/download/OnlineTestModels/"; final static String prefix = "/online-models"; public static void download(List urls) throws IOException { @@ -27,8 +27,11 @@ public static void download(List urls) throws IOException { file = file.substring(file.lastIndexOf('/') + 1); File destination = new File("target/online-cache/" + file); if (!destination.exists()) { - System.out.println("Downloading: " + url + " as: " + destination); - FileUtils.copyURLToFile(url, destination); + + URL zipNameUrl =new URL( url.toString().replace(".fmu",".zip")); + + System.out.println("Downloading: " + zipNameUrl + " as: " + destination); + FileUtils.copyURLToFile(zipNameUrl, destination); } else { System.out.println("Skipped - Downloading: " + url + " as: " + destination); }