Examples of exportTo()


Examples of org.jboss.shrinkwrap.api.exporter.ZipExporter.exportTo()

    public ProtocolMetaData deploy(final Archive<?> archive) throws DeploymentException {
        try {
            // Export the bundle bytes
            ZipExporter exporter = archive.as(ZipExporter.class);
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            exporter.exportTo(baos);

            ByteArrayInputStream inputStream = new ByteArrayInputStream(baos.toByteArray());
            syscontext.installBundle(archive.getName(), inputStream);

        } catch (RuntimeException rte) {
View Full Code Here

Examples of org.jboss.shrinkwrap.api.exporter.ZipExporter.exportTo()

    JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "foo.jar");
    jar.addClass(FSTestCase.class);
    WebArchive war = ShrinkWrap.create(WebArchive.class);
    war.addAsLibraries(jar);
    ZipExporter exporter = war.as(ZipExporter.class);
    exporter.exportTo(warFile, true);
    this.warFile = warFile;
  }

  public void testFoo() throws Exception {
    FS fs = new FS().mount(FSTestCase.class);
View Full Code Here

Examples of org.jboss.shrinkwrap.api.exporter.ZipExporter.exportTo()

    java.io.File file = java.io.File.createTempFile("test", ".jar");
    file.deleteOnExit();
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class);
    archive.addClass(FSTestCase.class);
    ZipExporter exporter = archive.as(ZipExporter.class);
    exporter.exportTo(file, true);

    //
    URLDriver driver = new URLDriver();
    driver.merge(file.toURI().toURL());
    Node root = driver.root();
View Full Code Here

Examples of org.jboss.shrinkwrap.api.exporter.ZipExporter.exportTo()

  public static File toFile(Archive archive, String ext) {
    File tmp = assertTmpFile(ext);
    if (tmp.delete()) {
      ZipExporter exporter = archive.as(ZipExporter.class);
      exporter.exportTo(tmp);
      tmp.deleteOnExit();
      return tmp;
    } else {
      throw failure("Could not delete tmp file " + tmp.getAbsolutePath());
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.impl.base.exporter.zip.ZipExporterImpl.exportTo()

    @SuppressWarnings("unused")
    static private void exportZip(Archive<?> zipArchive, File outFile) {
        try {
            ZipExporter exporter = new ZipExporterImpl(zipArchive);
            exporter.exportTo(outFile, true);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.raist.config.Config.exportTo()

      for(int i = path.size() - 1; i >= 0; i--) {

        String node = path.get(i);
        Config c = manager.getConfig(node);
        c.exportTo(map);
      }
    }

    @Override
    public void exportTo(Properties prop) {
View Full Code Here

Examples of org.raist.config.Config.exportTo()

      for(int i = path.size() - 1; i >= 0; i--) {

        String node = path.get(i);
        Config c = manager.getConfig(node);
        c.exportTo(prop);
      }
    }

    @Override
    public Builder derive() {
View Full Code Here

Examples of org.rssowl.core.interpreter.ITypeExporter.exportTo()

    /* Use default as Fallback */
    if (exporter == null)
      exporter = fDefaultExporter;

    exporter.exportTo(destination, elements, options);
  }

  /*
   * @see org.rssowl.core.interpreter.IInterpreterService#getExportFormats()
   */
 
View Full Code Here

Examples of org.rssowl.core.interpreter.ITypeExporter.exportTo()

    /* Use default as Fallback */
    if (exporter == null)
      exporter = fDefaultExporter;

    exporter.exportTo(destination, elements, options);
  }

  /*
   * @see org.rssowl.core.interpreter.IInterpreterService#getExportFormats()
   */
 
View Full Code Here

Examples of webit.script.Context.exportTo()

        Map map = new HashMap();

        assertEquals("a", context.get("a"));

        context.exportTo(map);
        assertTrue(map.containsKey("a"));
        assertTrue(map.containsKey("b"));
        assertFalse(map.containsKey("c"));

        assertEquals("a", map.get("a"));
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.