Examples of addDirectory()


Examples of org.codehaus.plexus.archiver.jar.JarArchiver.addDirectory()

                tempJarFile.deleteOnExit();

                JarArchiver jarArchiver = new JarArchiver();

                jarArchiver.setDestFile( tempJarFile );
                jarArchiver.addDirectory( getFile() );
                jarArchiver.setManifest( getManifestFile() );
                jarArchiver.createArchive();

                return tempJarFile;
            }
View Full Code Here

Examples of org.codehaus.plexus.archiver.jar.JarArchiver.addDirectory()

                tempJarFile.deleteOnExit();

                JarArchiver jarArchiver = new JarArchiver();

                jarArchiver.setDestFile(tempJarFile);
                jarArchiver.addDirectory(getFile());
                jarArchiver.setManifest(getManifestFile());
                jarArchiver.createArchive();

                return tempJarFile;
            } catch (ArchiverException e) {
View Full Code Here

Examples of org.codehaus.plexus.archiver.jar.JarArchiver.addDirectory()

            {
                Resource r = (Resource) i.next();

                if ( r.getDirectory().endsWith( "maven-shared-archive-resources" ) )
                {
                    archiver.addDirectory( new File( r.getDirectory() ) );
                }
            }

            //archiver.setDotFileDirectory( new File( project.getBuild().getDirectory() ) );
        }
View Full Code Here

Examples of org.codehaus.plexus.archiver.tar.TarArchiver.addDirectory()

        }

        TarArchiver tarArchiver = new TarArchiver();
        try
        {
            tarArchiver.addDirectory(
                new File( project.getBuild().getDirectory(), File.separator + outputDirectory ) );
        }
        catch ( ArchiverException e )
        {
            throw new MojoExecutionException( "NPANDAY-1700-001", e );
View Full Code Here

Examples of org.codehaus.plexus.archiver.zip.ZipArchiver.addDirectory()

      throw new MojoExecutionException("Unable to copy hardcoded mimetype file", e);
    }

    try {
      ZipArchiver zipArchiver = new ZipArchiver();
      zipArchiver.addDirectory(targetDirectory);
      zipArchiver.setCompress(true); // seems to not be a problem to have mimetype compressed
      zipArchiver.setDestFile(new File(targetDirectory.getParentFile(), result.getName())); // copy it to parent dir
      zipArchiver.createArchive();

      getLog().debug("epub file created at: " + zipArchiver.getDestFile().getAbsolutePath());
View Full Code Here

Examples of org.codehaus.plexus.archiver.zip.ZipArchiver.addDirectory()

        ZipArchiver zipArchiver = new ZipArchiver();
        zipArchiver.setDestFile(zipFile);
        zipArchiver.setIncludeEmptyDirs(true);
        zipArchiver.setCompress(true);
        zipArchiver.setForced(true);
        zipArchiver.addDirectory(new File(TARGET_ZIP_INPUT_DIR), new String[]{"**/**"}, new String[]{});
        zipArchiver.createArchive();
        zipArchiver.setIgnorePermissions(false);
        zipArchiver.setUseJvmChmod(true);
    }

View Full Code Here

Examples of org.codehaus.plexus.archiver.zip.ZipArchiver.addDirectory()

        ZipArchiver zipArchiver = new ZipArchiver();
        zipArchiver.setDestFile( new File( outputDirectory + ".nar" ) );
        try
        {
            zipArchiver.addDirectory( new File( outputDirectory ) );
            zipArchiver.createArchive();
            getLog().info( "NPANDAY-1200-004: Created .NET Archive: File = " + outputDirectory + ".nar" );
        }
        catch ( ArchiverException e )
        {
View Full Code Here

Examples of org.compass.core.config.CompassConfiguration.addDirectory()

                    File file = resource.getFile();
                    if (!file.isDirectory()) {
                        log.info("Resource directory location ["
                                + dir + "] does not denote a directory");
                    } else {
                        config.addDirectory(file);
                    }
                    log.info("compass resourceDirectoryLocations find:" + dir);
                } catch (Exception e) {
                    log.info("compass resourceDirectoryLocations not exists:" + dir);
                }
View Full Code Here

Examples of org.hibernate.cfg.Configuration.addDirectory()

          File file = resource.getFile();
          if (!file.isDirectory()) {
            throw new IllegalArgumentException(
                "Mapping directory location [" + resource + "] does not denote a directory");
          }
          config.addDirectory(file);
        }
      }

      // Tell Hibernate to eagerly compile the mappings that we registered,
      // for availability of the mapping information in further processing.
View Full Code Here

Examples of org.hibernate.cfg.Configuration.addDirectory()

          if (!file.isDirectory()) {
            throw new IllegalArgumentException(
                "Mapping directory location [" + this.mappingDirectoryLocations[i] +
                "] does not denote a directory");
          }
          config.addDirectory(file);
        }
      }

      if (this.entityCacheStrategies != null) {
        // Register cache strategies for mapped entities.
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.