Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 335 for Source (0.53 seconds)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/Sources.java

    public final class Sources {
    
        private Sources() {}
    
        /**
         * Creates a new source for the specified path.
         *
         * @param path the path to the file
         * @return a new Source instance
         * @throws NullPointerException if path is null
         */
        @Nonnull
        public static Source fromPath(@Nonnull Path path) {
            return new PathSource(requireNonNull(path, "path"));
        }
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  2. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            Path path = Paths.get("/tmp");
            Source source = Sources.fromPath(path);
    
            assertNotNull(source);
            assertInstanceOf(Sources.PathSource.class, source);
            assertEquals(path.normalize(), source.getPath());
        }
    
        @Test
        void testBuildSource() {
            Path path = Paths.get("/tmp");
            ModelSource source = Sources.buildSource(path);
    
            assertNotNull(source);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  3. api/maven-api-core/src/test/java/org/apache/maven/api/services/ModelSourceTest.java

            ModelSource source = Sources.resolvedSource(path, modelId);
    
            assertNotNull(source);
            assertEquals(modelId, source.getModelId(), "Resolved source should return the provided modelId");
            assertNull(source.getPath(), "Resolved sources should return null for getPath()");
            assertEquals(path.toString(), source.getLocation());
        }
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderRequest.java

            return builder(requireNonNull(request, "request cannot be null"))
                    .source(requireNonNull(source, "source cannot be null"))
                    .build();
        }
    
        @Nonnull
        static ModelBuilderRequest build(@Nonnull Session session, @Nonnull ModelSource source) {
            return builder()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        List<ByteSource> sources = new ArrayList<>();
        int start = 0;
        for (Integer span : spans) {
          sources.add(newByteSource(start, span));
          start += span;
        }
        ByteSource joined = ByteSource.concat(sources);
        assertTrue(newByteSource(0, start).contentEquals(joined));
      }
    
      public void testReadSingleByte() throws Exception {
        ByteSource source = newByteSource(0, 10);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

          val source = response.body.source()
          assertThat(response.header("h1")).isEqualTo("v1")
          assertThat(source.readUtf8()).isEqualTo("Hello")
          assertThat(response.trailers()).isEqualTo(headersOf("t1", "v2"))
        }
    
        val call2 = client.newCall(Request(server.url("/")))
        call2.execute().use { response ->
          val source = response.body.source()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 08 21:45:04 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  7. doap_Maven.rdf

    .1-bin.tar.gz http://archive.apache.org/dist/maven/source/apache-maven-3.0.1-src.zip http://archive.apache.org/dist/maven/source/apache-maven-3.0.1-src.tar.gz Apache Maven 3.0 2010-10-04 3.0 http://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip http://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.tar.gz http://archive.apache.org/dist/maven/source/apache-maven-3.0-src.zip http://archive.apache.org/dist/maven/source/apache-maven-3.0-src.tar.gz https://gitbox.apache.o...
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 16 21:54:15 GMT 2025
    - 36.6K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectBuilderRequest.java

            /**
             * Sets the source of the project to build.
             * This is an alternative to specifying a path, allowing the project to be built from
             * a model source such as a string or input stream.
             *
             * @param source the source of the project
             * @return this builder instance
             */
            public ProjectBuilderRequestBuilder source(Source source) {
                this.source = source;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PrecedenceCoreExtensionSelector.java

            context.logger.debug("Configured core extensions (in precedence order):");
            for (CoreExtensions source : configuredCoreExtensions) {
                context.logger.debug("* Source file: " + source.source());
                for (CoreExtension extension : source.coreExtensions()) {
                    context.logger.debug("  - " + extension.getId() + " -> " + formatLocation(extension.getLocation("")));
                }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 15:32:43 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  10. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/JSpecifyNullUnmarkedChangesTest.kt

            checkNotBinaryCompatibleJava(
                v1 = """
                    public class Source {
                        public String foo() { return "bar"; }
                        public String[] baz() { return new String[] {"some"}; }
                    }
                """,
                v2 = """
                    public class Source {
                        @$nullUnmarkedAnnotationName public String foo() { return "bar"; }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Oct 27 09:26:32 GMT 2025
    - 5.1K bytes
    - Click Count (0)
Back to Top