From: Mathieu Baudier Date: Wed, 6 Mar 2024 07:07:04 +0000 (+0100) Subject: Improve logging X-Git-Tag: v2.3.10~42 X-Git-Url: https://git.argeo.org/?p=cc0%2Fargeo-build.git;a=commitdiff_plain;h=c93dde36daee4ba0c9af11cc335498b5b09f7862 Improve logging --- diff --git a/src/org/argeo/build/Make.java b/src/org/argeo/build/Make.java index 34477cf..376a66d 100644 --- a/src/org/argeo/build/Make.java +++ b/src/org/argeo/build/Make.java @@ -312,7 +312,7 @@ public class Make { logger.log(DEBUG, "Packaging took " + duration + " ms"); } - /** Install the bundles. */ + /** Install or uninstall bundles and native output. */ void install(Map> options, boolean uninstall) throws IOException { // check arguments List bundles = options.get("--bundles"); @@ -329,9 +329,9 @@ public class Make { List targetDirs = options.get("--target"); Objects.requireNonNull(targetDirs, "--target argument must be set"); if (targetDirs.size() != 1) - throw new IllegalArgumentException("One and only one --target must be specified"); + throw new IllegalArgumentException("Only one --target must be specified"); Path targetA2 = Paths.get(targetDirs.get(0)); - logger.log(INFO, (uninstall ? "Uninstalling from " : "Installing to ") + targetA2); + logger.log(INFO, (uninstall ? "Uninstalling bundles from " : "Installing bundles to ") + targetA2); final String branch; Path branchMk = sdkSrcBase.resolve(BRANCH_MK);