Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for toUri (0.04 sec)

  1. compat/maven-builder-support/src/test/java/org/apache/maven/building/UrlSourceTest.java

            assertEquals("url cannot be null", e.getMessage());
        }
    
        @Test
        void testGetInputStream() throws Exception {
            URL txtFile = new File("target/test-classes/source.txt").toURI().toURL();
            UrlSource source = new UrlSource(txtFile);
            try (InputStream is = source.getInputStream();
                    Scanner scanner = new Scanner(is)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java

                                if ("baseUri".equals(expression)) {
                                    return projectDir.toAbsolutePath().toUri().toASCIIString();
                                } else if (expression.startsWith("baseUri.")) {
                                    URI baseUri = projectDir.toAbsolutePath().toUri();
                                    return new ObjectBasedValueSource(baseUri)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileModelSource.java

            if (relatedPom != null) {
                return new FileModelSource(relatedPom.normalize());
            }
    
            return null;
        }
    
        @Override
        public URI getLocationURI() {
            return getPath().toUri();
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
            if (obj == null) {
                return false;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

                    result = path.getAbsoluteFile();
                } else {
                    // an ordinary relative path, align with base dir
                    result = new File(new File(basedir, path.getPath()).toURI().normalize()).getAbsoluteFile();
                }
            }
    
            return result;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractRepositoryTestCase.java

            return new RemoteRepository.Builder(
                            "repo",
                            "default",
                            getTestFile("target/test-classes/repo").toURI().toURL().toString())
                    .build();
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

                    "file://"
                            + new File(System.getProperty("basedir", "."), "src/test/remote-repo")
                                    .getAbsoluteFile()
                                    .toURI()
                                    .getPath(),
                    new DefaultRepositoryLayout(),
                    new ArtifactRepositoryPolicy(),
                    new ArtifactRepositoryPolicy());
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            policy.setUpdatePolicy("always");
    
            Repository repository = new Repository();
            repository.setId(RepositorySystem.DEFAULT_REMOTE_REPO_ID);
            repository.setUrl("file://" + repoDir.toURI().getPath());
            repository.setReleases(policy);
            repository.setSnapshots(policy);
    
            return Arrays.asList(repositorySystem.buildArtifactRepository(repository));
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

                return rel != null ? new SourceWrapper(rel) : null;
            }
    
            @Override
            public URI getLocationURI() {
                Path path = source.getPath();
                return path != null ? path.toUri() : URI.create(source.getLocation());
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/AnalyzeAndShade.kt

    ) {
    
        fun analyze(jarFile: File, classesDir: File, manifestFile: File, buildReceipt: File): ClassGraph {
            val classGraph = classGraph()
    
            val jarUri = URI.create("jar:${jarFile.toPath().toUri()}")
            FileSystems.newFileSystem(jarUri, emptyMap<String, Any>()).use { jarFileSystem ->
                jarFileSystem.rootDirectories.forEach {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Oct 28 12:55:30 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java

            }
    
            // relative path, e.g. "sub", "../sub" or "."
            else if (reactorDirectory != null) {
                File selectedProject =
                        new File(new File(reactorDirectory, selector).toURI().normalize());
    
                if (selectedProject.isFile()) {
                    return selectedProject.equals(project.getFile());
                } else if (selectedProject.isDirectory()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top