Examples of PlexusIoResourceAttributes


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

        }
        for ( final Iterator iter = getSrc().getResources(); iter.hasNext(); )
        {
            PlexusIoResource plexusIoResource = (PlexusIoResource) iter.next();

            PlexusIoResourceAttributes attrs = null;
            if ( plexusIoResource instanceof PlexusIoResourceWithAttributes )
            {
                attrs = ( (PlexusIoResourceWithAttributes) plexusIoResource ).getAttributes();
            }
View Full Code Here

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

        }
        for ( Iterator iter = getSrc().getResources();  iter.hasNext())
        {
            PlexusIoResource plexusIoResource = (PlexusIoResource) iter.next();
           
            PlexusIoResourceAttributes attrs = null;
            if ( plexusIoResource instanceof PlexusIoResourceWithAttributes )
            {
                attrs = ((PlexusIoResourceWithAttributes)plexusIoResource).getAttributes();
            }
View Full Code Here

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

            String name = resources[i];
            String sourceDir = name.replace( '\\', '/' );
           
            File f = new File( dir, sourceDir );
           
            PlexusIoResourceAttributes attrs = (PlexusIoResourceAttributes) attributesByPath.get( name.length() > 0 ? name : "." );
            if ( attrs == null )
            {
                attrs = (PlexusIoResourceAttributes) attributesByPath.get( f.getAbsolutePath() );
            }
           
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() );
            te.setUserId( ( attributes != null && attributes.getUserId() != null) ? attributes.getUserId()
                            : options.getUid() );
            te.setGroupId( ( attributes != null && attributes.getGroupId() != null) ? attributes.getGroupId()
                            : options.getGid() );

            tOut.putNextEntry( te );

            if ( !entry.getResource().isDirectory() )
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

            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

            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
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.