[jboss-cvs] JBossAS SVN: r80937 - in projects/jboss-deployers/trunk: deployers-spi/src/main/java/org/jboss/deployers/spi/annotations and 6 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 13 10:12:23 EST 2008


Author: alesj
Date: 2008-11-13 10:12:23 -0500 (Thu, 13 Nov 2008)
New Revision: 80937

Added:
   projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractPathEntryMetaData.java
   projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractPathMetaData.java
   projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractScanningMetaData.java
   projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/PathEntryMetaData.java
   projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/PathMetaData.java
   projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/ScanningMetaData.java
   projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/ScanningMetaDataDeployer.java
   projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/annotations/test/ScanningMetaDataTestCase.java
   projects/jboss-deployers/trunk/deployers-vfs/src/test/resources/scanning/
   projects/jboss-deployers/trunk/deployers-vfs/src/test/resources/scanning/smoke/
   projects/jboss-deployers/trunk/deployers-vfs/src/test/resources/scanning/smoke/META-INF/
   projects/jboss-deployers/trunk/deployers-vfs/src/test/resources/scanning/smoke/META-INF/jboss-scanning.xml
Log:
[JBDEPLOY-131]; scanning metadata.

Added: projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractPathEntryMetaData.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractPathEntryMetaData.java	                        (rev 0)
+++ projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractPathEntryMetaData.java	2008-11-13 15:12:23 UTC (rev 80937)
@@ -0,0 +1,77 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.deployers.plugins.annotations;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+import org.jboss.deployers.spi.annotations.PathEntryMetaData;
+
+/**
+ * AbstractPathEntryMetaData
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+ at XmlType(name="pathEntryType")
+public class AbstractPathEntryMetaData implements PathEntryMetaData, Serializable
+{
+   private static final long serialVersionUID = 1L;
+
+   private String name;
+
+   private String getNameInternal()
+   {
+      if (name == null)
+         throw new IllegalArgumentException("Null name");
+
+      return name;
+   }
+
+   public String getName()
+   {
+      return name;
+   }
+
+   @XmlAttribute(name = "name")
+   public void setName(String name)
+   {
+      this.name = name;
+   }
+
+   @Override
+   public int hashCode()
+   {
+      return getNameInternal().hashCode();
+   }
+
+   @Override
+   public boolean equals(Object obj)
+   {
+      if (obj instanceof PathEntryMetaData == false)
+         return false;
+
+      PathEntryMetaData pemd = (PathEntryMetaData)obj;
+      return getNameInternal().equals(pemd.getName());
+   }
+}
\ No newline at end of file

Added: projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractPathMetaData.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractPathMetaData.java	                        (rev 0)
+++ projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractPathMetaData.java	2008-11-13 15:12:23 UTC (rev 80937)
@@ -0,0 +1,81 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.deployers.plugins.annotations;
+
+import java.io.Serializable;
+import java.util.Set;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.deployers.spi.annotations.PathEntryMetaData;
+import org.jboss.deployers.spi.annotations.PathMetaData;
+
+/**
+ * AbstractPathMetaData
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+ at XmlRootElement(name="path")
+ at XmlType(name="pathType", propOrder={"includes", "excludes"})
+public class AbstractPathMetaData implements PathMetaData, Serializable
+{
+   private static final long serialVersionUID = 1L;
+
+   private String pathName;
+   private Set<PathEntryMetaData> includes;
+   private Set<PathEntryMetaData> excludes;
+
+   public String getPathName()
+   {
+      return pathName;
+   }
+
+   @XmlAttribute(name = "name")
+   public void setPathName(String pathName)
+   {
+      this.pathName = pathName;
+   }
+
+   public Set<PathEntryMetaData> getIncludes()
+   {
+      return includes;
+   }
+
+   @XmlElement(name = "include", type = AbstractPathEntryMetaData.class)
+   public void setIncludes(Set<PathEntryMetaData> includes)
+   {
+      this.includes = includes;
+   }
+
+   public Set<PathEntryMetaData> getExcludes()
+   {
+      return excludes;
+   }
+
+   @XmlElement(name = "exclude", type = AbstractPathEntryMetaData.class)
+   public void setExcludes(Set<PathEntryMetaData> excludes)
+   {
+      this.excludes = excludes;
+   }
+}
\ No newline at end of file

Added: projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractScanningMetaData.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractScanningMetaData.java	                        (rev 0)
+++ projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/annotations/AbstractScanningMetaData.java	2008-11-13 15:12:23 UTC (rev 80937)
@@ -0,0 +1,59 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.deployers.plugins.annotations;
+
+import java.io.Serializable;
+import java.util.List;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.deployers.spi.annotations.PathMetaData;
+import org.jboss.deployers.spi.annotations.ScanningMetaData;
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * AbstractScanningMetaData
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+ at JBossXmlSchema(namespace="urn:jboss:scanning:1.0", elementFormDefault= XmlNsForm.QUALIFIED)
+ at XmlRootElement(name="scanning")
+ at XmlType(name="scanningType", propOrder={"paths"})
+public class AbstractScanningMetaData implements ScanningMetaData, Serializable
+{
+   private static final long serialVersionUID = 1L;
+
+   private List<PathMetaData> paths;
+
+   public List<PathMetaData> getPaths()
+   {
+      return paths;
+   }
+
+   @XmlElement(name="path", type = AbstractPathMetaData.class)
+   public void setPaths(List<PathMetaData> paths)
+   {
+      this.paths = paths;
+   }
+}

Added: projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/PathEntryMetaData.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/PathEntryMetaData.java	                        (rev 0)
+++ projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/PathEntryMetaData.java	2008-11-13 15:12:23 UTC (rev 80937)
@@ -0,0 +1,37 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.deployers.spi.annotations;
+
+/**
+ * Path entry meta data.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public interface PathEntryMetaData
+{
+   /**
+    * Get name.
+    *
+    * @return the name
+    */
+   String getName();
+}
\ No newline at end of file

Added: projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/PathMetaData.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/PathMetaData.java	                        (rev 0)
+++ projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/PathMetaData.java	2008-11-13 15:12:23 UTC (rev 80937)
@@ -0,0 +1,53 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.deployers.spi.annotations;
+
+import java.util.Set;
+
+/**
+ * Path meta data.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public interface PathMetaData
+{
+   /**
+    * Get path name.
+    *
+    * @return the path name
+    */
+   String getPathName();
+
+   /**
+    * Get includes.
+    *
+    * @return the includes
+    */
+   Set<PathEntryMetaData> getIncludes();
+
+   /**
+    * Get excludes.
+    *
+    * @return the excludes
+    */
+   Set<PathEntryMetaData> getExcludes();
+}
\ No newline at end of file

Added: projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/ScanningMetaData.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/ScanningMetaData.java	                        (rev 0)
+++ projects/jboss-deployers/trunk/deployers-spi/src/main/java/org/jboss/deployers/spi/annotations/ScanningMetaData.java	2008-11-13 15:12:23 UTC (rev 80937)
@@ -0,0 +1,39 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.deployers.spi.annotations;
+
+import java.util.List;
+
+/**
+ * Scanning meta data.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public interface ScanningMetaData
+{
+   /**
+    * Get the paths.
+    *
+    * @return the paths
+    */
+   List<PathMetaData> getPaths();
+}

Added: projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/ScanningMetaDataDeployer.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/ScanningMetaDataDeployer.java	                        (rev 0)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/ScanningMetaDataDeployer.java	2008-11-13 15:12:23 UTC (rev 80937)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.deployers.vfs.plugins.annotations;
+
+import org.jboss.deployers.plugins.annotations.AbstractScanningMetaData;
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.annotations.ScanningMetaData;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer;
+
+/**
+ * ScanningMetaDataDeployer.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class ScanningMetaDataDeployer extends SchemaResolverDeployer<AbstractScanningMetaData>
+{
+   public ScanningMetaDataDeployer()
+   {
+      super(AbstractScanningMetaData.class);
+      setName("jboss-scanning.xml");
+      setRegisterWithJBossXB(true);
+   }
+
+   @Override
+   protected void createMetaData(DeploymentUnit unit, String name, String suffix) throws DeploymentException
+   {
+      createMetaData(unit, name, suffix, ScanningMetaData.class.getName());
+   }
+}

Added: projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/annotations/test/ScanningMetaDataTestCase.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/annotations/test/ScanningMetaDataTestCase.java	                        (rev 0)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/annotations/test/ScanningMetaDataTestCase.java	2008-11-13 15:12:23 UTC (rev 80937)
@@ -0,0 +1,104 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.test.deployers.vfs.annotations.test;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Set;
+
+import junit.framework.Test;
+import org.jboss.deployers.plugins.annotations.AbstractScanningMetaData;
+import org.jboss.deployers.spi.annotations.PathMetaData;
+import org.jboss.deployers.spi.annotations.ScanningMetaData;
+import org.jboss.deployers.spi.annotations.PathEntryMetaData;
+import org.jboss.deployers.vfs.plugins.annotations.ScanningMetaDataDeployer;
+import org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentContext;
+import org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentUnit;
+import org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer;
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext;
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
+import org.jboss.test.deployers.BaseDeployersVFSTest;
+import org.jboss.virtual.VirtualFile;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class ScanningMetaDataTestCase extends BaseDeployersVFSTest
+{
+   public ScanningMetaDataTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static Test suite()
+   {
+      return suite(ScanningMetaDataTestCase.class);
+   }
+
+   public void testSMDRead() throws Exception
+   {
+      SchemaResolverDeployer<AbstractScanningMetaData> deployer = new ScanningMetaDataDeployer();
+      deployer.create();
+      try
+      {
+         VirtualFile file = getVirtualFile("/scanning", "smoke");
+         VFSDeploymentContext deployment = new AbstractVFSDeploymentContext(file, "");
+         deployment.setMetaDataPath(Collections.singletonList("META-INF"));
+         VFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(deployment);
+         deployer.deploy(unit);
+         try
+         {
+            ScanningMetaData metaData = unit.getAttachment(ScanningMetaData.class);
+            assertNotNull(metaData);
+            List<PathMetaData> paths = metaData.getPaths();
+            assertNotNull(paths);
+            assertEquals(2, paths.size());
+
+            PathMetaData pmd = paths.get(0);
+            assertNotNull(pmd);
+            assertEquals("myejbs.jar", pmd.getPathName());
+            Set<PathEntryMetaData> includes = pmd.getIncludes();
+            assertNotNull(includes);
+            assertEquals(1, includes.size());
+            Set<PathEntryMetaData> excludes = pmd.getExcludes();
+            assertNotNull(excludes);
+            assertEquals(1, excludes.size());
+
+            pmd = paths.get(1);
+            assertNotNull(pmd);
+            assertEquals("my.war/WEB-INF/classes", pmd.getPathName());
+            includes = pmd.getIncludes();
+            assertNotNull(includes);
+            assertEquals(1, includes.size());
+            assertNull(pmd.getExcludes());
+         }
+         finally
+         {
+            deployer.undeploy(unit);
+         }
+      }
+      finally
+      {
+         deployer.destroy();
+      }
+   }
+}

Added: projects/jboss-deployers/trunk/deployers-vfs/src/test/resources/scanning/smoke/META-INF/jboss-scanning.xml
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/test/resources/scanning/smoke/META-INF/jboss-scanning.xml	                        (rev 0)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/test/resources/scanning/smoke/META-INF/jboss-scanning.xml	2008-11-13 15:12:23 UTC (rev 80937)
@@ -0,0 +1,9 @@
+<scanning xmlns="urn:jboss:scanning:1.0">
+  <path name="myejbs.jar">
+    <include name="com.acme.foo"/>
+    <exclude name="com.acme.foo.bar"/>
+  </path>
+  <path name="my.war/WEB-INF/classes">
+    <include name="com.acme.foo"/>
+  </path>
+</scanning>




More information about the jboss-cvs-commits mailing list