]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.osgiboot/src/main/java/org/argeo/slc/osgiboot/Activator.java
Do not use stderr on Windows
[gpl/argeo-slc.git] / runtime / org.argeo.slc.osgiboot / src / main / java / org / argeo / slc / osgiboot / Activator.java
index 56bcff5a6f242d231c0069e2a4358592dad69063..c5f23e5012aae2a76e0a01dfa95248359f2d7e92 100644 (file)
@@ -236,7 +236,7 @@ public class Activator implements BundleActivator {
                        }
 
                        for (File file : files)
-                                       match(matcher, matched, base, file.getName(), pattern);
+                               match(matcher, matched, base, file.getName(), pattern);
                } else {
                        String fullPath = base + '/' + currentPath;
                        if (matched.contains(fullPath))
@@ -386,7 +386,10 @@ public class Activator implements BundleActivator {
        }
 
        private static void warn(Object obj) {
-               System.err.println("# WARN " + obj);
+               if (System.getProperty("os.name").contains("Windows"))
+                       System.out.println("# WARN " + obj);
+               else
+                       System.err.println("# WARN " + obj);
        }
 
        static class MavenFile {