Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for getBasedir (0.07 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/DelegatingLocalArtifactRepository.java

        @Override
        public String pathOf(Artifact artifact) {
            return userLocalArtifactRepository.pathOf(artifact);
        }
    
        @Override
        public String getBasedir() {
            return (userLocalArtifactRepository != null) ? userLocalArtifactRepository.getBasedir() : null;
        }
    
        @Override
        public ArtifactRepositoryLayout getLayout() {
            return userLocalArtifactRepository.getLayout();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java

    import org.apache.maven.artifact.Artifact;
    import org.apache.maven.execution.MavenSession;
    import org.apache.maven.project.MavenProject;
    import org.junit.jupiter.api.Test;
    
    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.hamcrest.MatcherAssert.assertThat;
    import static org.hamcrest.Matchers.endsWith;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    @Deprecated
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

        }
    
        public LocalArtifactResult find(RepositorySystemSession session, LocalArtifactRequest request) {
            String path = getPathForLocalArtifact(request.getArtifact());
            File file = new File(getRepository().getBasedir(), path);
    
            LocalArtifactResult result = new LocalArtifactResult(request);
            if (file.isFile()) {
                result.setFile(file);
                result.setAvailable(true);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t09/ProjectInheritanceTest.java

            MavenProject project1 = getProjectWithDependencies(pom1);
    
            assertNotNull(project1.getParent(), "Parent is null");
            assertEquals(pom0Basedir, project1.getParent().getBasedir());
            Map map = project1.getArtifactMap();
    
            assertNotNull(map, "No artifacts");
            assertTrue(map.size() > 0, "No Artifacts");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/test/java/org/apache/maven/cli/event/ExecutionEventLoggerTest.java

            when(event.getProject()).thenReturn(project);
    
            MavenProject rootProject = mock(MavenProject.class);
            when(rootProject.getBasedir()).thenReturn(basedir);
            MavenSession session = mock(MavenSession.class);
            when(session.getTopLevelProject()).thenReturn(rootProject);
            when(session.getTopDirectory()).thenReturn(basedir.toPath());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            if (repository == null || repository.getBasedir() == null) {
                return session;
            }
    
            DefaultRepositorySystemSession newSession;
            if (session != null) {
                LocalRepositoryManager lrm = session.getLocalRepositoryManager();
                if (lrm != null && lrm.getRepository().getBasedir().equals(new File(repository.getBasedir()))) {
                    return session;
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

                            request.getArtifact().getArtifactId(),
                            request.getArtifact().getVersion());
                    File pomFile = new File(
                            request.getLocalRepository().getBasedir(),
                            request.getLocalRepository().pathOf(pomArtifact));
    
                    try {
                        Model model = modelReader.read(pomFile, null).getDelegate();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/UserLocalArtifactRepository.java

            this.localRepository = localRepository;
            setLayout(localRepository.getLayout());
        }
    
        @Override
        public Artifact find(Artifact artifact) {
            File artifactFile = new File(localRepository.getBasedir(), pathOf(artifact));
    
            // We need to set the file here or the resolver will fail with an NPE, not fully equipped to deal
            // with multiple local repository implementations yet.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java

            Path trackingDir;
            boolean missing = event.getFile() == null;
            if (missing) {
                // missing artifact - let's track the path anyway
                File dir = event.getSession().getLocalRepository().getBasedir();
                dir = new File(
                        dir, event.getSession().getLocalRepositoryManager().getPathForLocalArtifact(event.getArtifact()));
                trackingDir = dir.getParentFile().toPath().resolve(".tracking");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t07/ProjectInheritanceTest.java

            File pom1 = new File(pom0Basedir, "p1/pom.xml");
    
            // load everything...
            MavenProject project1 = getProjectWithDependencies(pom1);
    
            assertEquals(pom0Basedir, project1.getParent().getBasedir());
            System.out.println("Project " + project1.getId() + " " + project1);
            Set set = project1.getArtifacts();
            assertNotNull(set, "No artifacts");
            assertTrue(set.size() > 0, "No Artifacts");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top