Examples of createArchive()


Examples of com.adobe.epubcheck.util.Archive.createArchive()

      throw new InvalidParameterException(parent.getAbsolutePath());
       
    boolean hadError = false;
    for(File epubDir : parent.listFiles(dirFilter)) {
      Archive epub = new Archive(epubDir.getAbsolutePath(), false);
      epub.createArchive();
      Report report = new DefaultReportImpl(epub.getEpubName());
      EpubCheck check = new EpubCheck(epub.getEpubFile(), report);
      if (check.validate()) {
        System.out.println(Messages.NO_ERRORS__OR_WARNINGS);
        String name = epub.getEpubName();
View Full Code Here

Examples of com.sun.enterprise.deploy.shared.ArchiveFactory.createArchive()

            return null;
        }
        if (exists) {
            return factory.openArchive(path);           
        } else {
            return factory.createArchive(path);
        }
    }
   
    private void prepareHabitat() {
        // Bootstrap a hk2 environment.
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.ArchiveFactory.createArchive()

            return null;
        }
        if (exists) {
            return factory.openArchive(path);           
        } else {
            return factory.createArchive(path);
        }
    }
   
    /**
     *Organizes the target module IDs passed by a JSR88 client for easy processing one module ID
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.JarArchiveFactory.createArchive()

                continue;
            }
            earName=earName+".ear";
            try {
                JarArchiveFactory jaf = new JarArchiveFactory();
                OutputJarArchive targetJar = (OutputJarArchive)jaf.createArchive(new File(targetDir, earName).getAbsolutePath());
                FileArchiveFactory faf = new FileArchiveFactory();
                FileArchive farc = (FileArchive)faf.openArchive((new File(srcDir, earDirName)).getAbsolutePath());
                Enumeration e = farc.entries();
                String lastModuleProcessed = "";
                while(e.hasMoreElements()) {
View Full Code Here

Examples of org.apache.maven.archiver.MavenArchiver.createArchive()

                    new File(this.outputDirectory),
                    JAR_INCLUDES,
                    JAR_EXCLUDES);

                // - create archive
                modelJarArchiver.createArchive(
                    project,
                    archive);

                // - set the artifact file as the modelJar so that we can install the model jar
                jarArtifact.setFile(modelJar);
View Full Code Here

Examples of org.apache.maven.archiver.MavenArchiver.createArchive()

            archiver.setOutputFile(cartridgeFile);
            archiver.getArchiver().addDirectory(
                outputDirectory,
                OUTPUT_INCLUDES,
                null);
            archiver.createArchive(
                this.project,
                this.archive);
            artifact.setFile(cartridgeFile);
        }
        catch (final Throwable throwable)
View Full Code Here

Examples of org.apache.maven.archiver.MavenArchiver.createArchive()

                directory,
                new String[] {"**/*"},
                null);

            // - create archive
            archiver.createArchive(
                this.project,
                this.archive);
        }
        catch (final Throwable throwable)
        {
View Full Code Here

Examples of org.apache.maven.archiver.MavenArchiver.createArchive()

            throw new MojoExecutionException("Unable to build archive", e);
        }

        // create archive
        try {
            archiver.createArchive(project, archive);
        } catch (Exception e) {
            throw new MojoExecutionException("Unable to create archive", e);
        }

        if (classifier != null) {
View Full Code Here

Examples of org.apache.maven.archiver.MavenArchiver.createArchive()

            if (resourcesDir.isDirectory()) {
                archiver.getArchiver().addDirectory(resourcesDir);
            }

            archiver.createArchive(project, configuration);

            return archiveFile;
        } catch (Exception e) {
            throw new MojoExecutionException("Failed to create kar archive", e);
        }
View Full Code Here

Examples of org.apache.maven.archiver.MavenArchiver.createArchive()

            if (classpath != null) {
                archive.addManifestEntry("Class-Path", getClassPath());
            }

            archiver.createArchive(project, archive);

            return archiveFile;
        }
        catch (Exception e) {
            throw new MojoExecutionException("Failed to create archive", e);
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.