Package org.codehaus.plexus.components.io.resources

Examples of org.codehaus.plexus.components.io.resources.PlexusIoFileResource


        catch ( IOException e )
        {
            throw new ArchiverException( "Failed to read filesystem attributes for: " + file, e );
        }
       
        final PlexusIoFileResource res =  new PlexusIoFileResource( file, attrs );
        return new ArchiveEntry( target, res, FILE, permissions );
    }
View Full Code Here


        catch ( IOException e )
        {
            throw new ArchiverException( "Failed to read filesystem attributes for: " + file, e );
        }
       
        final PlexusIoFileResource res = new PlexusIoFileResource( file, attrs );
        return new ArchiveEntry( target, res, DIRECTORY, permissions );
    }
View Full Code Here

     * the file to compress; required.
     * @deprecated Use {@link #getSource()}.
     */
    public void setSourceFile( File srcFile )
    {
        final PlexusIoFileResource res = new PlexusIoFileResource( srcFile );
        setSource( res );
    }
View Full Code Here

                }
                else
                {
                    f = new File( dir );
                }
                final PlexusIoFileResource res = new PlexusIoFileResource( f );
                zipDir( res, zOut, prefix + dir, getRawDefaultDirectoryMode() );
            }
        }
    }
View Full Code Here

            else
            {
                target = outputDirectory + "/" + destName;
            }

            final PlexusIoFileResource
                res = new PlexusIoFileResource( source, ArchiverAttributeUtils.getFileAttributes( source ));
            PlexusIoResource restoUse = res;
            try
            {
                final InputStreamTransformer fileSetTransformers =
                    ReaderFormatter.getFileSetTransformers( configSource, fileItem.isFiltered(), fileItem.getLineEnding() );

                if (fileSetTransformers != null){
                    restoUse = new Deferred( res ){
                        @Override
                        protected InputStream getInputStream()
                            throws IOException
                        {
                            return fileSetTransformers.transform(res, res.getContents());
                        }

                        @Override
                        public String getName()
                        { return res.getName();
                        }
                    }.asResource();
                }

                    int mode = TypeConversionUtils.modeToInt( fileItem.getFileMode(), getLogger() );
View Full Code Here

        catch ( IOException e )
        {
            throw new ArchiverException( "Failed to read filesystem attributes for: " + file, e );
        }
       
        final PlexusIoFileResource res =  PlexusIoFileResource.existingFile( file, attrs );
        return new ArchiveEntry( target, res, FILE, permissions );
    }
View Full Code Here

        catch ( IOException e )
        {
            throw new ArchiverException( "Failed to read filesystem attributes for: " + file, e );
        }
       
        final PlexusIoFileResource res = new PlexusIoFileResource( file, attrs );
        return new ArchiveEntry( target, res, DIRECTORY, permissions );
    }
View Full Code Here

        catch ( IOException e )
        {
            throw new ArchiverException( "Failed to read filesystem attributes for: " + file, e );
        }
       
        final PlexusIoFileResource res =  PlexusIoFileResource.existingFile( file, attrs );
        return new ArchiveEntry( target, res, FILE, permissions );
    }
View Full Code Here

        catch ( IOException e )
        {
            throw new ArchiverException( "Failed to read filesystem attributes for: " + file, e );
        }
       
        final PlexusIoFileResource res = new PlexusIoFileResource( file, attrs );
        return new ArchiveEntry( target, res, DIRECTORY, permissions );
    }
View Full Code Here

                }
                else
                {
                    f = new File( dir );
                }
                final PlexusIoFileResource res = new PlexusIoFileResource( f );
                zipDir( res, zOut, prefix + dir, getRawDefaultDirectoryMode() );
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.components.io.resources.PlexusIoFileResource

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.