]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Do not use stderr on Windows
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 25 Apr 2009 12:04:38 +0000 (12:04 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 25 Apr 2009 12:04:38 +0000 (12:04 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2356 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

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 {