Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for getBasedir (0.29 sec)

  1. maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            File file = new File(remoteRepo.getBasedir(), path);
    
            assertFalse(file.exists(), "Remote artifact " + file + " should not be present.");
        }
    
        protected void assertLocalArtifactNotPresent(Artifact artifact) throws Exception {
            ArtifactRepository localRepo = localRepository();
    
            String path = localRepo.pathOf(artifact);
    
            File file = new File(localRepo.getBasedir(), path);
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  2. maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java

            ArtifactRepository localRepository = localRepository();
    
            Artifact a = createArtifact("a", "0.0.1-SNAPSHOT");
            File file = new File(localRepository.getBasedir(), localRepository.pathOf(a));
            file.delete();
            a.setFile(file);
    
            File touchFile = updateCheckManager.getTouchfile(a);
            touchFile.delete();
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

    import org.eclipse.aether.repository.LocalRepository;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  4. maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

            return container;
        }
    
        protected File getProject(String name) throws Exception {
            File source = new File(new File(getBasedir(), getProjectsDirectory()), name);
            File target = new File(new File(getBasedir(), "target"), name);
            FileUtils.copyDirectoryStructureIfModified(source, target);
            return new File(target, "pom.xml");
        }
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 11K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

            if (repository == null || repository.getBasedir() == null) {
                return session;
            }
    
            if (session != null) {
                LocalRepositoryManager lrm = session.getLocalRepositoryManager();
                if (lrm != null && lrm.getRepository().getBasedir().equals(new File(repository.getBasedir()))) {
                    return session;
                }
            } else {
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

         * the path may point to a non XML file.
         * <p>
         * The POM path is also used to define the {@linkplain #getBasedir() base directory}
         * of the project.
         *
         * @return the path of the pom
         * @see #getBasedir()
         */
        @Nonnull
        Path getPomPath();
    
        /**
         * Returns the project base directory, i.e. the directory containing the project.
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Feb 05 09:42:51 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

            return container;
        }
    
        protected File getProject(String name) throws Exception {
            File source = new File(new File(getBasedir(), getProjectsDirectory()), name);
            File target = new File(new File(getBasedir(), "target"), name);
            FileUtils.copyDirectoryStructureIfModified(source, target);
            return new File(target, "pom.xml");
        }
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  8. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

        }
    
        @Nonnull
        @Override
        public Path getPomPath() {
            return nonNull(project.getFile(), "pomPath").toPath();
        }
    
        @Override
        public Path getBasedir() {
            return nonNull(project.getBasedir(), "basedir").toPath();
        }
    
        @Nonnull
        @Override
        public List<DependencyCoordinate> getDependencies() {
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/settings/PomConstructionWithSettingsTest.java

    import org.eclipse.aether.repository.LocalRepository;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    @PlexusTest
    class PomConstructionWithSettingsTest {
        private static final String BASE_DIR = "src/test";
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

    import org.apache.maven.execution.MavenSession;
    import org.apache.maven.session.scope.internal.SessionScope;
    import org.junit.jupiter.api.Test;
    
    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    
    /**
     */
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
Back to top