Examples of addManifest()


Examples of org.jboss.shrinkwrap.api.spec.EnterpriseArchive.addManifest()

   public static EnterpriseArchive createDeployment(String[]... deployments) throws Exception
   {
      EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class);

      // So it's not empty
      ear.addManifest();

      // Add portal
      ear.addAsModule(AbstractWarTestCase.createDeployment());

      // Add deployments
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addManifest()

                    .importFrom(new ZipFile(artifact))
                    .as(JavaArchive.class);
                    //.addAsManifestResource(new File(QUEUE_FILE));
            // SWITCHYARD-2418 replace manifest file to remove OSGi related attributes
            archive.delete("META-INF/MANIFEST.MF");
            archive.addManifest();
            return archive;
        } catch (Throwable e) {
            e.printStackTrace();
            throw new RuntimeException(e);
        }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.WebArchive.addManifest()

     */
    @Override
    public WebArchive getFinalArchive() {
        WebArchive finalArchive = super.getFinalArchive();

        finalArchive.addManifest();
        Asset manifest = finalArchive.get("META-INF/MANIFEST.MF").getAsset();
        finalArchive.addAsResource(manifest, "META-INF/MANIFEST.MF");

        // add testing modules list
        finalArchive.addAsResource(testingModules, TESTING_MODULE);
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.