[jboss-cvs] JBossAS SVN: r83493 - in projects/jboss-seam-int/trunk: jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jan 27 09:08:19 EST 2009


Author: alesj
Date: 2009-01-27 09:08:19 -0500 (Tue, 27 Jan 2009)
New Revision: 83493

Added:
   projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamConstants.java
   projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamModificationTypeMatcher.java
Modified:
   projects/jboss-seam-int/trunk/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/CachingVFSScanner.java
   projects/jboss-seam-int/trunk/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/VFSScanner.java
   projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamUrlIntegrationDeployer.java
   projects/jboss-seam-int/trunk/pom.xml
Log:
Update libs, add Seam modfication type matcher.

Modified: projects/jboss-seam-int/trunk/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/CachingVFSScanner.java
===================================================================
--- projects/jboss-seam-int/trunk/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/CachingVFSScanner.java	2009-01-27 13:49:32 UTC (rev 83492)
+++ projects/jboss-seam-int/trunk/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/CachingVFSScanner.java	2009-01-27 14:08:19 UTC (rev 83493)
@@ -37,7 +37,7 @@
       log.trace("Root url: " + url);
 
       // get the cached file directly, as we expect it to already be there
-      VirtualFile top = VFS.getCachedFile(url);
+      VirtualFile top = VFS.getRoot(url);
       while (parentDepth > 0)
       {
          if (top == null)

Modified: projects/jboss-seam-int/trunk/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/VFSScanner.java
===================================================================
--- projects/jboss-seam-int/trunk/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/VFSScanner.java	2009-01-27 13:49:32 UTC (rev 83492)
+++ projects/jboss-seam-int/trunk/jbossas/src/main/java/org/jboss/seam/integration/jbossas/vfs/VFSScanner.java	2009-01-27 14:08:19 UTC (rev 83493)
@@ -92,7 +92,7 @@
       log.trace("URL: " + vfsurl + ", relative: " + relative);
 
       // no sense in checking cache, we already did that
-      VirtualFile top = VFS.getRoot(vfsurl);
+      VirtualFile top = VFS.createNewRoot(vfsurl);
       top = top.getChild(relative);
       while (parentDepth > 0)
       {

Added: projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamConstants.java
===================================================================
--- projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamConstants.java	                        (rev 0)
+++ projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamConstants.java	2009-01-27 14:08:19 UTC (rev 83493)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.seam.integration.microcontainer.deployers;
+
+/**
+ * Seam constants.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public interface SeamConstants
+{
+   public static final String SEAM_PROPERTIES = "seam.properties";
+   public static final String SEAM_PROPERTIES_META_INF = "META-INF/" + SEAM_PROPERTIES;
+   public static final String SEAM_PROPERTIES_WEB_INF = "WEB-INF/classes/" + SEAM_PROPERTIES;
+   public static final String SEAM_COMPONENTS = "components.xml";
+   public static final String SEAM_COMPONENTS_META_INF = "META-INF/" + SEAM_COMPONENTS;
+   public static final String SEAM_COMPONENTS_WEB_INF =  "WEB-INF/classes/META-INF/" + SEAM_COMPONENTS;
+
+   public static final String[] SEAM_FILES = new String[]{
+         SEAM_PROPERTIES,
+         SEAM_PROPERTIES_META_INF,
+         SEAM_PROPERTIES_WEB_INF,
+         SEAM_COMPONENTS_META_INF,
+         SEAM_COMPONENTS_WEB_INF
+   };
+}

Added: projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamModificationTypeMatcher.java
===================================================================
--- projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamModificationTypeMatcher.java	                        (rev 0)
+++ projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamModificationTypeMatcher.java	2009-01-27 14:08:19 UTC (rev 83493)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.seam.integration.microcontainer.deployers;
+
+import org.jboss.deployers.vfs.plugins.structure.modify.TempTopModificationTypeMatcher;
+
+/**
+ * Enable temp modification for Seam apps.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class SeamModificationTypeMatcher extends TempTopModificationTypeMatcher
+{
+   public SeamModificationTypeMatcher()
+   {
+      super(SeamConstants.SEAM_FILES);
+   }
+}

Modified: projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamUrlIntegrationDeployer.java
===================================================================
--- projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamUrlIntegrationDeployer.java	2009-01-27 13:49:32 UTC (rev 83492)
+++ projects/jboss-seam-int/trunk/microcontainer/src/main/java/org/jboss/seam/integration/microcontainer/deployers/SeamUrlIntegrationDeployer.java	2009-01-27 14:08:19 UTC (rev 83493)
@@ -39,13 +39,7 @@
    {
       super(input);
       setIntegrationURL(getURL());
-      setFiles(new String[]{
-                  "seam.properties",
-                  "META-INF/seam.properties",
-                  "WEB-INF/classes/seam.properties",
-                  "META-INF/components.xml",
-                  "WEB-INF/classes/META-INF/components.xml"}
-      );
+      setFiles(SeamConstants.SEAM_FILES);
    }
 
    /**

Modified: projects/jboss-seam-int/trunk/pom.xml
===================================================================
--- projects/jboss-seam-int/trunk/pom.xml	2009-01-27 13:49:32 UTC (rev 83492)
+++ projects/jboss-seam-int/trunk/pom.xml	2009-01-27 14:08:19 UTC (rev 83493)
@@ -28,14 +28,14 @@
   
   <properties>
     <version.jboss.seam>2.1.1-SNAPSHOT</version.jboss.seam>
-    <version.jboss.vfs>2.0.0.GA</version.jboss.vfs>
+    <version.jboss.vfs>2.0.1.GA</version.jboss.vfs>
     <version.jboss.man>2.0.0.GA</version.jboss.man>
-    <version.jboss.microcontainer>2.0.1.GA</version.jboss.microcontainer>
-    <version.jboss.cl>2.0.0.GA</version.jboss.cl>
-    <version.jboss.deployers>2.0.0.GA</version.jboss.deployers>
-    <version.jboss.common.core>2.2.9.GA</version.jboss.common.core>
+    <version.jboss.microcontainer>2.0.3.GA</version.jboss.microcontainer>
+    <version.jboss.cl>2.0.2.GA</version.jboss.cl>
+    <version.jboss.deployers>2.0.4.GA</version.jboss.deployers>
+    <version.jboss.common.core>2.2.10.GA</version.jboss.common.core>
     <version.jboss.logging.spi>2.0.5.GA</version.jboss.logging.spi>
-    <version.jboss.classloading.spi>5.0.1.GA</version.jboss.classloading.spi>
+    <version.jboss.classloading.spi>5.0.3.GA</version.jboss.classloading.spi>
     <version.jboss.metadata>1.0.0.CR7</version.jboss.metadata>
     <version.jbossxb>2.0.0.GA</version.jbossxb>
     <version.servlet.api>2.5</version.servlet.api>




More information about the jboss-cvs-commits mailing list