[jboss-cvs] JBossAS SVN: r103010 - in projects/reloaded/tags: jboss-reloaded-vdf-bootstrap-minimal-0.1.1 and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 26 02:50:22 EDT 2010


Author: ALRubinger
Date: 2010-03-26 02:50:21 -0400 (Fri, 26 Mar 2010)
New Revision: 103010

Added:
   projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/
   projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/pom.xml
   projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/main/resources/org.jboss.reloaded_vdf.xml
   projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/test/java/org/jboss/reloaded/api/MainDeployerViaBootstrapUnitTest.java
Removed:
   projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/pom.xml
   projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/main/resources/org.jboss.reloaded_vdf.xml
   projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/test/java/org/jboss/reloaded/api/MainDeployerViaBootstrapUnitTest.java
Log:
[maven-release-plugin]  copy for tag jboss-reloaded-vdf-bootstrap-minimal-0.1.1

Copied: projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1 (from rev 103000, projects/reloaded/trunk/vdf-bootstrap-minimal)

Deleted: projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/pom.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap-minimal/pom.xml	2010-03-26 02:54:04 UTC (rev 103000)
+++ projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/pom.xml	2010-03-26 06:50:21 UTC (rev 103010)
@@ -1,186 +0,0 @@
-<!-- 
-  vi:ts=2:sw=2:expandtab 
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.jboss</groupId>
-    <artifactId>jboss-parent</artifactId>
-    <version>4</version>
-    <relativePath>../build/pom.xml</relativePath>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.jboss.reloaded</groupId>
-  <artifactId>jboss-reloaded-vdf-bootstrap-minimal</artifactId>
-  <version>0.1.1-SNAPSHOT</version>
-  <packaging>jar</packaging>
-  <name>JBoss Reloaded VDF Bootstrap (Minimal)</name>
-  <url>http://www.jboss.org</url>
-  <description>
-  </description>
-
-  <properties>
-    <!-- Versioning -->
-    <version.org.jboss.bootstrap>2.1.0-alpha-2</version.org.jboss.bootstrap>
-    <version.org.jboss.deployers_jboss.deployers.vfs>2.2.0.Alpha1</version.org.jboss.deployers_jboss.deployers.vfs>
-    <version.org.jboss_jbossxb>2.0.2.Beta2</version.org.jboss_jbossxb>
-    <version.org.jboss_jboss.common.core>2.2.14.GA</version.org.jboss_jboss.common.core>
-    <version.junit_junit>4.7</version.junit_junit>
-    <version.org.jboss.shrinkwrap>1.0.0-alpha-3</version.org.jboss.shrinkwrap>
-  </properties>
-
-  <!-- SCM -->
-  <scm>
-    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/reloaded/trunk/vdf-bootstrap-minimal</connection>
-    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/reloaded/trunk/vdf-bootstrap-minimal</developerConnection>
-    <url>http://anonsvn.jboss.org/repos/jbossas/projects/reloaded/trunk/vdf-bootstrap-minimal</url>
-  </scm>
-
-  <build>
-
-    <plugins>
-    
-      <!-- Compiler -->
-      <plugin>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <inherited>true</inherited>
-        <configuration>
-          <source>1.6</source>
-          <target>1.6</target>
-          <showDeprecation>false</showDeprecation>
-          <showWarnings>true</showWarnings>
-          <optimize>true</optimize>
-          <compilerVersion>1.6</compilerVersion>
-          <fork>true</fork>
-          <argLine>-Xmx512M</argLine>
-          <executable>${JAVA_HOME}/bin/javac</executable>
-        </configuration>
-      </plugin>
-
-      <!-- Surefire -->
-      <plugin>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <configuration>
-          <redirectTestOutputToFile>true</redirectTestOutputToFile>
-          <trimStackTrace>false</trimStackTrace>
-          <printSummary>true</printSummary>
-          <includes>
-            <include>**/*UnitTest.java</include>
-          </includes>
-          <forkMode>always</forkMode>
-        </configuration>
-      </plugin>
-
-      <!-- Enforce Maven Environment -->
-      <plugin>
-        <artifactId>maven-enforcer-plugin
-        </artifactId>
-        <executions>
-          <execution>
-            <id>enforce-maven-environment</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <rules>
-            <requireMavenVersion>
-              <version>[2.0.9,2.2.1)</version> <!-- Must be Maven 2.0.9 >= x > 2.2.1  -->
-            </requireMavenVersion>
-            <requireJavaVersion>
-              <version>1.6.0</version> <!-- Must be JDK6 -->
-            </requireJavaVersion>
-          </rules>
-        </configuration>
-      </plugin>      
-
-    </plugins>
-
-  </build>
-
-  <dependencyManagement>
-  </dependencyManagement>
-
-  <dependencies>
-
-    <!-- 
-    Required dependencies (as support for VDF is not implicit
-    in jboss-bootstrap-impl-mc alone
-     -->
-    <dependency>
-      <groupId>org.jboss.bootstrap</groupId>
-      <artifactId>jboss-bootstrap-impl-mc</artifactId>
-      <version>${version.org.jboss.bootstrap}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.jboss.deployers</groupId>
-      <artifactId>jboss-deployers-vfs</artifactId>
-      <version>${version.org.jboss.deployers_jboss.deployers.vfs}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jbossxb</artifactId>
-      <version>${version.org.jboss_jbossxb}</version>
-    </dependency>
-
-      <!-- 
-      TODO: Should be a VFS dependency not declared?  Or is optional?
-      Needed to prevent via VFS:
-      java.lang.NoClassDefFoundError: org/jboss/util/collection/ConcurrentNavigableMap 
-      at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:65)
-      at org.jboss.virtual.VFS.getVFS(VFS.java:187)
-      at org.jboss.virtual.VFS.createNewRoot(VFS.java:202)
-      at VdfTestCase.testVdfBoot(VdfTestCase.java:111)
-      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
-      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
-      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
-      at java.lang.reflect.Method.invoke(Method.java:597)
-      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
-      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
-      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
-      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
-      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
-      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
-      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
-      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
-      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
-      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
-      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
-      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
-      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
-      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
-      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
-      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
-      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
-      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
-    Caused by: java.lang.ClassNotFoundException: org.jboss.util.collection.ConcurrentNavigableMap
-      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
-      at java.security.AccessController.doPrivileged(Native Method)
-      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
-      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
-      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
-      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
-      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
-      ... 26 more -->
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-common-core</artifactId>
-      <version>${version.org.jboss_jboss.common.core}</version>
-    </dependency>
-
-    <!-- Test Dependencies -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>${version.junit_junit}</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.jboss.shrinkwrap</groupId>
-      <artifactId>shrinkwrap-impl-base</artifactId>
-      <version>${version.org.jboss.shrinkwrap}</version>
-      <scope>test</scope>
-    </dependency>
-
-  </dependencies>
-</project>

Copied: projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/pom.xml (from rev 103009, projects/reloaded/trunk/vdf-bootstrap-minimal/pom.xml)
===================================================================
--- projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/pom.xml	                        (rev 0)
+++ projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/pom.xml	2010-03-26 06:50:21 UTC (rev 103010)
@@ -0,0 +1,186 @@
+<!-- 
+  vi:ts=2:sw=2:expandtab 
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss</groupId>
+    <artifactId>jboss-parent</artifactId>
+    <version>4</version>
+    <relativePath>../build/pom.xml</relativePath>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.reloaded</groupId>
+  <artifactId>jboss-reloaded-vdf-bootstrap-minimal</artifactId>
+  <version>0.1.1</version>
+  <packaging>jar</packaging>
+  <name>JBoss Reloaded VDF Bootstrap (Minimal)</name>
+  <url>http://www.jboss.org</url>
+  <description>
+  </description>
+
+  <properties>
+    <!-- Versioning -->
+    <version.org.jboss.bootstrap>2.1.0-alpha-4</version.org.jboss.bootstrap>
+    <version.org.jboss.deployers_jboss.deployers.vfs>2.2.0.Alpha4</version.org.jboss.deployers_jboss.deployers.vfs>
+    <version.org.jboss_jbossxb>2.0.2.Beta2</version.org.jboss_jbossxb>
+    <version.org.jboss_jboss.common.core>2.2.17.GA</version.org.jboss_jboss.common.core>
+    <version.junit_junit>4.7</version.junit_junit>
+    <version.org.jboss.shrinkwrap>1.0.0-alpha-6</version.org.jboss.shrinkwrap>
+  </properties>
+
+  <!-- SCM -->
+  <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1</connection>
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1</developerConnection>
+    <url>http://anonsvn.jboss.org/repos/jbossas/projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1</url>
+  </scm>
+
+  <build>
+
+    <plugins>
+    
+      <!-- Compiler -->
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <inherited>true</inherited>
+        <configuration>
+          <source>1.6</source>
+          <target>1.6</target>
+          <showDeprecation>false</showDeprecation>
+          <showWarnings>true</showWarnings>
+          <optimize>true</optimize>
+          <compilerVersion>1.6</compilerVersion>
+          <fork>true</fork>
+          <argLine>-Xmx512M</argLine>
+          <executable>${JAVA_HOME}/bin/javac</executable>
+        </configuration>
+      </plugin>
+
+      <!-- Surefire -->
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
+          <trimStackTrace>false</trimStackTrace>
+          <printSummary>true</printSummary>
+          <includes>
+            <include>**/*UnitTest.java</include>
+          </includes>
+          <forkMode>always</forkMode>
+        </configuration>
+      </plugin>
+
+      <!-- Enforce Maven Environment -->
+      <plugin>
+        <artifactId>maven-enforcer-plugin
+        </artifactId>
+        <executions>
+          <execution>
+            <id>enforce-maven-environment</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <rules>
+            <requireMavenVersion>
+              <version>[2.0.9,2.2.1)</version> <!-- Must be Maven 2.0.9 >= x > 2.2.1  -->
+            </requireMavenVersion>
+            <requireJavaVersion>
+              <version>1.6.0</version> <!-- Must be JDK6 -->
+            </requireJavaVersion>
+          </rules>
+        </configuration>
+      </plugin>      
+
+    </plugins>
+
+  </build>
+
+  <dependencyManagement>
+  </dependencyManagement>
+
+  <dependencies>
+
+    <!-- 
+    Required dependencies (as support for VDF is not implicit
+    in jboss-bootstrap-impl-mc alone
+     -->
+    <dependency>
+      <groupId>org.jboss.bootstrap</groupId>
+      <artifactId>jboss-bootstrap-impl-mc</artifactId>
+      <version>${version.org.jboss.bootstrap}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.deployers</groupId>
+      <artifactId>jboss-deployers-vfs</artifactId>
+      <version>${version.org.jboss.deployers_jboss.deployers.vfs}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jbossxb</artifactId>
+      <version>${version.org.jboss_jbossxb}</version>
+    </dependency>
+
+      <!-- 
+      TODO: Should be a VFS dependency not declared?  Or is optional?
+      Needed to prevent via VFS:
+      java.lang.NoClassDefFoundError: org/jboss/util/collection/ConcurrentNavigableMap 
+      at org.jboss.virtual.plugins.context.file.FileSystemContextFactory.getVFS(FileSystemContextFactory.java:65)
+      at org.jboss.virtual.VFS.getVFS(VFS.java:187)
+      at org.jboss.virtual.VFS.createNewRoot(VFS.java:202)
+      at VdfTestCase.testVdfBoot(VdfTestCase.java:111)
+      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+      at java.lang.reflect.Method.invoke(Method.java:597)
+      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
+      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
+      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
+      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
+      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
+      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
+      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
+      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
+      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
+      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
+      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
+      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
+      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
+      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
+      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
+      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
+      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
+      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
+    Caused by: java.lang.ClassNotFoundException: org.jboss.util.collection.ConcurrentNavigableMap
+      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
+      at java.security.AccessController.doPrivileged(Native Method)
+      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
+      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
+      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
+      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
+      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
+      ... 26 more -->
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-core</artifactId>
+      <version>${version.org.jboss_jboss.common.core}</version>
+    </dependency>
+
+    <!-- Test Dependencies -->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>${version.junit_junit}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.shrinkwrap</groupId>
+      <artifactId>shrinkwrap-impl-base</artifactId>
+      <version>${version.org.jboss.shrinkwrap}</version>
+      <scope>test</scope>
+    </dependency>
+
+  </dependencies>
+</project>

Deleted: projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/main/resources/org.jboss.reloaded_vdf.xml
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap-minimal/src/main/resources/org.jboss.reloaded_vdf.xml	2010-03-26 02:54:04 UTC (rev 103000)
+++ projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/main/resources/org.jboss.reloaded_vdf.xml	2010-03-26 06:50:21 UTC (rev 103010)
@@ -1,93 +0,0 @@
-<deployment xmlns="urn:jboss:bean-deployer:2.0">
-
-   <!-- The ManagedObjectFactory -->
-   <bean name="ManagedObjectFactory">
-      <constructor factoryClass="org.jboss.managed.api.factory.ManagedObjectFactory" factoryMethod="getInstance"/>
-      <!-- Accept any implementor of InstanceClassFactory -->
-      <incallback method="addInstanceClassFactory"/>
-      <uncallback method="removeInstanceClassFactory"/>
-   </bean>
-
-   <!-- The MainDeployer -->
-   <bean name="MainDeployer" class="org.jboss.deployers.plugins.main.MainDeployerImpl">
-      <property name="structuralDeployers"><inject bean="StructuralDeployers"/></property>
-      <property name="deployers"><inject bean="Deployers"/></property>
-      <property name="mgtDeploymentCreator"><inject bean="ManagedDeploymentCreator"/></property>
-   </bean>
-
-   <!-- The ManagedDeploymentCreator implementation -->
-   <bean name="ManagedDeploymentCreator" class="org.jboss.deployers.plugins.managed.DefaultManagedDeploymentCreator" />
-   <!-- The ManagedObjectCreator implementation -->
-   <bean name="ManagedObjectCreator" class="org.jboss.deployers.spi.deployer.helpers.DefaultManagedObjectCreator">
-      <property name="mof"><inject bean="ManagedObjectFactory"/></property>
-   </bean>
-   
-   <!-- The holder for deployers that determine structure -->
-   <bean name="StructuralDeployers" class="org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl">
-      <property name="structureBuilder">
-         <!-- The consolidator of the structure information -->
-         <bean name="StructureBuilder" class="org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder"/>
-      </property>
-      <!-- Accept any implementor of structure deployer -->
-      <incallback method="addDeployer"/>
-      <uncallback method="removeDeployer"/>
-   </bean>
-
-   <!-- The holder for deployers that do real deployment -->
-   <bean name="Deployers" class="org.jboss.deployers.plugins.deployers.DeployersImpl">
-      <constructor><parameter><inject bean="jboss.kernel:service=KernelController"/></parameter></constructor>
-      <property name="mgtObjectCreator"><inject bean="ManagedObjectCreator"/></property>
-      <!-- Accept any implementor of deployer -->
-      <incallback method="addDeployer"/>
-      <uncallback method="removeDeployer"/>
-   </bean>
-
-   <!-- A declared structure descriptor deployer -->
-   <bean name="DeclaredStructure" class="org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure"/>
-
-    <!-- JAR Structure -->
-    <bean name="JARStructure" class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure">
-       <property name="candidateStructureVisitorFactory">
-          <!-- Any file that is not an ordinary directory is a candidate -->
-          <bean name="JARStructureCandidates" class="org.jboss.deployers.vfs.spi.structure.helpers.DefaultCandidateStructureVisitorFactory">
-             <!-- A filter to exclude some obvious non-subdeployments -->
-             <property name="filter">
-                <bean name="JARFilter" class="org.jboss.virtual.plugins.vfs.helpers.SuffixesExcludeFilter">
-                   <constructor><parameter>
-                      <list elementClass="java.lang.String">
-                         <!-- Exclude class files as subdeployments -->
-                         <value>.class</value>
-                      </list>
-                   </parameter></constructor>
-                </bean>
-             </property>
-          </bean>
-       </property>
-    </bean>
-
-    <!-- File Structure -->
-    <bean name="FileStructure" class="org.jboss.deployers.vfs.plugins.structure.file.FileStructure">
-       <!-- Unless specified the default list of suffixes is -service.xml, -beans.xml, -ds.xml, -aop.xml -->
-       <constructor>
-          <parameter>
-             <set elementClass="java.lang.String">
-                <value>-service.xml</value>
-                <value>-beans.xml</value>
-                <value>-ds.xml</value>
-                <value>-aop.xml</value>
-             </set>
-          </parameter>
-       </constructor>
-    </bean>
-
-   <!-- POJO Deployment -->
-   <bean name="BeanDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanDeployer"/>
-   <bean name="KernelDeploymentDeployer" class="org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer"/>
-   <bean name="BeanMetaDataDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer">
-      <constructor><parameter class="org.jboss.dependency.spi.Controller"><inject bean="jboss.kernel:service=KernelController"/></parameter></constructor>
-      <!-- Accept any implementor of KernelControllerContextCreator -->
-      <incallback method="addControllerContextCreator"/>
-      <uncallback method="removeControllerContextCreator"/>
-   </bean>
-
-</deployment>

Copied: projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/main/resources/org.jboss.reloaded_vdf.xml (from rev 103008, projects/reloaded/trunk/vdf-bootstrap-minimal/src/main/resources/org.jboss.reloaded_vdf.xml)
===================================================================
--- projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/main/resources/org.jboss.reloaded_vdf.xml	                        (rev 0)
+++ projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/main/resources/org.jboss.reloaded_vdf.xml	2010-03-26 06:50:21 UTC (rev 103010)
@@ -0,0 +1,93 @@
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- The ManagedObjectFactory -->
+   <bean name="ManagedObjectFactory">
+      <constructor factoryClass="org.jboss.managed.api.factory.ManagedObjectFactory" factoryMethod="getInstance"/>
+      <!-- Accept any implementor of InstanceClassFactory -->
+      <incallback method="addInstanceClassFactory"/>
+      <uncallback method="removeInstanceClassFactory"/>
+   </bean>
+
+   <!-- The MainDeployer -->
+   <bean name="MainDeployer" class="org.jboss.deployers.plugins.main.MainDeployerImpl">
+      <property name="structuralDeployers"><inject bean="StructuralDeployers"/></property>
+      <property name="deployers"><inject bean="Deployers"/></property>
+      <property name="mgtDeploymentCreator"><inject bean="ManagedDeploymentCreator"/></property>
+   </bean>
+
+   <!-- The ManagedDeploymentCreator implementation -->
+   <bean name="ManagedDeploymentCreator" class="org.jboss.deployers.plugins.managed.DefaultManagedDeploymentCreator" />
+   <!-- The ManagedObjectCreator implementation -->
+   <bean name="ManagedObjectCreator" class="org.jboss.deployers.spi.deployer.helpers.DefaultManagedObjectCreator">
+      <property name="mof"><inject bean="ManagedObjectFactory"/></property>
+   </bean>
+   
+   <!-- The holder for deployers that determine structure -->
+   <bean name="StructuralDeployers" class="org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl">
+      <property name="structureBuilder">
+         <!-- The consolidator of the structure information -->
+         <bean name="StructureBuilder" class="org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder"/>
+      </property>
+      <!-- Accept any implementor of structure deployer -->
+      <incallback method="addDeployer"/>
+      <uncallback method="removeDeployer"/>
+   </bean>
+
+   <!-- The holder for deployers that do real deployment -->
+   <bean name="Deployers" class="org.jboss.deployers.plugins.deployers.DeployersImpl">
+      <constructor><parameter><inject bean="jboss.kernel:service=KernelController"/></parameter></constructor>
+      <property name="mgtObjectCreator"><inject bean="ManagedObjectCreator"/></property>
+      <!-- Accept any implementor of deployer -->
+      <incallback method="addDeployer"/>
+      <uncallback method="removeDeployer"/>
+   </bean>
+
+   <!-- A declared structure descriptor deployer -->
+   <bean name="DeclaredStructure" class="org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure"/>
+
+    <!-- JAR Structure -->
+    <bean name="JARStructure" class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure">
+       <property name="candidateStructureVisitorFactory">
+          <!-- Any file that is not an ordinary directory is a candidate -->
+          <bean name="JARStructureCandidates" class="org.jboss.deployers.vfs.spi.structure.helpers.DefaultCandidateStructureVisitorFactory">
+             <!-- A filter to exclude some obvious non-subdeployments -->
+             <property name="filter">
+                <bean name="JARFilter" class="org.jboss.vfs.util.SuffixesExcludeFilter">
+                   <constructor><parameter>
+                      <list elementClass="java.lang.String">
+                         <!-- Exclude class files as subdeployments -->
+                         <value>.class</value>
+                      </list>
+                   </parameter></constructor>
+                </bean>
+             </property>
+          </bean>
+       </property>
+    </bean>
+
+    <!-- File Structure -->
+    <bean name="FileStructure" class="org.jboss.deployers.vfs.plugins.structure.file.FileStructure">
+       <!-- Unless specified the default list of suffixes is -service.xml, -beans.xml, -ds.xml, -aop.xml -->
+       <constructor>
+          <parameter>
+             <set elementClass="java.lang.String">
+                <value>-service.xml</value>
+                <value>-beans.xml</value>
+                <value>-ds.xml</value>
+                <value>-aop.xml</value>
+             </set>
+          </parameter>
+       </constructor>
+    </bean>
+
+   <!-- POJO Deployment -->
+   <bean name="BeanDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanDeployer"/>
+   <bean name="KernelDeploymentDeployer" class="org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer"/>
+   <bean name="BeanMetaDataDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer">
+      <constructor><parameter class="org.jboss.dependency.spi.Controller"><inject bean="jboss.kernel:service=KernelController"/></parameter></constructor>
+      <!-- Accept any implementor of KernelControllerContextCreator -->
+      <incallback method="addControllerContextCreator"/>
+      <uncallback method="removeControllerContextCreator"/>
+   </bean>
+
+</deployment>

Deleted: projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/test/java/org/jboss/reloaded/api/MainDeployerViaBootstrapUnitTest.java
===================================================================
--- projects/reloaded/trunk/vdf-bootstrap-minimal/src/test/java/org/jboss/reloaded/api/MainDeployerViaBootstrapUnitTest.java	2010-03-26 02:54:04 UTC (rev 103000)
+++ projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/test/java/org/jboss/reloaded/api/MainDeployerViaBootstrapUnitTest.java	2010-03-26 06:50:21 UTC (rev 103010)
@@ -1,232 +0,0 @@
-package org.jboss.reloaded.api;
-
-import java.io.File;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder;
-import org.jboss.bootstrap.api.descriptor.BootstrapDescriptor;
-import org.jboss.bootstrap.api.lifecycle.LifecycleState;
-import org.jboss.bootstrap.api.mc.server.MCServer;
-import org.jboss.bootstrap.api.mc.server.MCServerFactory;
-import org.jboss.deployers.client.spi.Deployment;
-import org.jboss.deployers.client.spi.main.MainDeployer;
-import org.jboss.deployers.spi.DeploymentException;
-import org.jboss.deployers.spi.deployer.Deployer;
-import org.jboss.deployers.spi.deployer.helpers.AbstractDeployer;
-import org.jboss.deployers.structure.spi.DeploymentUnit;
-import org.jboss.deployers.vfs.spi.client.VFSDeployment;
-import org.jboss.deployers.vfs.spi.client.VFSDeploymentFactory;
-import org.jboss.kernel.spi.dependency.KernelController;
-import org.jboss.logging.Logger;
-import org.jboss.shrinkwrap.api.Archives;
-import org.jboss.shrinkwrap.api.exporter.ZipExporter;
-import org.jboss.shrinkwrap.api.spec.JavaArchive;
-import org.jboss.virtual.VFS;
-import org.jboss.virtual.VirtualFile;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-/**
- * Test of MainDeployer/VDF which installs necessary components
- * into by using the jboss-bootstrap API and deployment descriptors.
- * Intended to be used for comparison with direct declarative access
- * as exhibited by {@link MainDeployerDeclarativeUnitTest}
- * 
- * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
- * @version $Revision: $
- */
-public class MainDeployerViaBootstrapUnitTest
-{
-
-   //-------------------------------------------------------------------------------------||
-   // Class Members ----------------------------------------------------------------------||
-   //-------------------------------------------------------------------------------------||
-
-   /**
-    * Logger
-    */
-   private static final Logger log = Logger.getLogger(MainDeployerViaBootstrapUnitTest.class);
-
-   /**
-    * The Server
-    */
-   private static MCServer server;
-
-   /**
-    * Name of the system property signaling JBossXB to ignore order
-    */
-   private static final String NAME_SYSPROP_JBOSSXB_IGNORE_ORDER = "xb.builder.useUnorderedSequence";
-
-   /**
-    * Value to set for JBossXB ordering
-    */
-   private static final String VALUE_SYSPROP_JBOSSXB_IGNORE_ORDER = "true";
-
-   /**
-    * Name of the archive we'll deploy
-    */
-   private static final String NAME_ARCHIVE = "testDeployment.jar";
-
-   /**
-    * Extension to give to TMP files
-    */
-   private static final String EXTENSION_TMP = ".tmp";
-
-   /**
-    * MC bean name of the {@link MainDeployer}
-    */
-   protected static final String NAME_MC_MAIN_DEPLOYER = "MainDeployer";
-
-   //-------------------------------------------------------------------------------------||
-   // Lifecycle --------------------------------------------------------------------------||
-   //-------------------------------------------------------------------------------------||
-
-   /**
-    * Setup JBossXB
-    * TODO @see comments below so that this step is not necessary
-    */
-   @BeforeClass
-   public static void setupJBossXb()
-   {
-      AccessController.doPrivileged(new PrivilegedAction<Void>()
-      {
-         public Void run()
-         {
-            // Must use unordered sequence else JBossXB will explode
-            //TODO Define a proper vfs.xml which is properly ordered
-            System.setProperty(NAME_SYSPROP_JBOSSXB_IGNORE_ORDER, VALUE_SYSPROP_JBOSSXB_IGNORE_ORDER);
-            return null;
-         }
-      });
-   }
-
-   /**
-    * Creates the server
-    */
-   @BeforeClass
-   public static void createAndConfigureServer()
-   {
-      // Create a server
-      final MCServer mcServer = MCServerFactory.createServer();
-
-      // Add the required bootstrap descriptors
-      final List<BootstrapDescriptor> descriptors = mcServer.getConfiguration().getBootstrapDescriptors();
-      descriptors.add(ReloadedDescriptors.getClassLoadingDescriptor());
-      descriptors.add(ReloadedDescriptors.getVdfDescriptor());
-
-      log.info("Using bootstrap descriptors:" + descriptors);
-
-      // Set
-      server = mcServer;
-   }
-
-   /**
-    * Starts the server before each test
-    * @throws Exception
-    */
-   @Before
-   public void startServer() throws Exception
-   {
-      long before = System.currentTimeMillis();
-      server.start();
-      long after = System.currentTimeMillis();
-      long total = after - before;
-      log.info("Boot took: " + total + "ms");
-   }
-
-   /**
-    * Stops the server after each test
-    * @throws Exception
-    */
-   @After
-   public void stopServer() throws Exception
-   {
-      if (server != null && server.getState().equals(LifecycleState.STARTED))
-      {
-         server.stop();
-      }
-   }
-
-   //-------------------------------------------------------------------------------------||
-   // Tests ------------------------------------------------------------------------------||
-   //-------------------------------------------------------------------------------------||
-
-   /**
-    * Ensures that VDF is brought up by:
-    * 1) Installing a new Deployer
-    * 2) Processing a deployment via MainDeployer
-    * 3) Ensuring the new Deployer processes the incoming DeploymentUnit
-    */
-   @Test
-   public void testVdfBoot() throws Throwable
-   {
-      // Get the KernelController
-      final KernelController controller = server.getKernel().getController();
-
-      // Get the MainDeployer (should have been installed via the lifecycle)
-      final MainDeployer mainDeployer = (MainDeployer) controller.getInstalledContext(NAME_MC_MAIN_DEPLOYER)
-            .getTarget();
-      TestCase.assertNotNull(MainDeployer.class.getName() + " instance was not installed into MC", mainDeployer);
-
-      // Install a caching deployer which will remember the last deployment
-      final CachingDeployer deployer = new CachingDeployer();
-      final String deployerName = deployer.getClass().getSimpleName();
-      final BeanMetaDataBuilder bmdb = BeanMetaDataBuilder.createBuilder(deployerName, deployer.getClass().getName());
-      controller.install(bmdb.getBeanMetaData(), deployer);
-
-      // Construct a test JAR
-      final JavaArchive cachingDeployerJar = Archives.create(NAME_ARCHIVE, JavaArchive.class).addClass(this.getClass());
-
-      // Flush out to a real File
-      final File tmpFile = File.createTempFile(cachingDeployerJar.getName(), EXTENSION_TMP);
-      cachingDeployerJar.as(ZipExporter.class).exportZip(tmpFile, true);
-      tmpFile.deleteOnExit();
-
-      // Deploy the test JAR
-      final VirtualFile vFile = VFS.createNewRoot(tmpFile.toURI());
-      final VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(vFile);
-      mainDeployer.addDeployment(deployment);
-      mainDeployer.process();
-      mainDeployer.checkComplete();
-
-      // Obtain the last deployed
-      DeploymentUnit lastDeployed = deployer.lastDeployed;
-      TestCase.assertEquals(vFile.toURI().toURL().toExternalForm(), lastDeployed.getName());
-
-      // Undeploy
-      mainDeployer.undeploy(deployment);
-      mainDeployer.process();
-      mainDeployer.checkComplete();
-   }
-
-   //-------------------------------------------------------------------------------------||
-   // Inner Classes ----------------------------------------------------------------------||
-   //-------------------------------------------------------------------------------------||
-
-   /**
-    * Simple {@link Deployer} to cache and make accessible the last-deployed
-    * {@link DeploymentUnit}.  Used to ensure that we can install deployers 
-    * into the chain and that they'll process new {@link Deployment}s.
-    */
-   protected static class CachingDeployer extends AbstractDeployer
-   {
-
-      /**
-       * The last unit deployed
-       */
-      DeploymentUnit lastDeployed;
-
-      public void deploy(final DeploymentUnit unit) throws DeploymentException
-      {
-         log.info("Deploying: " + unit);
-         lastDeployed = unit;
-      }
-
-   }
-}

Copied: projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/test/java/org/jboss/reloaded/api/MainDeployerViaBootstrapUnitTest.java (from rev 103008, projects/reloaded/trunk/vdf-bootstrap-minimal/src/test/java/org/jboss/reloaded/api/MainDeployerViaBootstrapUnitTest.java)
===================================================================
--- projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/test/java/org/jboss/reloaded/api/MainDeployerViaBootstrapUnitTest.java	                        (rev 0)
+++ projects/reloaded/tags/jboss-reloaded-vdf-bootstrap-minimal-0.1.1/src/test/java/org/jboss/reloaded/api/MainDeployerViaBootstrapUnitTest.java	2010-03-26 06:50:21 UTC (rev 103010)
@@ -0,0 +1,236 @@
+package org.jboss.reloaded.api;
+
+import java.io.File;
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+import java.util.List;
+
+import junit.framework.TestCase;
+
+import org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder;
+import org.jboss.bootstrap.api.descriptor.BootstrapDescriptor;
+import org.jboss.bootstrap.api.lifecycle.LifecycleState;
+import org.jboss.bootstrap.api.mc.server.MCServer;
+import org.jboss.bootstrap.api.mc.server.MCServerFactory;
+import org.jboss.deployers.client.spi.Deployment;
+import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.Deployer;
+import org.jboss.deployers.spi.deployer.helpers.AbstractDeployer;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.deployers.vfs.spi.client.VFSDeployment;
+import org.jboss.deployers.vfs.spi.client.VFSDeploymentFactory;
+import org.jboss.kernel.spi.dependency.KernelController;
+import org.jboss.logging.Logger;
+import org.jboss.shrinkwrap.api.Archives;
+import org.jboss.shrinkwrap.api.exporter.ZipExporter;
+import org.jboss.shrinkwrap.api.spec.JavaArchive;
+import org.jboss.vfs.VFS;
+import org.jboss.vfs.VirtualFile;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Test of MainDeployer/VDF which installs necessary components
+ * into by using the jboss-bootstrap API and deployment descriptors.
+ * Intended to be used for comparison with direct declarative access
+ * as exhibited by {@link MainDeployerDeclarativeUnitTest}
+ * 
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public class MainDeployerViaBootstrapUnitTest
+{
+
+   //-------------------------------------------------------------------------------------||
+   // Class Members ----------------------------------------------------------------------||
+   //-------------------------------------------------------------------------------------||
+
+   /**
+    * Logger
+    */
+   private static final Logger log = Logger.getLogger(MainDeployerViaBootstrapUnitTest.class);
+
+   /**
+    * The Server
+    */
+   private static MCServer server;
+
+   /**
+    * Name of the system property signaling JBossXB to ignore order
+    */
+   private static final String NAME_SYSPROP_JBOSSXB_IGNORE_ORDER = "xb.builder.useUnorderedSequence";
+
+   /**
+    * Value to set for JBossXB ordering
+    */
+   private static final String VALUE_SYSPROP_JBOSSXB_IGNORE_ORDER = "true";
+
+   /**
+    * Name of the archive we'll deploy
+    */
+   private static final String NAME_ARCHIVE = "testDeployment.jar";
+
+   /**
+    * Extension to give to TMP files
+    */
+   private static final String EXTENSION_TMP = ".tmp";
+
+   /**
+    * MC bean name of the {@link MainDeployer}
+    */
+   protected static final String NAME_MC_MAIN_DEPLOYER = "MainDeployer";
+
+   //-------------------------------------------------------------------------------------||
+   // Lifecycle --------------------------------------------------------------------------||
+   //-------------------------------------------------------------------------------------||
+
+   /**
+    * Setup JBossXB
+    * TODO @see comments below so that this step is not necessary
+    */
+   @BeforeClass
+   public static void setupJBossXb()
+   {
+      AccessController.doPrivileged(new PrivilegedAction<Void>()
+      {
+         public Void run()
+         {
+            // Must use unordered sequence else JBossXB will explode
+            //TODO Define a proper vfs.xml which is properly ordered
+            System.setProperty(NAME_SYSPROP_JBOSSXB_IGNORE_ORDER, VALUE_SYSPROP_JBOSSXB_IGNORE_ORDER);
+            return null;
+         }
+      });
+   }
+
+   /**
+    * Creates the server
+    */
+   @BeforeClass
+   public static void createAndConfigureServer()
+   {
+      // Create a server
+      final MCServer mcServer = MCServerFactory.createServer();
+
+      // Add the required bootstrap descriptors
+      final List<BootstrapDescriptor> descriptors = mcServer.getConfiguration().getBootstrapDescriptors();
+      descriptors.add(ReloadedDescriptors.getClassLoadingDescriptor());
+      descriptors.add(ReloadedDescriptors.getVdfDescriptor());
+
+      log.info("Using bootstrap descriptors:" + descriptors);
+
+      // Set
+      server = mcServer;
+   }
+
+   /**
+    * Starts the server before each test
+    * @throws Exception
+    */
+   @Before
+   public void startServer() throws Exception
+   {
+      long before = System.currentTimeMillis();
+      server.start();
+      long after = System.currentTimeMillis();
+      long total = after - before;
+      log.info("Boot took: " + total + "ms");
+   }
+
+   /**
+    * Stops the server after each test
+    * @throws Exception
+    */
+   @After
+   public void stopServer() throws Exception
+   {
+      if (server != null && server.getState().equals(LifecycleState.STARTED))
+      {
+         server.stop();
+      }
+   }
+
+   //-------------------------------------------------------------------------------------||
+   // Tests ------------------------------------------------------------------------------||
+   //-------------------------------------------------------------------------------------||
+
+   /**
+    * Ensures that VDF is brought up by:
+    * 1) Installing a new Deployer
+    * 2) Processing a deployment via MainDeployer
+    * 3) Ensuring the new Deployer processes the incoming DeploymentUnit
+    */
+   @Test
+   public void testVdfBoot() throws Throwable
+   {
+      // Get the KernelController
+      final KernelController controller = server.getKernel().getController();
+
+      // Get the MainDeployer (should have been installed via the lifecycle)
+      final MainDeployer mainDeployer = (MainDeployer) controller.getInstalledContext(NAME_MC_MAIN_DEPLOYER)
+            .getTarget();
+      TestCase.assertNotNull(MainDeployer.class.getName() + " instance was not installed into MC", mainDeployer);
+
+      // Install a caching deployer which will remember the last deployment
+      final CachingDeployer deployer = new CachingDeployer();
+      final String deployerName = deployer.getClass().getSimpleName();
+      final BeanMetaDataBuilder bmdb = BeanMetaDataBuilder.createBuilder(deployerName, deployer.getClass().getName());
+      controller.install(bmdb.getBeanMetaData(), deployer);
+
+      // Construct a test JAR
+      final JavaArchive cachingDeployerJar = Archives.create(NAME_ARCHIVE, JavaArchive.class).addClass(this.getClass());
+
+      // Flush out to a real File
+      final File tmpFile = File.createTempFile(cachingDeployerJar.getName(), EXTENSION_TMP);
+      cachingDeployerJar.as(ZipExporter.class).exportZip(tmpFile, true);
+      tmpFile.deleteOnExit();
+
+      // Deploy the test JAR
+      final VirtualFile vFile = VFS.getChild(tmpFile.toURI());
+      final VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(vFile);
+      mainDeployer.addDeployment(deployment);
+      mainDeployer.process();
+      mainDeployer.checkComplete();
+
+      // Obtain the last deployed
+      DeploymentUnit lastDeployed = deployer.lastDeployed;
+      final String path = vFile.toURI().toURL().getPath();
+      TestCase.assertEquals(path.substring(path.lastIndexOf('/') + 1, path.length()), lastDeployed.getSimpleName());
+
+      // Undeploy
+      mainDeployer.undeploy(deployment);
+      mainDeployer.process();
+      mainDeployer.checkComplete();
+   }
+
+   //-------------------------------------------------------------------------------------||
+   // Inner Classes ----------------------------------------------------------------------||
+   //-------------------------------------------------------------------------------------||
+
+   /**
+    * Simple {@link Deployer} to cache and make accessible the last-deployed
+    * {@link DeploymentUnit}.  Used to ensure that we can install deployers 
+    * into the chain and that they'll process new {@link Deployment}s.
+    */
+   protected static class CachingDeployer extends AbstractDeployer
+   {
+
+      /**
+       * The last unit deployed
+       */
+      DeploymentUnit lastDeployed;
+
+      public void deploy(final DeploymentUnit unit) throws DeploymentException
+      {
+         log.info("Deploying: " + unit);
+         // Hack into internals to get the underlying context
+
+         // Cache the real underlying deployemt if you have access to it.
+         lastDeployed = unit;
+      }
+
+   }
+}




More information about the jboss-cvs-commits mailing list