Merge tag 'v2.3.28' into testing
[lgpl/argeo-commons.git] / org.argeo.init / src / org / argeo / init / osgi / BundlesSet.java
index 863ee00841f335957baa25d8fbac2448eed2d977..6a13e6749b04e1e2817673173167ebfc8dfcc2d7 100644 (file)
@@ -1,13 +1,18 @@
 package org.argeo.init.osgi;
 
+import static java.lang.System.Logger.Level.TRACE;
+
 import java.io.File;
 import java.io.IOException;
+import java.lang.System.Logger;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.StringTokenizer;
 
 /** Intermediary structure used by path matching */
 class BundlesSet {
+       private final static Logger logger = System.getLogger(BundlesSet.class.getName());
+
        private String baseUrl = "reference:file";// not used yet
        private final String dir;
        private List<String> includes = new ArrayList<String>();
@@ -25,8 +30,7 @@ class BundlesSet {
                                dirPath = dirPath.substring("file:".length());
 
                        dir = new File(dirPath.replace('/', File.separatorChar)).getCanonicalPath();
-                       if (OsgiBootUtils.isDebug())
-                               OsgiBootUtils.debug("Base dir: " + dir);
+                       logger.log(TRACE, () -> "Base dir: " + dir);
                } catch (IOException e) {
                        throw new RuntimeException("Cannot convert to absolute path", e);
                }