Package org.jboss.deployment.spi

Examples of org.jboss.deployment.spi.DeploymentMetaData


      JarOutputStream jos = new JarOutputStream(new FileOutputStream(deploymentPlan));
      JarUtils.addJarEntry(jos, "!/" + jbossFile, new FileInputStream(jbossDescriptor));

      // Setup deployment plan meta data with propriatary descriptor
      DeploymentMetaData metaData = new DeploymentMetaData(deploymentFile);

      strs = jbossFile.split("/");
      metaData.addEntry(deploymentFile, strs[strs.length - 1]);

      // Add the meta data to the deployment plan
      String metaStr = metaData.toXMLString();

      JarUtils.addJarEntry(jos, DeploymentMetaData.ENTRY_NAME, new ByteArrayInputStream(metaStr.getBytes()));
      jos.flush();
      jos.close();
View Full Code Here


        deploymentPlan.deleteOnExit();
     
        jos = new JarOutputStream(new FileOutputStream(deploymentPlan));
     
        // Setup deployment plan meta data with proprietary descriptor
        DeploymentMetaData metaData = new DeploymentMetaData(deployment.getName());
     
        // Add the meta data to the deployment plan
        String metaStr = metaData.toXMLString();
     
        JarUtils.addJarEntry(jos, DeploymentMetaData.ENTRY_NAME, new ByteArrayInputStream(metaStr.getBytes()));
        return deploymentPlan;
     } finally {
        if (jos != null) {
View Full Code Here

         deploymentPlan.deleteOnExit();

         jos = new JarOutputStream(new FileOutputStream(deploymentPlan));

         // Setup deployment plan meta data with proprietary descriptor
         DeploymentMetaData metaData = new DeploymentMetaData(deployment.getName());

         // Add the meta data to the deployment plan
         String metaStr = metaData.toXMLString();

         JarUtils.addJarEntry(jos, DeploymentMetaData.ENTRY_NAME, new ByteArrayInputStream(metaStr.getBytes()));
         return deploymentPlan;
      }
      finally
View Full Code Here

   public void save(OutputStream stream) throws ConfigurationException
   {
      JarOutputStream jos = null;

      // Setup deployment plan meta data with propriatary descriptor (jboss-web.xml)
      DeploymentMetaData metaData = new DeploymentMetaData("WRONG.war");

      try
      {
         jos = new JarOutputStream(stream);
      }
      catch (Exception e)
      {
         return;
      }
      if (jos == null)
         return;

      Iterator setIterator = configBeans.keySet().iterator();
      while (setIterator.hasNext())
      {
         String key = (String)setIterator.next();
         JBossConfigBeanProxy val = (JBossConfigBeanProxy)configBeans.get(key);
         val.save(jos, metaData);
      }
      try
      {
         String metaStr = metaData.toXMLString();
         JarUtils.addJarEntry(jos, DeploymentMetaData.ENTRY_NAME, new ByteArrayInputStream(metaStr.getBytes()));
         jos.flush();
         jos.close();
      }
      catch (Exception e)
View Full Code Here

TOP

Related Classes of org.jboss.deployment.spi.DeploymentMetaData

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.