Examples of pathOf()


Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

                        dependency.getVersion(),
                        scope,
                        dependency.getType());
                final File file = new File(
                        localRepository.getBasedir(),
                        localRepository.pathOf(artifact));
                artifact.setFile(file);
            }
        }
        return artifact;
    }
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

                        dependency.getVersion(),
                        scope,
                        dependency.getType());
                final File file = new File(
                        localRepository.getBasedir(),
                        localRepository.pathOf(artifact));
                artifact.setFile(file);
                project.getDependencies().add(dependency);
                project.getArtifacts().add(artifact);
            }
        }
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

            return;
        }

        ArtifactRepository localRepo = request.getLocalRepository();

        File localFile = new File( localRepo.getBasedir(), localRepo.pathOf( artifact ) );

        artifact.setFile( localFile );

        if ( !localFile.exists() )
        {
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

                throw new IOException( localFile + " does not exist and no remote repositories are configured" );
            }

            ArtifactRepository remoteRepo = request.getRemoteRepositories().get( 0 );

            File remoteFile = new File( remoteRepo.getBasedir(), remoteRepo.pathOf( artifact ) );

            FileUtils.copyFile( remoteFile, localFile );
        }

        artifact.setResolved( true );
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

                // 1.0-SNAPSHOT
                artifact.selectVersion( artifact.getBaseVersion() );

                // Make a file with a 1.0-SNAPSHOT format
                File copy = new File( localRepository.getBasedir(), localRepository.pathOf( artifact ) );

                // if the timestamped version was resolved or the copy doesn't exist then copy a version
                // of the file like 1.0-SNAPSHOT. Even if there is a timestamped version the non-timestamped
                // version will be created.
                if ( !copy.exists() || copy.lastModified() != destination.lastModified()
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

        if (localRepository != null) {
            Artifact parentArtifact = getArtifact(parent);
          // Don't use ArtifactRepository.find(), for compatibility with Maven 2.x
            if (parentArtifact != null) {
                parentFile = new File(localRepository.getBasedir(),
              localRepository.pathOf(parentArtifact));
            }
        }
      }
     
      if (parentFile != null) {
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

    protected void assertRemoteArtifactPresent( Artifact artifact )
        throws Exception
    {
        ArtifactRepository remoteRepo = remoteRepository();

        String path = remoteRepo.pathOf( artifact );

        File file = new File( remoteRepo.getBasedir(), path );

        if ( !file.exists() )
        {
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

    protected void assertLocalArtifactPresent( Artifact artifact )
        throws Exception
    {
        ArtifactRepository localRepo = localRepository();

        String path = localRepo.pathOf( artifact );

        File file = new File( localRepo.getBasedir(), path );

        if ( !file.exists() )
        {
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

    protected void assertRemoteArtifactNotPresent( Artifact artifact )
        throws Exception
    {
        ArtifactRepository remoteRepo = remoteRepository();

        String path = remoteRepo.pathOf( artifact );

        File file = new File( remoteRepo.getBasedir(), path );

        if ( file.exists() )
        {
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.pathOf()

    protected void assertLocalArtifactNotPresent( Artifact artifact )
        throws Exception
    {
        ArtifactRepository localRepo = localRepository();

        String path = localRepo.pathOf( artifact );

        File file = new File( localRepo.getBasedir(), path );

        if ( file.exists() )
        {
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.