X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=osgi%2Fruntime%2Forg.argeo.osgi.boot%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fosgi%2Fboot%2FOsgiBoot.java;h=6b51038718bb28e35cd14b830c56ded2669e1506;hb=c3f8e165014d2ef6ecec57c44a59e816791db01d;hp=94fccdcee2058cfa913c3f5f97194a8aaeb98175;hpb=aacd48dc5f6d3e748e9dd8058b19beac5b367939;p=lgpl%2Fargeo-commons.git diff --git a/osgi/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java b/osgi/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java index 94fccdcee..6b5103871 100644 --- a/osgi/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java +++ b/osgi/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/osgi/boot/OsgiBoot.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Mathieu Baudier + * Copyright (C) 2007-2012 Mathieu Baudier * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.argeo.osgi.boot; import java.io.BufferedReader; @@ -636,10 +635,11 @@ public class OsgiBoot { File baseDir = new File(base.replace('/', File.separatorChar)); File[] files = baseDir.listFiles(); - if (files == null && debug) { - OsgiBootUtils.warn("Base dir " + baseDir - + " has no children, exists=" + baseDir.exists() - + ", isDirectory=" + baseDir.isDirectory()); + if (files == null) { + if (debug) + OsgiBootUtils.warn("Base dir " + baseDir + + " has no children, exists=" + baseDir.exists() + + ", isDirectory=" + baseDir.isDirectory()); return; }