Examples of PlexusIoResourceAttributes


Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

        if ( ! file.isFile() )
        {
            throw new ArchiverException( "Not a file: " + file );
        }
       
        PlexusIoResourceAttributes attrs;
        try
        {
            attrs = PlexusIoResourceAttributeUtils.getFileAttributes( file );
        }
        catch ( IOException e )
View Full Code Here

Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

        if ( ! file.isDirectory() )
        {
            throw new ArchiverException( "Not a directory: " + file );
        }
       
        PlexusIoResourceAttributes attrs;
        try
        {
            attrs = PlexusIoResourceAttributeUtils.getFileAttributes( file );
        }
        catch ( IOException e )
View Full Code Here

Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

            final String destFileName = collection.getName( resource );

            int permissions = -1;
            if ( resource instanceof PlexusIoResourceWithAttributes )
            {
                final PlexusIoResourceAttributes attrs = ( (PlexusIoResourceWithAttributes) resource ).getAttributes();

                if ( attrs != null )
                {
                    permissions = attrs.getOctalMode();
                }
            }

            return asArchiveEntry( resource, destFileName, permissions );
        }
View Full Code Here

Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

            final String destFileName = collection.getName( resource );

            int permissions = -1;
            if ( resource instanceof PlexusIoResourceWithAttributes )
            {
                final PlexusIoResourceAttributes attrs = ( (PlexusIoResourceWithAttributes) resource ).getAttributes();

                if ( attrs != null )
                {
                    permissions = attrs.getOctalMode();
                }
            }

            return asArchiveEntry( resource, destFileName, permissions );
        }
View Full Code Here

Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

        if ( !file.isFile() )
        {
            throw new ArchiverException( "Not a file: " + file );
        }
       
        PlexusIoResourceAttributes attrs;
        try
        {
            attrs = PlexusIoResourceAttributeUtils.getFileAttributes( file );
        }
        catch ( IOException e )
View Full Code Here

Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

        if ( !file.isDirectory() )
        {
            throw new ArchiverException( "Not a directory: " + file );
        }
       
        PlexusIoResourceAttributes attrs;
        try
        {
            attrs = PlexusIoResourceAttributeUtils.getFileAttributes( file );
        }
        catch ( IOException e )
View Full Code Here

Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

            else
            {
                te.setMode( entry.getMode() );
            }
           
            PlexusIoResourceAttributes attributes = entry.getResourceAttributes();
           
            te.setUserName( ( attributes != null && attributes.getUserName() != null ) ? attributes.getUserName()
                            : options.getUserName() );
            te.setGroupName( ( attributes != null && attributes.getGroupName() != null ) ? attributes.getGroupName()
                            : options.getGroup() );

            final int userId =
                ( attributes != null && attributes.getUserId() != null ) ? attributes.getUserId() : options.getUid();
            if ( userId > 0 )
            {
                te.setUserId( userId );
            }

            final int groupId =
                ( attributes != null && attributes.getGroupId() != null ) ? attributes.getGroupId() : options.getGid();
            if ( groupId > 0 )
            {
                te.setGroupId( groupId );
            }
View Full Code Here

Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

            final String destFileName = collection.getName( resource );

            int permissions = -1;
            if ( resource instanceof PlexusIoResourceWithAttributes )
            {
                final PlexusIoResourceAttributes attrs = ( (PlexusIoResourceWithAttributes) resource ).getAttributes();

                if ( attrs != null )
                {
                    permissions = attrs.getOctalMode();
                }
            }

            return asArchiveEntry( resource, destFileName, permissions );
        }
View Full Code Here

Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

        if ( !file.isFile() )
        {
            throw new ArchiverException( "Not a file: " + file );
        }
       
        PlexusIoResourceAttributes attrs;
        try
        {
            attrs = PlexusIoResourceAttributeUtils.getFileAttributes( file );
        }
        catch ( IOException e )
View Full Code Here

Examples of org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes

        if ( !file.isDirectory() )
        {
            throw new ArchiverException( "Not a directory: " + file );
        }
       
        PlexusIoResourceAttributes attrs;
        try
        {
            attrs = PlexusIoResourceAttributeUtils.getFileAttributes( file );
        }
        catch ( IOException 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.