You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:46:20 UTC

[sling-org-apache-sling-jcr-classloader] annotated tag org.apache.sling.jcr.classloader-2.0.6 created (now c905d78)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a change to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git.


      at c905d78  (tag)
 tagging c7b80957d39fede45c18a5d4eee579e7f5e09953 (commit)
      by Carsten Ziegeler
      on Wed Oct 7 13:21:14 2009 +0000

- Log -----------------------------------------------------------------
org.apache.sling.jcr.classloader-2.0.6
-----------------------------------------------------------------------

This annotated tag includes the following new commits:

     new 9609c02  Import initial Sling source
     new a0c6294  Ignore Eclipse and build artifacts
     new 04ddd72  Fix scm settings
     new ca2435c  Ignore Eclipse .settings
     new 9dfa564  Fix license headers.
     new c9cb58c  Fix license headers.
     new 09b3323  Fix license headers.
     new 2b850ab  SLING-18 scr plugin isn't enabled in jackrabbit-classloader, scripting-core and scripting-jsp
     new 9aa1c77  Remove sling module versions from parent pom to make release management easier. Add some more versions of dependencies to parent pom.
     new eafdadf  SLING-83 Move modules according to the new module structure
     new 35062bd  SLING-83 Fix SVN location, project name and java packages
     new d5ebe13  SLING-83: Fix relative paths to parent poms.
     new 81ea614  SLING-83 make artifactId fully qualified
     new c4dadf9  Add version attribute to package exports
     new 6eb3033  Ensure the Repository Classloader facade is also an URLClassLoader (just like the RepositoryClassLoader itself)
     new 019a135  Clean up code, remove unused imports etc.
     new 930a6c0  SLING-176 Include jackrabbit-jcr-commons classes in the bundle as jcr/api does not provide them any more.
     new 6a2d9a9  Use OSGi core and cmpendium jars from Felix project.
     new 23bd3b9  SLING-204 - add svn ignore patterns for intellij
     new d332a16  SLING-317 - rename /classes to /var/classes
     new 1d30440  Move licence and notice to top level dir.
     new e73f2bf  Add incubator disclaimer.
     new 19ef98b  Go back to simpler notice file format.
     new 33c124c  Eclude maven-eclipse.xml generated by the maven eclipse plugin.
     new 8f8460b  SLING-442: Clean up exports, imports, dependencies and used plugins.
     new d9ad7c5  SLING-479 Fix @scr.tags:   - normalize metadata attribute settings to "no"   - ensure proper metadata and ds attributes are set   - create metatype.properties files where required   - fix metatype.properties files
     new 5914833  SLING-483: Add excludes for javadocs (WiP)
     new 256033c  SLING-495 - NOTICE files generated using mknotice script
     new 0ba9480  SLING-495 - NOTICE files updated according to changes in revision 662927
     new ede0ef1  SLING-495 - NOTICE files regenerated with revision 663097 changes
     new 1e54dd4  Use released version of parent pom.
     new 74074ba  Use released versions (or soon to be released versions).
     new 46c8880  [maven-release-plugin] prepare release org.apache.sling.jcr.classloader-2.0.0-incubator
     new cd4e1cc  [maven-release-plugin] prepare for next development iteration
     new d578763  Set version to next development version.
     new 9d580ae  Fix reference to parent pom.
     new 37da054  SLING-521: Restore more notice files.
     new f1aeeac  SLING-471 Apply patch by Niklas Gustavsson (slightly modified)
     new 01df96a  SLING-521: Separate between notice files for bin and src dists.
     new 4b46564  SLING-521: Separate between notice files for bin and src dists.
     new b628ff4  Change copyright year to 2008.
     new e10ce9b  Update to released versions.
     new 0606f94  [maven-release-plugin] prepare release org.apache.sling.jcr.classloader-2.0.2-incubator
     new 69a580b  [maven-release-plugin] prepare for next development iteration
     new 5efcf8d  Use latest snapshots again to make project buildable.
     new 220cd0d  Use released versions.
     new 004b5c2  Use released parent pom where possible.
     new 554dfbe  SLING-555 : Update all poms to use the latest parent pom; update parent pom to include the incubator repo for plugins and use latest plugins.
     new dade028  SLING-769 Explicit Jackrabbit Dependency Version
     new c07b5e1  SLING-769 Revert Jackrabbit dependency to 1.4.x because the 1.4.1 classloader is the same as the 1.5 classloader (Jackrabbit loves to release new versions without changes)
     new 005f341  SLING-808 : Increase version to 5-incubator-SNAPSHOT
     new 972ae25  Update notice files to include 2009 in copyright statement.
     new ad2d9df  SLING-811 Reduce DependencyManagement in the parent pom and add explicit versions to the modules
     new c8cc0b9  SLING-829 Cosmetics to the bundle/project names
     new ce93f86  SLING-829 Ensure Apache Sling prefix on all configuration names
     new 022db7d  SLING-858 - Let the SCR plugin create correct bind/unbind implementations for us.
     new 870ab6a  SLING-865 : Move to bundles
     new c03c85d  SLING-865 : Adjust reactor pom and svn information in each module.
     new bcbf408  SLING-865 : Adjust path to parent pom and add profiles for samples and contrib
     new 6b3c079  Use release parent pom
     new df7745a  [maven-release-plugin] prepare release org.apache.sling.jcr.classloader-2.0.4-incubator
     new dc1b1db  [maven-release-plugin] prepare for next development iteration
     new e31b679  Use next dev version of parent pom
     new e727d40  Set parent pom to released version.
     new 0a4435b  Move Sling to new TLP location
     new 468500e  SLING-1011 : Remove disclaimer file.
     new 332a7ae  SLING-1011 : Adjust svn location
     new dfa43d2  SLING-1011 : Remove disclaimer from readme's, adjust links to webite, fix versions in poms.
     new e415dca  SLING-1033 Upgrade to Sling parent POM 6 (and ensure web app has the leglize stuff, too)
     new da33ba2  SLING-1048 : Implement the dynamic class loader provider interface and deprecate the repository class loader interface.
     new 31a142c  Use provided parent class loader instead of own class loader
     new dea3efa  Experimental class loader writer for scripting engines.
     new 51c755a  Fix typo which disabled the last modified check.
     new a94152b  Fix wrong org.apache.sling.commons.classloader version number
     new 8f135ba  Update to latest Sling releases.
     new dd74c87  [maven-release-plugin] prepare release org.apache.sling.jcr.classloader-2.0.6
     new c7b8095  [maven-scm] copy for tag org.apache.sling.jcr.classloader-2.0.6

The 77 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
['"commits@sling.apache.org" <co...@sling.apache.org>'].

[sling-org-apache-sling-jcr-classloader] 13/18: Experimental class loader writer for scripting engines.

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit dea3efa0d3e719414e6af10c0f7ed5a0836c2f0b
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Jul 17 06:16:52 2009 +0000

    Experimental class loader writer for scripting engines.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@794977 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            |   5 +
 .../internal/RepositoryClassLoaderFacade.java      |  31 +--
 .../RepositoryClassLoaderProviderImpl.java         | 308 ++++++++++++++++++++-
 3 files changed, 302 insertions(+), 42 deletions(-)

diff --git a/pom.xml b/pom.xml
index a36fceb..539ba29 100644
--- a/pom.xml
+++ b/pom.xml
@@ -99,6 +99,11 @@
             <version>0.9.0-SNAPSHOT</version>
         </dependency>
         <dependency>
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.commons.mime</artifactId>
+            <version>2.1.0-incubator</version>
+        </dependency>
+        <dependency>
             <groupId>org.apache.jackrabbit</groupId>
             <artifactId>jackrabbit-classloader</artifactId>
             <version>1.4.1</version>
diff --git a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderFacade.java b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderFacade.java
index cc5ff1a..9324105 100644
--- a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderFacade.java
+++ b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderFacade.java
@@ -47,15 +47,6 @@ class RepositoryClassLoaderFacade extends URLClassLoader {
     private String[] classPath;
     private DynamicRepositoryClassLoader delegate;
 
-    /**
-     * The reference counter. If not greater than zero, there are this
-     * number of (assumed) life references.
-     *
-     * @see #ref()
-     * @see #deref()
-     */
-    private int refCtr = 0;
-
     public RepositoryClassLoaderFacade(
             RepositoryClassLoaderProviderImpl classLoaderProvider,
             ClassLoader parent,
@@ -140,27 +131,6 @@ class RepositoryClassLoaderFacade extends URLClassLoader {
         }
     }
 
-    /**
-     * Increases the reference counter of this class loader.
-     */
-    /* package */void ref() {
-        this.refCtr++;
-    }
-
-    /**
-     * Decreases the reference counter of this class loader and calls the
-     * base class <code>destroy()</code> method, if this class loader has
-     * already been destroyed by calling the {@link #destroy()} method.
-     */
-    /* package */void deref() {
-        this.refCtr--;
-
-        // destroy if the loader should be destroyed and no refs exist
-//        if (refCtr <= 0 /* && destroyed */ ) {
-//            destroy();
-//        }
-    }
-
     //---------- internal -----------------------------------------------------
 
     private Session getSession() throws RepositoryException {
@@ -197,4 +167,5 @@ class RepositoryClassLoaderFacade extends URLClassLoader {
 
         return this.delegate;
     }
+
 }
diff --git a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
index af5ee61..425c9b5 100644
--- a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
+++ b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
@@ -18,20 +18,33 @@
  */
 package org.apache.sling.jcr.classloader.internal;
 
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
 import java.util.Dictionary;
 import java.util.Iterator;
 
+import javax.jcr.Item;
+import javax.jcr.Node;
+import javax.jcr.Property;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.SimpleCredentials;
 
 import org.apache.commons.collections.BidiMap;
 import org.apache.commons.collections.bidimap.DualHashBidiMap;
+import org.apache.sling.commons.classloader.ClassLoaderWriter;
 import org.apache.sling.commons.classloader.DynamicClassLoaderProvider;
+import org.apache.sling.commons.mime.MimeTypeService;
 import org.apache.sling.jcr.api.SlingRepository;
 import org.apache.sling.jcr.classloader.RepositoryClassLoaderProvider;
 import org.osgi.framework.Bundle;
 import org.osgi.service.component.ComponentContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * The <code>RepositoryClassLoaderProviderImpl</code> TODO
@@ -44,7 +57,10 @@ import org.osgi.service.component.ComponentContext;
  * @scr.service servicefactory="true"
  */
 public class RepositoryClassLoaderProviderImpl
-        implements RepositoryClassLoaderProvider, DynamicClassLoaderProvider {
+        implements RepositoryClassLoaderProvider, DynamicClassLoaderProvider, ClassLoaderWriter {
+
+    /** default log */
+    private static final Logger log = LoggerFactory.getLogger(RepositoryClassLoaderFacade.class);
 
     /**
      * @scr.property values0="/var/classes"
@@ -74,6 +90,9 @@ public class RepositoryClassLoaderProviderImpl
 
     private BundleProxyClassLoader parent;
 
+    /** @scr.reference policy="dynamic" */
+    private MimeTypeService mimeTypeService;
+
     public ClassLoader getClassLoader(String owner) {
         String classLoaderOwner = this.getClassLoaderOwner(owner);
         RepositoryClassLoaderFacade loader =
@@ -84,17 +103,11 @@ public class RepositoryClassLoaderProviderImpl
             this.loaders.put(classLoaderOwner, loader);
         }
 
-        // extend reference counter
-        loader.ref();
-
         return loader;
     }
 
     public void ungetClassLoader(ClassLoader classLoader) {
-        if (classLoader instanceof RepositoryClassLoaderFacade) {
-            RepositoryClassLoaderFacade cl = (RepositoryClassLoaderFacade) classLoader;
-            cl.deref();
-        }
+        // nothing to do
     }
 
     //---------- Support for RepositoryClassLoaderFacade ----------------------
@@ -126,18 +139,289 @@ public class RepositoryClassLoaderProviderImpl
             (RepositoryClassLoaderFacade) this.loaders.get(classLoaderOwner);
         if (loader == null) {
             loader = new RepositoryClassLoaderFacade(this, parent,
-                    OWNER_DEFAULT, this.classPath);
+                    this.classLoaderOwner, this.classPath);
             this.loaders.put(classLoaderOwner, loader);
         }
 
-        // extend reference counter
-        loader.ref();
-
         return loader;
     }
 
     //---------- SCR Integration ----------------------------------------------
 
+    /**
+     * @see org.apache.sling.commons.classloader.ClassLoaderWriter#delete(java.lang.String)
+     */
+    public boolean delete(String name) {
+        name = cleanPath(name);
+        Node parentNode = null;
+        Session session = null;
+        try {
+            session = getSession(this.classLoaderOwner);
+            if (session.itemExists(name)) {
+                Item fileItem = session.getItem(name);
+                parentNode = fileItem.getParent();
+                fileItem.remove();
+                parentNode.save();
+                return true;
+            }
+        } catch (RepositoryException re) {
+            log.error("Cannot remove " + name, re);
+        } finally {
+            checkNode(parentNode, name);
+            if ( session != null ) {
+                session.logout();
+            }
+        }
+
+        // fall back to false if item does not exist or in case of error
+        return false;
+    }
+
+    /**
+     * @see org.apache.sling.commons.classloader.ClassLoaderWriter#getOutputStream(java.lang.String)
+     */
+    public OutputStream getOutputStream(String name) {
+        final String path = cleanPath(name);
+        return new RepositoryOutputStream(this, path);
+    }
+
+    /**
+     * @see org.apache.sling.commons.classloader.ClassLoaderWriter#rename(java.lang.String, java.lang.String)
+     */
+    public boolean rename(String oldName, String newName) {
+        Session session = null;
+        try {
+            oldName = cleanPath(oldName);
+            newName = cleanPath(newName);
+
+            session = this.getSession(this.classLoaderOwner);
+            session.getWorkspace().move(oldName, newName);
+            return true;
+        } catch (RepositoryException re) {
+            log.error("Cannot rename " + oldName + " to " + newName, re);
+        } finally {
+            if ( session != null ) {
+                session.logout();
+            }
+        }
+
+        // fallback to false in case of error or non-existence of oldFileName
+        return false;
+    }
+
+    /**
+     * Creates a folder hierarchy in the repository.
+     */
+    private boolean mkdirs(final Session session, String path) {
+        Node parentNode = null;
+        try {
+            // quick test
+            if (session.itemExists(path) && session.getItem(path).isNode()) {
+                return true;
+            }
+
+            // check path walking it down
+            Node current = session.getRootNode();
+            String[] names = path.split("/");
+            for (int i = 0; i < names.length; i++) {
+                if (names[i] == null || names[i].length() == 0) {
+                    continue;
+                } else if (current.hasNode(names[i])) {
+                    current = current.getNode(names[i]);
+                } else {
+                    if (parentNode == null) {
+                        parentNode = current;
+                    }
+                    current = current.addNode(names[i], "nt:folder");
+                }
+            }
+
+            if (parentNode != null) {
+                parentNode.save();
+                return true;
+            }
+
+        } catch (RepositoryException re) {
+            log.error("Cannot create folder path " + path, re);
+        } finally {
+            checkNode(parentNode, path);
+        }
+
+        // false in case of error or no need to create
+        return false;
+    }
+
+    private static void checkNode(Node node, String path) {
+        if (node != null && node.isModified()) {
+            try {
+                node.refresh(false);
+            } catch (RepositoryException re) {
+                log.error("Cannot refresh node for " + path
+                    + " after failed save", re);
+            }
+        }
+    }
+
+    private String cleanPath(String path) {
+        // replace backslash by slash
+        path = path.replace('\\', '/');
+
+        // cut off trailing slash
+        while (path.endsWith("/")) {
+            path = path.substring(0, path.length() - 1);
+        }
+
+        if ( this.classPath == null || this.classPath.length == 0 ) {
+            return path;
+        }
+        return this.classPath[0] + path;
+    }
+
+    private static class RepositoryOutputStream extends ByteArrayOutputStream {
+
+        private final RepositoryClassLoaderProviderImpl repositoryOutputProvider;
+
+        private final String fileName;
+
+        RepositoryOutputStream(RepositoryClassLoaderProviderImpl repositoryOutputProvider,
+                String fileName) {
+            this.repositoryOutputProvider = repositoryOutputProvider;
+            this.fileName = fileName;
+        }
+
+        public void close() throws IOException {
+            super.close();
+
+            Node parentNode = null;
+            Session session = null;
+            try {
+                session = repositoryOutputProvider.getSession(repositoryOutputProvider.classLoaderOwner);
+                final int lastPos = fileName.lastIndexOf('/');
+                if ( lastPos != -1 ) {
+                    repositoryOutputProvider.mkdirs(session, fileName.substring(0, lastPos));
+                }
+                Node fileNode = null;
+                Node contentNode = null;
+                if (session.itemExists(fileName)) {
+                    Item item = session.getItem(fileName);
+                    if (item.isNode()) {
+                        Node node = item.isNode()
+                                ? (Node) item
+                                : item.getParent();
+                        if ("jcr:content".equals(node.getName())) {
+                            // replace the content properties of the jcr:content
+                            // node
+                            parentNode = node;
+                            contentNode = node;
+                        } else if (node.isNodeType("nt:file")) {
+                            // try to set the content properties of jcr:content
+                            // node
+                            parentNode = node;
+                            contentNode = node.getNode("jcr:content");
+                        } else { // fileName is a node
+                            // try to set the content properties of the node
+                            parentNode = node;
+                            contentNode = node;
+                        }
+                    } else {
+                        // replace property with an nt:file node (if possible)
+                        parentNode = item.getParent();
+                        String name = item.getName();
+                        fileNode = parentNode.addNode(name, "nt:file");
+                        item.remove();
+                    }
+                } else {
+                    int lastSlash = fileName.lastIndexOf('/');
+                    if (lastSlash <= 0) {
+                        parentNode = session.getRootNode();
+                    } else {
+                        Item parent = session.getItem(fileName.substring(0,
+                            lastSlash));
+                        if (!parent.isNode()) {
+                            // TODO: fail
+                        }
+                        parentNode = (Node) parent;
+                    }
+                    String name = fileName.substring(lastSlash + 1);
+                    fileNode = parentNode.addNode(name, "nt:file");
+                }
+
+                // if we have a file node, create the contentNode
+                if (fileNode != null) {
+                    contentNode = fileNode.addNode("jcr:content", "nt:resource");
+                }
+
+                final MimeTypeService mtService = this.repositoryOutputProvider.mimeTypeService;
+
+                String mimeType = (mtService == null ? null : mtService.getMimeType(fileName));
+                if (mimeType == null) {
+                    mimeType = "application/octet-stream";
+                }
+
+                contentNode.setProperty("jcr:lastModified",
+                    System.currentTimeMillis());
+                contentNode.setProperty("jcr:data", new ByteArrayInputStream(
+                    buf, 0, size()));
+                contentNode.setProperty("jcr:mimeType", mimeType);
+
+                parentNode.save();
+            } catch (RepositoryException re) {
+                log.error("Cannot write file " + fileName, re);
+                throw new IOException("Cannot write file " + fileName
+                    + ", reason: " + re.toString());
+            } finally {
+                checkNode(parentNode, fileName);
+                if ( session != null ) {
+                    session.logout();
+                }
+            }
+        }
+    }
+
+    /**
+     * @see org.apache.sling.commons.classloader.ClassLoaderWriter#getInputStream(java.lang.String)
+     */
+    public InputStream getInputStream(String fileName)
+    throws IOException {
+        final String path = cleanPath(fileName) + "/jcr:content/jcr:data";
+        Session session = null;
+        try {
+            session = getSession(this.classLoaderOwner);
+            if ( session.itemExists(path) ) {
+                final Property prop = (Property)session.getItem(path);
+                return prop.getStream();
+            }
+            throw new FileNotFoundException("Unable to find " + fileName);
+        } catch (RepositoryException re) {
+            throw (IOException) new IOException(
+                        "Failed to get InputStream for " + fileName).initCause(re);
+        } finally {
+            if ( session != null ) {
+                session.logout();
+            }
+        }
+    }
+
+    /**
+     * @see org.apache.sling.commons.classloader.ClassLoaderWriter#getLastModified(java.lang.String)
+     */
+    public long getLastModified(String fileName) {
+        final String path = cleanPath(fileName) + "/jcr:content/jcr:lastModifed";
+        Session session = null;
+        try {
+            session = getSession(this.classLoaderOwner);
+            if ( session.itemExists(path) ) {
+                final Property prop = (Property)session.getItem(path);
+                return prop.getLong();
+            }
+        } catch (RepositoryException se) {
+            log.error("Cannot get last modification time for " + fileName, se);
+        }
+
+        // fallback to "non-existant" in case of problems
+        return -1;
+    }
+
     protected void activate(ComponentContext componentContext) {
         @SuppressWarnings("unchecked")
         Dictionary properties = componentContext.getProperties();

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 01/18: Use release parent pom

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit 6b3c07984c7f4d03bc61b8458d87a006e40c0f53
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue May 5 15:06:21 2009 +0000

    Use release parent pom
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader@771764 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 2fb7441..31b86ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
-        <version>5-incubator-SNAPSHOT</version>
+        <version>5-incubator</version>
         <relativePath>../../../parent/pom.xml</relativePath>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 08/18: SLING-1011 : Adjust svn location

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit 332a7aed549546ba6b770dc34d49a1d82f06aca6
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Jun 18 10:26:35 2009 +0000

    SLING-1011 : Adjust svn location
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@786008 13f79535-47bb-0310-9956-ffa450edef68
---
 README.txt | 2 +-
 pom.xml    | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.txt b/README.txt
index 68c85a7..125b696 100644
--- a/README.txt
+++ b/README.txt
@@ -33,7 +33,7 @@ Subversion (http://subversion.tigris.org/) source repository of
 the Apache Software Foundation. If you have Subversion installed,
 you can checkout the latest source using the following command:
 
-    svn checkout http://svn.apache.org/repos/asf/incubator/sling/trunk/jcr/classloader
+    svn checkout http://svn.apache.org/repos/asf/sling/trunk/jcr/classloader
 
 See the Subversion documentation for other source control features.
 
diff --git a/pom.xml b/pom.xml
index b7172e1..079bd2e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -38,9 +38,9 @@
     </description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader</developerConnection>
-        <url>http://svn.apache.org/viewvc/incubator/sling/trunk/bundles/jcr/classloader</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/classloader</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 11/18: SLING-1048 : Implement the dynamic class loader provider interface and deprecate the repository class loader interface.

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit da33ba2536ecda4480ac04c3f7587d34df266d46
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Jul 15 08:30:19 2009 +0000

    SLING-1048 : Implement the dynamic class loader provider interface and deprecate the repository class loader interface.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@794178 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                                     |  5 +++++
 .../jcr/classloader/RepositoryClassLoaderProvider.java      |  6 +++++-
 .../jcr/classloader/internal/BundleProxyClassLoader.java    | 13 +++++++------
 .../classloader/internal/RepositoryClassLoaderFacade.java   |  4 ++--
 .../internal/RepositoryClassLoaderProviderImpl.java         | 10 +++++++++-
 5 files changed, 28 insertions(+), 10 deletions(-)

diff --git a/pom.xml b/pom.xml
index f498f45..a36fceb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -94,6 +94,11 @@
             <version>2.0.2-incubator</version>
         </dependency>
         <dependency>
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.commons.classloader</artifactId>
+            <version>0.9.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
             <groupId>org.apache.jackrabbit</groupId>
             <artifactId>jackrabbit-classloader</artifactId>
             <version>1.4.1</version>
diff --git a/src/main/java/org/apache/sling/jcr/classloader/RepositoryClassLoaderProvider.java b/src/main/java/org/apache/sling/jcr/classloader/RepositoryClassLoaderProvider.java
index eb41324..66af2f4 100644
--- a/src/main/java/org/apache/sling/jcr/classloader/RepositoryClassLoaderProvider.java
+++ b/src/main/java/org/apache/sling/jcr/classloader/RepositoryClassLoaderProvider.java
@@ -21,8 +21,12 @@ package org.apache.sling.jcr.classloader;
 import javax.jcr.RepositoryException;
 
 /**
- * The <code>RepositoryClassLoaderProvider</code> TODO
+ * The <code>RepositoryClassLoaderProvider</code>
+ *
+ * @deprecated Use the {@link org.apache.sling.commons.classloader.DynamicClassLoaderManager}
+ * instead.
  */
+@Deprecated
 public interface RepositoryClassLoaderProvider {
 
     ClassLoader getClassLoader(String owner) throws RepositoryException;
diff --git a/src/main/java/org/apache/sling/jcr/classloader/internal/BundleProxyClassLoader.java b/src/main/java/org/apache/sling/jcr/classloader/internal/BundleProxyClassLoader.java
index 8275a5a..8bb76c1 100644
--- a/src/main/java/org/apache/sling/jcr/classloader/internal/BundleProxyClassLoader.java
+++ b/src/main/java/org/apache/sling/jcr/classloader/internal/BundleProxyClassLoader.java
@@ -49,7 +49,8 @@ import org.osgi.framework.Bundle;
     // at least Java 5 you can prevent the occurence of duplicate boot classloader
     // resources by overriding ClassLoader.getResources(...) instead of
     // ClassLoader.findResources(...).
-    public Enumeration findResources(String name) throws IOException {
+    @SuppressWarnings("unchecked")
+    public Enumeration<URL> findResources(String name) throws IOException {
         return this.bundle.getResources(name);
     }
 
@@ -57,7 +58,7 @@ import org.osgi.framework.Bundle;
         return this.bundle.getResource(name);
     }
 
-    public Class findClass(String name) throws ClassNotFoundException {
+    public Class<?> findClass(String name) throws ClassNotFoundException {
         return this.bundle.loadClass(name);
     }
 
@@ -65,11 +66,11 @@ import org.osgi.framework.Bundle;
         return (this.parent == null) ? this.findResource(name) : super.getResource(name);
     }
 
-    protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException {
-        Class clazz = (this.parent == null) ? this.findClass(name) : super.loadClass(name, false);
-        if (resolve)
+    protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
+        Class<?> clazz = (this.parent == null) ? this.findClass(name) : super.loadClass(name, false);
+        if (resolve) {
             super.resolveClass(clazz);
-
+        }
         return clazz;
     }
 }
diff --git a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderFacade.java b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderFacade.java
index e8f0f41..cc5ff1a 100644
--- a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderFacade.java
+++ b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderFacade.java
@@ -100,7 +100,7 @@ class RepositoryClassLoaderFacade extends URLClassLoader {
         }
     }
 
-    protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException {
+    protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
         try {
             return this.getDelegateClassLoader().loadClass(name);
         } catch (RepositoryException re) {
@@ -118,7 +118,7 @@ class RepositoryClassLoaderFacade extends URLClassLoader {
         }
     }
 
-    public Enumeration findResources(String name) throws IOException {
+    public Enumeration<URL> findResources(String name) throws IOException {
         try {
             return this.getDelegateClassLoader().getResources(name);
         } catch (RepositoryException re) {
diff --git a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
index 690265a..c7f4fac 100644
--- a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
+++ b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
@@ -27,6 +27,7 @@ import javax.jcr.SimpleCredentials;
 
 import org.apache.commons.collections.BidiMap;
 import org.apache.commons.collections.bidimap.DualHashBidiMap;
+import org.apache.sling.commons.classloader.DynamicClassLoaderProvider;
 import org.apache.sling.jcr.api.SlingRepository;
 import org.apache.sling.jcr.classloader.RepositoryClassLoaderProvider;
 import org.osgi.framework.Bundle;
@@ -43,7 +44,7 @@ import org.osgi.service.component.ComponentContext;
  * @scr.service servicefactory="true"
  */
 public class RepositoryClassLoaderProviderImpl
-        implements RepositoryClassLoaderProvider {
+        implements RepositoryClassLoaderProvider, DynamicClassLoaderProvider {
 
     /**
      * @scr.property values0="/var/classes"
@@ -115,6 +116,13 @@ public class RepositoryClassLoaderProviderImpl
         }
     }
 
+    /**
+     * @see org.apache.sling.commons.classloader.DynamicClassLoaderProvider#getClassLoader()
+     */
+    public ClassLoader getClassLoader() {
+        return this.getClassLoader(null);
+    }
+
     //---------- SCR Integration ----------------------------------------------
 
     protected void activate(ComponentContext componentContext) {

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 12/18: Use provided parent class loader instead of own class loader

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit 31a142c3357c273ecf569dbe9070693c41d4d352
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Jul 16 05:46:47 2009 +0000

    Use provided parent class loader instead of own class loader
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@794540 13f79535-47bb-0310-9956-ffa450edef68
---
 .../internal/RepositoryClassLoaderProviderImpl.java   | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
index c7f4fac..af5ee61 100644
--- a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
+++ b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
@@ -117,10 +117,23 @@ public class RepositoryClassLoaderProviderImpl
     }
 
     /**
-     * @see org.apache.sling.commons.classloader.DynamicClassLoaderProvider#getClassLoader()
+     * @see org.apache.sling.commons.classloader.DynamicClassLoaderProvider#getClassLoader(ClassLoader)
      */
-    public ClassLoader getClassLoader() {
-        return this.getClassLoader(null);
+    public ClassLoader getClassLoader(final ClassLoader parent) {
+        // we just make up a unique identifier
+        final String classLoaderOwner = "DynamicClassLoaderProvider:" + parent.hashCode();
+        RepositoryClassLoaderFacade loader =
+            (RepositoryClassLoaderFacade) this.loaders.get(classLoaderOwner);
+        if (loader == null) {
+            loader = new RepositoryClassLoaderFacade(this, parent,
+                    OWNER_DEFAULT, this.classPath);
+            this.loaders.put(classLoaderOwner, loader);
+        }
+
+        // extend reference counter
+        loader.ref();
+
+        return loader;
     }
 
     //---------- SCR Integration ----------------------------------------------

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 07/18: SLING-1011 : Remove disclaimer file.

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit 468500e81ef44086aa47bd7a33c8cedd0cb75a1b
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Jun 18 09:57:04 2009 +0000

    SLING-1011 : Remove disclaimer file.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@785993 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/resources/META-INF/DISCLAIMER | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/main/resources/META-INF/DISCLAIMER b/src/main/resources/META-INF/DISCLAIMER
deleted file mode 100644
index 90850c2..0000000
--- a/src/main/resources/META-INF/DISCLAIMER
+++ /dev/null
@@ -1,7 +0,0 @@
-Apache Sling is an effort undergoing incubation at The Apache Software Foundation (ASF),
-sponsored by the Apache Jackrabbit PMC. Incubation is required of all newly accepted
-projects until a further review indicates that the infrastructure, communications,
-and decision making process have stabilized in a manner consistent with other
-successful ASF projects. While incubation status is not necessarily a reflection of
-the completeness or stability of the code, it does indicate that the project has yet
-to be fully endorsed by the ASF.
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 02/18: [maven-release-plugin] prepare release org.apache.sling.jcr.classloader-2.0.4-incubator

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit df7745a9c165046cb8a4f6ac306621ecb94fce94
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue May 5 15:34:07 2009 +0000

    [maven-release-plugin] prepare release org.apache.sling.jcr.classloader-2.0.4-incubator
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader@771814 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 31b86ed..c444fc3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
     </parent>
 
     <artifactId>org.apache.sling.jcr.classloader</artifactId>
-    <version>2.0.3-incubator-SNAPSHOT</version>
+    <version>2.0.4-incubator</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Repository ClassLoader</name>
@@ -38,9 +38,9 @@
     </description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader</developerConnection>
-        <url>http://svn.apache.org/viewvc/incubator/sling/trunk/bundles/jcr/classloader</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/tags/org.apache.sling.jcr.classloader-2.0.4-incubator</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/tags/org.apache.sling.jcr.classloader-2.0.4-incubator</developerConnection>
+        <url>http://svn.apache.org/viewvc/incubator/sling/tags/org.apache.sling.jcr.classloader-2.0.4-incubator</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 18/18: [maven-scm] copy for tag org.apache.sling.jcr.classloader-2.0.6

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit c7b80957d39fede45c18a5d4eee579e7f5e09953
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Oct 7 13:21:14 2009 +0000

    [maven-scm] copy for tag org.apache.sling.jcr.classloader-2.0.6
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.jcr.classloader-2.0.6@822716 13f79535-47bb-0310-9956-ffa450edef68

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 17/18: [maven-release-plugin] prepare release org.apache.sling.jcr.classloader-2.0.6

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit dd74c877875630097948a850c745f4b680078436
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Oct 7 13:20:08 2009 +0000

    [maven-release-plugin] prepare release org.apache.sling.jcr.classloader-2.0.6
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@822715 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index b8b94c3..ed824c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
     </parent>
 
     <artifactId>org.apache.sling.jcr.classloader</artifactId>
-    <version>2.0.5-SNAPSHOT</version>
+    <version>2.0.6</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Repository ClassLoader</name>
@@ -38,9 +38,9 @@
     </description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/classloader</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.jcr.classloader-2.0.6</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.jcr.classloader-2.0.6</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.jcr.classloader-2.0.6</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 15/18: Fix wrong org.apache.sling.commons.classloader version number

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit a94152b9a93762d0a05993b3f23ded79abc5f209
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon Oct 5 20:44:10 2009 +0000

    Fix wrong org.apache.sling.commons.classloader version number
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@822000 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 539ba29..b51e379 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,7 +96,7 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.commons.classloader</artifactId>
-            <version>0.9.0-SNAPSHOT</version>
+            <version>0.9.1-SNAPSHOT</version>
         </dependency>
         <dependency>
             <groupId>org.apache.sling</groupId>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 06/18: Move Sling to new TLP location

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit 0a4435b6ab8a73fc068d0604f3fd54928efdebff
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Thu Jun 18 09:21:02 2009 +0000

    Move Sling to new TLP location
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@785979 13f79535-47bb-0310-9956-ffa450edef68

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 03/18: [maven-release-plugin] prepare for next development iteration

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit dc1b1db0eb320dc3d1664e1a7913b9d6e0149398
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue May 5 15:34:22 2009 +0000

    [maven-release-plugin] prepare for next development iteration
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader@771816 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index c444fc3..b7172e1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
     </parent>
 
     <artifactId>org.apache.sling.jcr.classloader</artifactId>
-    <version>2.0.4-incubator</version>
+    <version>2.0.5-incubator-SNAPSHOT</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Repository ClassLoader</name>
@@ -38,9 +38,9 @@
     </description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/tags/org.apache.sling.jcr.classloader-2.0.4-incubator</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/tags/org.apache.sling.jcr.classloader-2.0.4-incubator</developerConnection>
-        <url>http://svn.apache.org/viewvc/incubator/sling/tags/org.apache.sling.jcr.classloader-2.0.4-incubator</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader</developerConnection>
+        <url>http://svn.apache.org/viewvc/incubator/sling/trunk/bundles/jcr/classloader</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 10/18: SLING-1033 Upgrade to Sling parent POM 6 (and ensure web app has the leglize stuff, too)

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit e415dcafa398c75a999aec92ea1bbc0e437aaf66
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Sun Jul 5 11:27:40 2009 +0000

    SLING-1033 Upgrade to Sling parent POM 6 (and ensure web app has the leglize stuff, too)
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@791223 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 8f8210b..f498f45 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
-        <version>5-incubator</version>
+        <version>6</version>
         <relativePath>../../../parent/pom.xml</relativePath>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 09/18: SLING-1011 : Remove disclaimer from readme's, adjust links to webite, fix versions in poms.

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit dfa43d28a05b178cc29451a023038e66d0ddec89
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Jun 18 10:47:55 2009 +0000

    SLING-1011 : Remove disclaimer from readme's, adjust links to webite, fix versions in poms.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@786012 13f79535-47bb-0310-9956-ffa450edef68
---
 README.txt | 10 ----------
 pom.xml    |  2 +-
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/README.txt b/README.txt
index 125b696..ef9d227 100644
--- a/README.txt
+++ b/README.txt
@@ -4,16 +4,6 @@ Provides Support for delegate class loaders built dynamically.
 Delegate class loaders supported are generic ClassLoader, OSGi
 bundles and repository class loader.
 
-Disclaimer
-==========
-Apache Sling is an effort undergoing incubation at The Apache Software Foundation (ASF),
-sponsored by the Apache Jackrabbit PMC. Incubation is required of all newly accepted
-projects until a further review indicates that the infrastructure, communications,
-and decision making process have stabilized in a manner consistent with other
-successful ASF projects. While incubation status is not necessarily a reflection of
-the completeness or stability of the code, it does indicate that the project has yet
-to be fully endorsed by the ASF.
-
 Getting Started
 ===============
 
diff --git a/pom.xml b/pom.xml
index 079bd2e..8f8210b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
     </parent>
 
     <artifactId>org.apache.sling.jcr.classloader</artifactId>
-    <version>2.0.5-incubator-SNAPSHOT</version>
+    <version>2.0.5-SNAPSHOT</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Repository ClassLoader</name>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 05/18: Set parent pom to released version.

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit e727d400350115770430caf29d733d26c192e991
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu May 14 14:49:51 2009 +0000

    Set parent pom to released version.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader@774798 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 89e5f26..b7172e1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
-        <version>6-incubator-SNAPSHOT</version>
+        <version>5-incubator</version>
         <relativePath>../../../parent/pom.xml</relativePath>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 14/18: Fix typo which disabled the last modified check.

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit 51c755a9b76317499dc118a402ecb534754da53f
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Jul 29 12:35:15 2009 +0000

    Fix typo which disabled the last modified check.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@798876 13f79535-47bb-0310-9956-ffa450edef68
---
 .../jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
index 425c9b5..8187c3a 100644
--- a/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
+++ b/src/main/java/org/apache/sling/jcr/classloader/internal/RepositoryClassLoaderProviderImpl.java
@@ -406,7 +406,7 @@ public class RepositoryClassLoaderProviderImpl
      * @see org.apache.sling.commons.classloader.ClassLoaderWriter#getLastModified(java.lang.String)
      */
     public long getLastModified(String fileName) {
-        final String path = cleanPath(fileName) + "/jcr:content/jcr:lastModifed";
+        final String path = cleanPath(fileName) + "/jcr:content/jcr:lastModified";
         Session session = null;
         try {
             session = getSession(this.classLoaderOwner);

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 16/18: Update to latest Sling releases.

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit 8f135ba4e2fdedaa04400c8e5bfe69dd06ffbfe3
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Oct 6 06:19:55 2009 +0000

    Update to latest Sling releases.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/classloader@822144 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index b51e379..b8b94c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,7 +96,7 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.commons.classloader</artifactId>
-            <version>0.9.1-SNAPSHOT</version>
+            <version>0.9.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.sling</groupId>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-org-apache-sling-jcr-classloader] 04/18: Use next dev version of parent pom

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.jcr.classloader-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-classloader.git

commit e31b67997c827513fba149550b6cc4a4f29a9af9
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue May 5 17:11:34 2009 +0000

    Use next dev version of parent pom
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/bundles/jcr/classloader@771937 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index b7172e1..89e5f26 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
-        <version>5-incubator</version>
+        <version>6-incubator-SNAPSHOT</version>
         <relativePath>../../../parent/pom.xml</relativePath>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.