Examples of IncludeExcludeFileSelector


Examples of org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector

        artifact.getFile());

      unArchiver.setDestDirectory(workDir);
      unArchiver.setSourceFile(artifact.getFile());

      IncludeExcludeFileSelector includeExcludeFileSelector =
        new IncludeExcludeFileSelector();

      includeExcludeFileSelector.setExcludes(excludes);
      includeExcludeFileSelector.setIncludes(includes);

      unArchiver.setFileSelectors(
        new FileSelector[] {includeExcludeFileSelector});

      unArchiver.extract();
View Full Code Here

Examples of org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector

    UnArchiver unArchiver = archiverManager.getUnArchiver(srcFile);

    unArchiver.setDestDirectory(destDir);
    unArchiver.setSourceFile(srcFile);

    IncludeExcludeFileSelector includeExcludeFileSelector =
      new IncludeExcludeFileSelector();

    includeExcludeFileSelector.setExcludes(excludes);
    includeExcludeFileSelector.setIncludes(includes);

    unArchiver.setFileSelectors(
      new FileSelector[] {includeExcludeFileSelector});

    unArchiver.extract();
View Full Code Here

Examples of org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector

            {
                // Create the selectors that will filter
                // based on include/exclude parameters
                // MDEP-47
                IncludeExcludeFileSelector[] selectors =
                    new IncludeExcludeFileSelector[]{ new IncludeExcludeFileSelector() };

                if ( StringUtils.isNotEmpty( excludes ) )
                {
                    selectors[0].setExcludes( excludes.split( "," ) );
                }
View Full Code Here

Examples of org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector

            unArchiver.setSourceFile( artifact.getFile() );
            unArchiver.setDestDirectory( anOutputDirectory );
            // remove the META-INF directory from resource artifact
            IncludeExcludeFileSelector[] selectors =
                new IncludeExcludeFileSelector[]{ new IncludeExcludeFileSelector() };
            selectors[0].setExcludes( new String[]{ "META-INF/**" } );
            unArchiver.setFileSelectors( selectors );

            getLog().info( "Extracting contents of resources artifact: " + artifact.getArtifactId() );
            try
View Full Code Here

Examples of org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector

        return src;
    }

    protected FileSelector getDefaultFileSelector()
    {
        final IncludeExcludeFileSelector fileSelector = new IncludeExcludeFileSelector();
        fileSelector.setIncludes( getIncludes() );
        fileSelector.setExcludes( getExcludes() );
        fileSelector.setCaseSensitive( isCaseSensitive() );
        fileSelector.setUseDefaultExcludes( isUsingDefaultExcludes() );
        return fileSelector;
    }
View Full Code Here

Examples of org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector

            unArchiver.setSourceFile( artifact.getFile() );
            unArchiver.setDestDirectory( anOutputDirectory );
            // remove the META-INF directory from resource artifact
            IncludeExcludeFileSelector[] selectors =
                new IncludeExcludeFileSelector[] { new IncludeExcludeFileSelector() };
            selectors[0].setExcludes( new String[] { "META-INF/**" } );
            unArchiver.setFileSelectors( selectors );

            getLog().info( "Extracting contents of resources artifact: " + artifact.getArtifactId() );
            try
View Full Code Here

Examples of org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector

    unarchiver.setFileSelectors(new FileSelector[] { excludeManifestAndIndex() });
    return unarchiver;
  }

  private static FileSelector excludeManifestAndIndex() {
    final IncludeExcludeFileSelector selector = new IncludeExcludeFileSelector();
    selector.setUseDefaultExcludes(false);
    selector.setExcludes(MANIFEST_AND_INDEX);
    return selector;
  }
View Full Code Here

Examples of org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector

            {
                // Create the selectors that will filter
                // based on include/exclude parameters
                // MDEP-47
                IncludeExcludeFileSelector[] selectors =
                    new IncludeExcludeFileSelector[]{ new IncludeExcludeFileSelector() };

                if ( StringUtils.isNotEmpty( excludes ) )
                {
                    selectors[0].setExcludes( excludes.split( "," ) );
                }
View Full Code Here

Examples of org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector

            unArchiver.setSourceFile( artifact.getFile() );
            unArchiver.setDestDirectory( anOutputDirectory );
            // remove the META-INF directory from resource artifact
            IncludeExcludeFileSelector[] selectors =
                new IncludeExcludeFileSelector[]{ new IncludeExcludeFileSelector() };
            selectors[0].setExcludes( new String[]{ "META-INF/**" } );
            unArchiver.setFileSelectors( selectors );

            getLog().info( "Extracting contents of resources artifact: " + artifact.getArtifactId() );
            try
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.