Examples of exportExploded()


Examples of org.jboss.shrinkwrap.api.exporter.ExplodedExporter.exportExploded()

            File targetdir = configuration.getTargetDirectory();
            if (!targetdir.isDirectory() && !targetdir.mkdirs())
                throw new IllegalStateException("Cannot create target dir: " + targetdir);

            if (containerHome == null) {
                exporter.exportExploded(targetdir, "");
                File[] childDirs = targetdir.listFiles();
                if (childDirs.length != 1)
                    throw new IllegalStateException("Expected one child directory, but was: " + Arrays.asList(childDirs));
                containerHome = childDirs[0];
            } else {
View Full Code Here

Examples of org.jboss.shrinkwrap.api.exporter.ExplodedExporter.exportExploded()

                File[] childDirs = targetdir.listFiles();
                if (childDirs.length != 1)
                    throw new IllegalStateException("Expected one child directory, but was: " + Arrays.asList(childDirs));
                containerHome = childDirs[0];
            } else {
                exporter.exportExploded(containerHome, "");
            }
        }

        state = State.CREATED;
View Full Code Here

Examples of org.jboss.shrinkwrap.api.exporter.ExplodedExporter.exportExploded()

  public static File toExploded(Archive archive, String ext) {
    File tmp = assertTmpFile(ext);
    if (tmp.delete()) {
      ExplodedExporter exporter = archive.as(ExplodedExporter.class);
      exporter.exportExploded(tmp.getParentFile(), tmp.getName());
      tmp.deleteOnExit();
      return tmp;
    } else {
      throw failure("Could not delete tmp file " + tmp.getAbsolutePath());
    }
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.