Package org.apache.maven.archiva.model

Examples of org.apache.maven.archiva.model.RepositoryURL


    extends TestCase
{
    private void assertURL( String actualURL, String protocol, String username, String password, String hostname,
                            String port, String path )
    {
        RepositoryURL url = new RepositoryURL( actualURL );

        assertEquals( protocol, url.getProtocol() );
        assertEquals( username, url.getUsername() );
        assertEquals( password, url.getPassword() );
        assertEquals( hostname, url.getHost() );
        assertEquals( port, url.getPort() );
        assertEquals( path, url.getPath() );
    }
View Full Code Here


        try
        {
            Wagon wagon = null;
            try
            {
                RepositoryURL repoUrl = remoteRepository.getURL();
                String protocol = repoUrl.getProtocol();
                wagon = (Wagon) wagonFactory.getWagon( "wagon#" + protocol );
                if ( wagon == null )
                {
                    throw new ProxyException( "Unsupported target repository protocol: " + protocol );
                }
View Full Code Here

            getLogger().warn( "Unable to determine layout of " + artifact + ": " + e.getMessage(), e );
            return null;
        }

        String path = layout.toPath( artifact );
        RepositoryURL url = new RepositoryURL( repoConfig.getUrl() );
        return new File( url.getPath(), path );
    }
View Full Code Here

        this.setRetentionCount( repoconfig.getRetentionCount() );
        this.setDeleteReleasedSnapshots( repoconfig.isDeleteReleasedSnapshots() );

        if ( repoconfig.isManaged() )
        {
            RepositoryURL url = new RepositoryURL( repoconfig.getUrl() );
            this.setDirectory( url.getPath() );
        }
    }
View Full Code Here

            if ( StringUtils.isBlank( this.getUrl() ) )
            {
                return null;
            }

            RepositoryURL url = new RepositoryURL( this.getUrl() );
            return url.getPath();
        }

        return null;
    }
View Full Code Here

        this.setIndexDir( repoconfig.getIndexDir() );
        this.setRefreshCronExpression( repoconfig.getRefreshCronExpression() );

        if ( repoconfig.isManaged() )
        {
            RepositoryURL url = new RepositoryURL( repoconfig.getUrl() );
            this.setDirectory( url.getPath() );
        }
    }
View Full Code Here

            if ( StringUtils.isBlank( this.getUrl() ) )
            {
                return null;
            }

            RepositoryURL url = new RepositoryURL( this.getUrl() );
            return url.getPath();
        }

        return null;
    }
View Full Code Here

            getLogger().warn( "Unable to determine layout of " + artifact + ": " + e.getMessage(), e );
            return null;
        }

        String path = layout.toPath( artifact );
        RepositoryURL url = new RepositoryURL( repoConfig.getUrl() );
        return new File( url.getPath(), path );
    }
View Full Code Here

    extends TestCase
{
    private void assertURL( String actualURL, String protocol, String username, String password, String hostname,
                            String port, String path )
    {
        RepositoryURL url = new RepositoryURL( actualURL );

        assertEquals( protocol, url.getProtocol() );
        assertEquals( username, url.getUsername() );
        assertEquals( password, url.getPassword() );
        assertEquals( hostname, url.getHost() );
        assertEquals( port, url.getPort() );
        assertEquals( path, url.getPath() );
    }
View Full Code Here

            {
                // Skip non-managed.
                continue;
            }

            RepositoryURL url = new RepositoryURL( repo.getUrl() );
            File repoDir = new File( url.getPath() );

            if ( !repoDir.exists() )
            {
                if ( !repoDir.mkdirs() )
                {
                    // Skip invalid directories.
                    log( "Unable to create missing directory for " + url.getPath() );
                    continue;
                }
            }

            DavServerComponent server = createServer( repo.getId(), repoDir, servletConfig );
View Full Code Here

TOP

Related Classes of org.apache.maven.archiva.model.RepositoryURL

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.