Package org.apache.maven.plugin.assembly.format

Examples of org.apache.maven.plugin.assembly.format.FileFormatter


        throws ArchiveCreationException, AssemblyFormattingException
    {
        final List<FileItem> fileList = assembly.getFiles();
        final File basedir = configSource.getBasedir();

        final FileFormatter fileFormatter = new FileFormatter( configSource, getLogger() );
        for ( final Iterator<FileItem> i = fileList.iterator(); i.hasNext(); )
        {
            final FileItem fileItem = i.next();

            final String sourcePath = fileItem.getSource();

            // ensure source file is in absolute path for reactor build to work
            File source = new File( sourcePath );

            // save the original sourcefile's name, because filtration may
            // create a temp file with a different name.
            final String sourceName = source.getName();

            if ( !source.isAbsolute() )
            {
                source = new File( basedir, sourcePath );
            }

            source =
                fileFormatter.format( source, fileItem.isFiltered(), fileItem.getLineEnding(),
                                      configSource.getEncoding() );

            String destName = fileItem.getDestName();

            if ( destName == null )
View Full Code Here


        throws ArchiveCreationException, AssemblyFormattingException
    {
        final List<FileItem> fileList = assembly.getFiles();
        final File basedir = configSource.getBasedir();

        final FileFormatter fileFormatter = new FileFormatter( configSource, getLogger() );
        for (final FileItem fileItem : fileList) {
            final String sourcePath = fileItem.getSource();

            // ensure source file is in absolute path for reactor build to work
            File source = new File(sourcePath);

            // save the original sourcefile's name, because filtration may
            // create a temp file with a different name.
            final String sourceName = source.getName();

            if (!source.isAbsolute()) {
                source = new File(basedir, sourcePath);
            }

            source =
                    fileFormatter.format(source, fileItem.isFiltered(), fileItem.getLineEnding(),
                            configSource.getEncoding());

            String destName = fileItem.getDestName();

            if (destName == null) {
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.assembly.format.FileFormatter

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.