Improve logging
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 6 Mar 2024 07:07:04 +0000 (08:07 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 6 Mar 2024 07:07:04 +0000 (08:07 +0100)
src/org/argeo/build/Make.java

index 34477cf7639ebcc22ec2800c81a7aaa86479c830..376a66db42e01abd4990bc515e1850d29f40be99 100644 (file)
@@ -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<String, List<String>> options, boolean uninstall) throws IOException {
                // check arguments
                List<String> bundles = options.get("--bundles");
@@ -329,9 +329,9 @@ public class Make {
                List<String> 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);