Package org.apache.maven.plugin.assembly.archive.task

Examples of org.apache.maven.plugin.assembly.archive.task.AddDirectoryTask


            catch ( final RepositoryAssemblyException e )
            {
                throw new ArchiveCreationException( "Failed to assemble repository: " + e.getMessage(), e );
            }

            final AddDirectoryTask task = new AddDirectoryTask( repositoryDirectory );

            final int dirMode = TypeConversionUtils.modeToInt( repository.getDirectoryMode(), getLogger() );
            if ( dirMode != -1 )
            {
                task.setDirectoryMode( dirMode );
            }

            final int fileMode = TypeConversionUtils.modeToInt( repository.getFileMode(), getLogger() );
            if ( fileMode != -1 )
            {
                task.setFileMode( fileMode );
            }

            task.setOutputDirectory( outputDirectory );

            task.execute( archiver, configSource );
        }
    }
View Full Code Here


                getLogger().debug("Finished assembling repository to: " + repositoryDirectory);
            } catch (final RepositoryAssemblyException e) {
                throw new ArchiveCreationException("Failed to assemble repository: " + e.getMessage(), e);
            }

            final AddDirectoryTask task = new AddDirectoryTask(repositoryDirectory);

            final int dirMode = TypeConversionUtils.modeToInt(repository.getDirectoryMode(), getLogger());
            if (dirMode != -1) {
                task.setDirectoryMode(dirMode);
            }

            final int fileMode = TypeConversionUtils.modeToInt(repository.getFileMode(), getLogger());
            if (fileMode != -1) {
                task.setFileMode(fileMode);
            }

            task.setOutputDirectory(outputDirectory);

            task.execute(archiver, configSource);
        }
    }
View Full Code Here

            catch ( final RepositoryAssemblyException e )
            {
                throw new ArchiveCreationException( "Failed to assemble repository: " + e.getMessage(), e );
            }

            final AddDirectoryTask task = new AddDirectoryTask( repositoryDirectory );

            final int dirMode = TypeConversionUtils.modeToInt( repository.getDirectoryMode(), getLogger() );
            if ( dirMode != -1 )
            {
                task.setDirectoryMode( dirMode );
            }

            final int fileMode = TypeConversionUtils.modeToInt( repository.getFileMode(), getLogger() );
            if ( fileMode != -1 )
            {
                task.setFileMode( fileMode );
            }

            task.setOutputDirectory( outputDirectory );

            task.execute( archiver );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.assembly.archive.task.AddDirectoryTask

Copyright © 2018 www.massapicom. 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.