Package org.jboss.shrinkwrap.api.importer

Examples of org.jboss.shrinkwrap.api.importer.ZipImporter


      try
      {
         // Create the archive in the context of the arquillian-osgi-bundle
         SecurityActions.setThreadContextClassLoader(ArchiveBase.class.getClassLoader());
         JavaArchive archive = ShrinkWrap.create(JavaArchive.class, name);
         ZipImporter zipImporter = archive.as(ZipImporter.class);
         zipImporter.importZip(new ZipInputStream(input));
         return archive;
      }
      finally
      {
         SecurityActions.setThreadContextClassLoader(ctxLoader);
View Full Code Here


      try
      {
         // Create the archive in the context of the arquillian-osgi-bundle
         Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
         JavaArchive archive = ShrinkWrap.create(JavaArchive.class, name);
         ZipImporter zipImporter = archive.as(ZipImporter.class);
         zipImporter.importZip(new ZipInputStream(input));
         return archive;
      }
      finally
      {
         Thread.currentThread().setContextClassLoader(ctxLoader);
View Full Code Here

      try
      {
         // Create the archive in the context of the arquillian-osgi-bundle
         SecurityActions.setThreadContextClassLoader(ArchiveBase.class.getClassLoader());
         JavaArchive archive = ShrinkWrap.create(JavaArchive.class, name);
         ZipImporter zipImporter = archive.as(ZipImporter.class);
         zipImporter.importZip(new ZipInputStream(input));
         return archive;
      }
      finally
      {
         SecurityActions.setThreadContextClassLoader(ctxLoader);
View Full Code Here

        File defaultFile = new File(getRepo(), "default/default.car");
        Assert.assertTrue(defaultFile.exists());

        JavaArchive lib = ShrinkWrap.create(JavaArchive.class, "default.car");
        ZipImporter zipImporter = lib.as(ZipImporter.class);
        zipImporter.importFrom(defaultFile);

        testArchive(module, lib);
    }
View Full Code Here

TOP

Related Classes of org.jboss.shrinkwrap.api.importer.ZipImporter

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.