incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r644957 - /incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/MappedPath.java
Date Fri, 04 Apr 2008 22:20:35 GMT
Author: fmeschbe
Date: Fri Apr  4 15:20:28 2008
New Revision: 644957

URL: http://svn.apache.org/viewvc?rev=644957&view=rev
Log:
SLING-357 Replace the currently used pipe symbol (¦) by the bang (!) as described in the
issue

Modified:
    incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/MappedPath.java

Modified: incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/MappedPath.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/MappedPath.java?rev=644957&r1=644956&r2=644957&view=diff
==============================================================================
--- incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/MappedPath.java
(original)
+++ incubator/sling/trunk/sling/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/MappedPath.java
Fri Apr  4 15:20:28 2008
@@ -20,6 +20,7 @@
 
 class MappedPath {
 
+    private static final char prefixSeparatorChar = '!';
     private final String resourceRoot;
     private final String resourceRootPrefix;
     private final String entryRoot;
@@ -28,10 +29,10 @@
     static MappedPath create(String configPath) {
         String resourceRoot;
         String entryRoot;
-        int pipe = configPath.indexOf('¦');
-        if (pipe >= 0) {
-            entryRoot = configPath.substring(pipe + 1);
-            resourceRoot = configPath.substring(0, pipe).concat(entryRoot);
+        int prefixSep = configPath.indexOf(prefixSeparatorChar);
+        if (prefixSep >= 0) {
+            entryRoot = configPath.substring(prefixSep + 1);
+            resourceRoot = configPath.substring(0, prefixSep).concat(entryRoot);
         } else {
             resourceRoot = configPath;
             entryRoot = null;



Mime
View raw message