Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getFileForClasspathResource (0.59 sec)

  1. maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java

                            + MavenProject.EMPTY_PROJECT_VERSION,
                    project.getId());
        }
    
        @Test
        void testClone() throws Exception {
            File f = getFileForClasspathResource("canonical-pom.xml");
            MavenProject projectToClone = getProject(f);
    
            MavenProject clonedProject = projectToClone.clone();
            assertEquals("maven-core", clonedProject.getArtifactId());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sat Apr 15 17:24:20 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

        protected File getLocalRepositoryPath() throws FileNotFoundException, URISyntaxException {
            File markerFile = getFileForClasspathResource("local-repo/marker.txt");
    
            return markerFile.getAbsoluteFile().getParentFile();
        }
    
        protected static File getFileForClasspathResource(String resource)
                throws FileNotFoundException, URISyntaxException {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

        protected File getLocalRepositoryPath() throws FileNotFoundException, URISyntaxException {
            File markerFile = getFileForClasspathResource("local-repo/marker.txt");
    
            return markerFile.getAbsoluteFile().getParentFile();
        }
    
        protected static File getFileForClasspathResource(String resource)
                throws FileNotFoundException, URISyntaxException {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. maven-compat/src/test/java/org/apache/maven/project/ClasspathArtifactResolver.java

                    String scope = artifact.getArtifactId().substring("scope-".length());
    
                    try {
                        artifact = artifact.setFile(ProjectClasspathTestType.getFileForClasspathResource(
                                ProjectClasspathTestType.dir + "transitive-" + scope + "-dep.xml"));
                        result.setArtifact(artifact);
                    } catch (FileNotFoundException | URISyntaxException e) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. maven-core/src/test/java/org/apache/maven/project/canonical/CanonicalProjectBuilderTest.java

    /**
     */
    class CanonicalProjectBuilderTest extends AbstractMavenProjectTestCase {
        @Test
        void testProjectBuilder() throws Exception {
            File f = getFileForClasspathResource("canonical-pom.xml");
    
            MavenProject project = getProject(f);
    
            // ----------------------------------------------------------------------
            // Top-level elements
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTestType.java

            projectBuilder = getContainer().lookup(ProjectBuilder.class, "classpath");
        }
    
        @Test
        void testProjectClasspath() throws Exception {
            File f = getFileForClasspathResource(dir + "project-with-scoped-dependencies.xml");
    
            MavenProject project = getProjectWithDependencies(f);
    
            Artifact artifact;
    
            assertNotNull(project, "Test project can't be null!");
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top