Package org.codehaus.plexus.archiver

Examples of org.codehaus.plexus.archiver.Archiver.addDirectory()


    private void attachAsdoc()
        throws Exception
    {
        Archiver archiver = archiverManager.getArchiver( output );
        archiver.addDirectory( new File( getOutput() ) );
        archiver.setDestFile( output );
        archiver.createArchive();

        projectHelper.attachArtifact( project, PathUtil.fileExtention( output ), "asdoc", output );
    }
View Full Code Here


            }       
           
            Archiver archiver = archiverManager.getArchiver( "zip" );
            archiver.setDestFile( packageFile);
            archiver.setIncludeEmptyDirs(true);
            archiver.addDirectory(packageDirectory, packageName+"/");
            archiver.createArchive();
            projectHelper.attachArtifact( project, "zip", sourceClassifier, packageFile );
           
        } catch (Exception e) {
            throw new MojoExecutionException("packageing failed: "+e, 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.