Package org.apache.maven.archiva.repository

Examples of org.apache.maven.archiva.repository.ManagedRepositoryContent.toFile()


                    return ERROR;
                }
                else
                {
                    copyFile( artifactFile, targetPath, filename, fixChecksums );
                    queueRepositoryTask( repository.getId(), repository.toFile( artifactReference ) );                   
                }
            }
            catch ( IOException ie )
            {
                addActionError( "Error encountered while uploading file: " + ie.getMessage() );
View Full Code Here


            }

            try
            {
                copyFile( artifactFile, targetPath, filename );
                queueRepositoryTask( repository.getId(), repository.toFile( artifactReference ) );
                //consumers.executeConsumers( repoConfig, repository.toFile( artifactReference ) );
            }
            catch ( IOException ie )
            {
                addActionError( "Error encountered while uploading file: " + ie.getMessage() );
View Full Code Here

            // Already in the database.  Skip it.
            return;
        }

        ManagedRepositoryContent repo = getRepository( artifact );
        File artifactFile = repo.toFile( artifact );
        ProjectModelReader reader = project400Reader;

        if ( repo instanceof ManagedLegacyRepositoryContent )
        {
            reader = project300Reader;
View Full Code Here

            }

            try
            {
                copyFile( artifactFile, targetPath, filename );
                consumers.executeConsumers( repoConfig, repository.toFile( artifactReference ) );
            }
            catch ( IOException ie )
            {
                addActionError( "Error encountered while uploading file: " + ie.getMessage() );
                return ERROR;
View Full Code Here

            removeOldProjectModel( model );
            model = null;
        }

        ManagedRepositoryContent repo = getRepository( artifact );
        File artifactFile = repo.toFile( artifact );
       
        ProjectModelReader reader;
        if ( repo instanceof ManagedLegacyRepositoryContent )
        {
            reader = new ProjectModel300Reader();
View Full Code Here

            boolean fixChecksums = !( config.getRepositoryScanning().getKnownContentConsumers().contains( "create-missing-checksums" ) );
           
            try
            {  
                copyFile( artifactFile, targetPath, filename, fixChecksums );
                queueRepositoryTask( repository.getId(), repository.toFile( artifactReference ) );
            }
            catch ( IOException ie )
            {
                addActionError( "Error encountered while uploading file: " + ie.getMessage() );
                return ERROR;
View Full Code Here

            }

            try
            {
                copyFile( artifactFile, targetPath, filename );
                consumers.executeConsumers( repoConfig, repository.toFile( artifactReference ) );
            }
            catch ( IOException ie )
            {
                addActionError( "Error encountered while uploading file: " + ie.getMessage() );
                return ERROR;
View Full Code Here

            // Already in the database.  Skip it.
            return;
        }

        ManagedRepositoryContent repo = getRepository( artifact );
        File artifactFile = repo.toFile( artifact );
        ProjectModelReader reader = project400Reader;

        if ( repo instanceof ManagedLegacyRepositoryContent )
        {
            reader = project300Reader;
View Full Code Here

            removeOldProjectModel( model );
            model = null;
        }

        ManagedRepositoryContent repo = getRepository( artifact );
        File artifactFile = repo.toFile( artifact );
       
        ProjectModelReader reader;
        if ( repo instanceof ManagedLegacyRepositoryContent )
        {
            reader = new ProjectModel300Reader();
View Full Code Here

            removeOldProjectModel( model );
            model = null;
        }

        ManagedRepositoryContent repo = getRepository( artifact );
        File artifactFile = repo.toFile( artifact );
       
        ProjectModelReader reader;
        if ( repo instanceof ManagedLegacyRepositoryContent )
        {
            reader = new ProjectModel300Reader();
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.