Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for toURL (0.02 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)) {
                assertEquals("Hello World!", scanner.nextLine());
    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-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)
  3. compat/maven-compat/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java

                myClasspathEntry = myClasspathEntry.substring("file:".length());
            }
    
            URL docResource;
            try {
                docResource = new File(myClasspathEntry).toURL();
            } catch (MalformedURLException e) {
                throw new ExpressionDocumentationException(
                        "Cannot construct expression documentation classpath" + " resource base.", e);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PlexusContainerCapsuleFactory.java

                for (Path file : extClassPath) {
                    logger.debug("  included '" + file + "'");
                    extRealm.addURL(file.toUri().toURL());
                }
    
                ArrayList<CoreExtensionEntry> reversed = new ArrayList<>(extensions);
                Collections.reverse(reversed);
                for (CoreExtensionEntry entry : reversed) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/BootstrapCoreExtensionManager.java

                    log.debug("  Excluded {}", id);
                } else {
                    File file = artifact.getFile();
                    log.debug("  Included {} located at {}", id, file);
                    realm.addURL(file.toURI().toURL());
                }
            }
            return CoreExtensionEntry.discoverFrom(
                    realm,
                    Collections.singleton(artifacts.get(0).getFile()),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  6. build-logic/build-init-samples/src/main/kotlin/gradlebuild/samples/SamplesGenerator.kt

            return tasksExecuted + if (descriptor.language === Language.KOTLIN) 1 else 0
        }
    
        private
        fun Directory.template(templateFragment: String) = file("$templateFragment.template").asFile.toURI().toURL()
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 22 11:11:17 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java

                    String id = getId(constituent);
                    logger.debug("  Included: {}", id);
                }
    
                try {
                    classRealm.addURL(file.toURI().toURL());
                } catch (MalformedURLException e) {
                    // Not going to happen
                    logger.error(e.getMessage(), e);
                }
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                    uri = new URI(baseHref == null ? responseData.getUrl() : baseHref);
                } catch (final Exception e) {
                    uri = new URI(responseData.getUrl());
                }
                final URL url = uri.toURL();
                getChildUrlRules(responseData, resultData).forEach(entry -> {
                    List<RequestData> requestDataList = new ArrayList<>();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                for (File file : extClassPath) {
                    slf4jLogger.debug("  included '{}'", file);
    
                    extRealm.addURL(file.toURI().toURL());
                }
    
                for (CoreExtensionEntry entry : reverse(extensions)) {
                    Set<String> exportedPackages = entry.getExportedPackages();
                    ClassRealm realm = entry.getClassRealm();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
Back to top