Package org.apache.maven.archiva.repository.layout

Examples of org.apache.maven.archiva.repository.layout.FilenameParts


    {
        File artifactFile = toFile( artifact );

        try
        {
            FilenameParts parts = RepositoryLayoutUtils.splitFilename( artifactFile.getName(), null );
            if ( !parts.artifactId.equalsIgnoreCase( model.getArtifactId() ) )
            {
                getLogger().warn(
                                  "Project Model " + model + " artifactId: " + model.getArtifactId()
                                        + " does not match the pom file's artifactId: " + parts.artifactId );
View Full Code Here


            // Resolve the project model
            model = effectiveModelFilter.filter( model );

            // The version should be updated to the filename version if it is a unique snapshot
            FilenameParts parts = RepositoryLayoutUtils.splitFilename( artifactFile.getName(), null );
            if ( model.getVersion().equals( VersionUtil.getBaseVersion( parts.version ) ) &&
                VersionUtil.isUniqueSnapshot( parts.version ) )
            {
                model.setVersion( parts.version );
            }
View Full Code Here

    {
        File artifactFile = toFile( artifact );

        try
        {
            FilenameParts parts = RepositoryLayoutUtils.splitFilename( artifactFile.getName(), null );

            if ( !parts.artifactId.equalsIgnoreCase( model.getArtifactId() ) )
            {
                getLogger().warn( "Project Model " + model + " artifactId: " + model.getArtifactId() +
                    " does not match the pom file's artifactId: " + parts.artifactId );
View Full Code Here

        throws LayoutException
    {
        String normalizedPath = StringUtils.replace( path, "\\", "/" );
        String pathParts[] = StringUtils.split( normalizedPath, '/' );

        FilenameParts parts = RepositoryLayoutUtils.splitFilename( pathParts[pathParts.length - 1], null );

        return parts;
    }
View Full Code Here

            if ( !artifactFile.exists() )
            {
                return;
            }

            FilenameParts parts = getFilenameParts( path );

            if ( VersionUtil.isSnapshot( parts.version ) )
            {
                // version
                File versionDir = artifactFile.getParentFile();
View Full Code Here

            if( !artifactFile.exists() )
            {
                return;
            }

            FilenameParts parts = getFilenameParts( path );

            if ( VersionUtil.isSnapshot( parts.version ) )
            {                                
                File parentDir = artifactFile.getParentFile();
View Full Code Here

        for ( int i = 0; i < files.length; i++ )
        {
            if ( !( files[i].getName().toUpperCase() ).endsWith( "SHA1" ) &&
                !( files[i].getName().toUpperCase() ).endsWith( "MD5" ) )
            {
                FilenameParts filenameParts = null;

                // skip those files that have layout exception (no artifact id/no version/no extension)
                try
                {
                    filenameParts = getFilenameParts( files[i].getAbsolutePath() );
View Full Code Here

            if( !artifactFile.exists() )
            {
                return;
            }

            FilenameParts parts = getFilenameParts( path );

            if ( VersionUtil.isSnapshot( parts.version ) )
            {
                Calendar olderThanThisDate = Calendar.getInstance();
                olderThanThisDate.add( Calendar.DATE, ( -1 * repoConfig.getDaysOlder() ) );
View Full Code Here

            // Resolve the project model
            model = effectiveModelFilter.filter( model );

            // The version should be updated to the filename version if it is a unique snapshot
            FilenameParts parts = RepositoryLayoutUtils.splitFilename( artifactFile.getName(), null );
            if ( model.getVersion().equals( VersionUtil.getBaseVersion( parts.version ) ) &&
                VersionUtil.isUniqueSnapshot( parts.version ) )
            {
                model.setVersion( parts.version );
            }
View Full Code Here

    {
        File artifactFile = toFile( artifact );

        try
        {
            FilenameParts parts = RepositoryLayoutUtils.splitFilename( artifactFile.getName(), null );

            if ( !parts.artifactId.equalsIgnoreCase( model.getArtifactId() ) )
            {
                getLogger().warn( "Project Model " + model + " artifactId: " + model.getArtifactId() +
                    " does not match the pom file's artifactId: " + parts.artifactId );
View Full Code Here

TOP

Related Classes of org.apache.maven.archiva.repository.layout.FilenameParts

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.