incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1159553 - /sling/trunk/launchpad/installer/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java
Date Fri, 19 Aug 2011 09:08:38 GMT
Author: cziegeler
Date: Fri Aug 19 09:08:38 2011
New Revision: 1159553

URL: http://svn.apache.org/viewvc?rev=1159553&view=rev
Log:
SLING-2189 : Resources installed by launchpad should not have default priority

Modified:
    sling/trunk/launchpad/installer/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java

Modified: sling/trunk/launchpad/installer/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/installer/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java?rev=1159553&r1=1159552&r2=1159553&view=diff
==============================================================================
--- sling/trunk/launchpad/installer/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java
(original)
+++ sling/trunk/launchpad/installer/src/main/java/org/apache/sling/launchpad/installer/impl/LaunchpadConfigInstaller.java
Fri Aug 19 09:08:38 2011
@@ -48,6 +48,8 @@ public class LaunchpadConfigInstaller {
      */
     private static final String ROOT_INSTALL_PATH = "resources/install";
 
+    private static final Integer PRIORITY = new Integer(50);
+
     private static boolean checkPath(final LaunchpadContentProvider resourceProvider,
             final Collection<InstallableResource> installables,
             final String rootPath,
@@ -84,7 +86,7 @@ public class LaunchpadConfigInstaller {
                     }
                     final String digest = (lastModified > 0 ? String.valueOf(lastModified)
: null);
                     final InputStream stream = resourceProvider.getResourceAsStream(path);
-                    installables.add(new InstallableResource(path, stream, dict, digest,
resourceType, null));
+                    installables.add(new InstallableResource(path, stream, dict, digest,
resourceType, PRIORITY));
                     count++;
                 }
             }



Mime
View raw message