Examples of VFSDeploymentContext


Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

      {
         boolean trace = log.isTraceEnabled();
         if (trace)
            log.trace("Apply context: " + context.getName() + " " + contextInfo);
        
         VFSDeploymentContext vfsContext = (VFSDeploymentContext) context;
         List<MetaDataEntry> metaDataPath = contextInfo.getMetaDataPath();
         if (metaDataPath != null && metaDataPath.isEmpty() == false)
            vfsContext.setMetaDataPath(contextInfo.getMetaDataPath());
        
         boolean classPathHadVF = false;

         List<ClassPathEntry> classPathEntries = contextInfo.getClassPath();
         VFSDeploymentContext top = vfsContext.getTopLevel();
         VirtualFile root = top.getRoot();
         List<VirtualFile> classPath = new ArrayList<VirtualFile>();

         if (classPathEntries != null)
         {
            for (ClassPathEntry entry : classPathEntries)
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

   protected abstract boolean shouldFlattenContext();

   public void testSarWithLib() throws Throwable
   {
      VFSDeploymentContext context = assertDeploy("/structure/dir", "test-in-lib.sar");
      assertChildContexts(context, "lib/test.jar");
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

      assertChildContexts(context, "lib/test.jar");
   }

   public void testSarWithNestedLib() throws Throwable
   {
      VFSDeploymentContext context = assertDeploy("/structure/dir", "test-in-lib-nested.sar");
      assertChildContexts(context, "lib/nested/test.jar");
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

      assertChildContexts(context, "lib/nested/test.jar");
   }

   public void testEarSarWithLib() throws Throwable
   {
      VFSDeploymentContext context = assertDeploy("/structure/dir", "simple.ear");
      assertChildContexts(context, shouldFlattenContext(), "test-in-lib.sar", "test-in-lib.sar/lib/test.jar");
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

      assertChildContexts(context, shouldFlattenContext(), "test-in-lib.sar", "test-in-lib.sar/lib/test.jar");
   }

   public void testEarSarWithNestedLib() throws Throwable
   {
      VFSDeploymentContext context = assertDeploy("/structure/dir", "nested.ear");
      assertChildContexts(context, shouldFlattenContext(), "test-in-lib-nested.sar", "test-in-lib-nested.sar/lib/nested/test.jar");
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

      return determineStructureWithStructureDeployers(deployment, new JARStructure(), new WARStructure(), gs);
   }

   public void testEsbStructure() throws Throwable
   {
      VFSDeploymentContext context = assertDeploy("/structure/dir", "beve.esb");
      assertChildContexts(context, "jars/j1.jar", "wars/w1.war");
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

      return determineStructureWithStructureDeployers(deployment, false, new DeclaredStructure(), new JARStructure(), new WARStructure(), new FileStructure());
   }

   public void testExplicitInnerUnpack() throws Throwable
   {
      VFSDeploymentContext root = assertDeploy("/structure/explicit", "explicit.ear");
      assertChildContexts(root, "inner.war");
      assertUnpacked(root.getRoot().findChild("inner.war"));
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

      return determineStructureWithStructureDeployers(deployment, new DeclaredStructure(), new JARStructure(), new FileStructure());
   }

   public void testMultipleMetadata() throws Throwable
   {
      VFSDeploymentContext root = assertDeploy("/structure/multiple", "metadata.deployer");
      assertChildContexts(root, "jar1.jar");

      // Validate the root context info
      assertMetaDatas(root, "META-INF", "jmx/interceptors", "jmx/interceptors/scripts");
      assertClassPath(root, "jar1.jar");

      VirtualFile bsh = root.getMetaDataFile("myscript.bsh");
      assertNotNull(bsh);
      List<VirtualFile> bshs = root.getMetaDataFiles(null, ".bsh");
      assertNotNull(bshs);
      assertEquals(1, bshs.size());
      VirtualFile security = root.getMetaDataFile("security-config.xml");
      assertNotNull(security);
      List<VirtualFile> cfgs = root.getMetaDataFiles(null, "-config.xml");
      assertNotNull(cfgs);
      assertEquals(1, cfgs.size());
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

      return determineStructureWithStructureDeployer(deployment, new DeclaredStructure());
   }

   public void testComplex() throws Throwable
   {
      VFSDeploymentContext root = assertDeploy("/structure/explicit", "complex.deployer");
      assertChildContexts(root, "sub.jar", "x.war");

      // Validate the root context info
      assertMetaData(root, "META-INF");
      assertClassPath(root, "cp-mf.jar", "jar1.jar", "lib-dir/jar0.jar", "lib-dir/jar2.jar");

      // Validate the sub.jar
      VFSDeploymentContext subJar = assertChildContext(root, "sub.jar");
      assertMetaData(subJar, "META-INF");
      assertClassPath(subJar, root, "cp-mf.jar");

      // Validate the x.war context info
      VFSDeploymentContext xwar = assertChildContext(root, "x.war");
      assertMetaData(xwar, "WEB-INF");
      assertClassPath(xwar, "WEB-INF/classes", "WEB-INF/lib/w0.jar");
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

      VFSDeployment deployment = createDeployment("/structureprocessor", path);
      main.deploy(deployment);
      try
      {
         VFSDeploymentContext vdc = getTopDeploymentContext(main, path);
         VirtualFile root = vdc.getRoot();
         assertTrue("Should be temp", VFSUtils.isTemporaryFile(root));
      }
      finally
      {
         main.undeploy(deployment);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.