Package org.jboss.deployers.vfs.spi.structure

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


      VFSDeployment deployment = createDeployment("/structureprocessor", "childmod.jar");
      main.deploy(deployment);
      try
      {
         VFSDeploymentContext vdc = getTopDeploymentContext(main, "childmod.jar");
         VirtualFile root = vdc.getRoot();
         VirtualFile file = root.getChild("tempchild.jar");
         try
         {
            assertTrue("Should be temp", VFSUtils.isTemporaryFile(file));
         }
View Full Code Here


           
            return result;
         }
      }

      VFSDeploymentContext deploymentContext;
      try
      {
         String name = root.toURI().toString();
         deploymentContext = getDeploymentContext(name);
         if (deploymentContext != null)
View Full Code Here

   public boolean hasStructureBeenModified(VFSDeployment deployment) throws IOException
   {
      if (deployment == null)
         throw new IllegalArgumentException("Null deployment");

      VFSDeploymentContext deploymentContext = getDeploymentContext(deployment.getName());
      return deploymentContext != null && hasStructureBeenModified(deploymentContext);
   }
View Full Code Here

      URL url = getClass().getResource(common);
      assertNotNull(url);
      VirtualFile file = VFS.getRoot(url);
      assertNotNull(file);

      VFSDeploymentContext context = new AbstractVFSDeploymentContext(file, "");
      context.setMetaDataLocations(Collections.singletonList(file));
      AbstractVFSDeploymentUnit unit = new AbstractVFSDeploymentUnit(context);

      deployer.deploy(unit);
      try
      {
View Full Code Here

      assertNotValid("/structure/war", "directorynotawar");
   }

   public void testMetainfMetadata() throws Throwable
   {
      VFSDeploymentContext war = assertDeploy("/structure/war", "metainf.war");
      VirtualFile persistence = war.getMetaDataFile("persistence.xml");
      assertNotNull(persistence);
   }
View Full Code Here

      return determineStructureWithStructureDeployers(deployment, false, new JARStructure(), new WarUnpackStructure(), 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

      assertNotNull(persistence);
   }

   public void testDirectoryWithWebInf() throws Throwable
   {
      VFSDeploymentContext war = assertDeployNoChildren("/structure/war", "directorywithwebinf");
      List<VirtualFile> classpath = war.getClassPath();
      assertNotNull("classpath", classpath);
      assertEquals("classpath.size = 3", 3, classpath.size());
      VirtualFile warFile = war.getRoot();
      VirtualFile classes = warFile.findChild("WEB-INF/classes");
      assertTrue("WEB-INF/classes in classpath", classpath.contains(classes));
      VirtualFile j0 = warFile.findChild("WEB-INF/lib/j0.jar");
      assertTrue("WEB-INF/lib/j0.jar in classpath", classpath.contains(j0));
      VirtualFile j1 = warFile.findChild("WEB-INF/lib/j1.jar");
View Full Code Here

   }

   public void testSubdeploymentIsKnownFile() throws Throwable
   {
      // The file structure recognises the subdeployer for the combined test
      VFSDeploymentContext context = assertDeploy("/structure/file", "simple");
      assertChildContexts(context, "simple-service.xml");
   }
View Full Code Here

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

   public void testWarDeployerUnpack() throws Throwable
   {
      VFSDeploymentContext root = assertDeploy("/structure/war/simple", "simple.war");
      VirtualFile file = root.getRoot();
      assertSame(file, VFSUtils.unpack(file));
   }
View Full Code Here

   public void testNotAnEAR() throws Throwable
   {
      try
      {
         VFSDeploymentContext context = assertDeployNoChildren("/structure/ear", "notanear");
         assertNoMetaDataFile(context, "META-INF");
         assertClassPath(context, "");
         assertTrue(earStructureDeployer.isTouched());
         assertFalse(earStructureDeployer.isValid());
      }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

Copyright © 2018 www.massapicom. 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.