Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 905 for Sources (0.12 seconds)

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

    /**
     * Factory methods for creating different types of sources.
     * <p>
     * This class provides specialized source implementations for different use cases:
     * <ul>
     *   <li>Path sources - simple access to file content</li>
     *   <li>Build sources - POM files being actively built by Maven</li>
     *   <li>Resolved sources - POMs resolved from repositories</li>
     * </ul>
     *
     * @since 4.0.0
     */
    @Experimental
    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. android/guava/src/com/google/common/io/CharSource.java

            if (!source.isEmpty()) {
              return false;
            }
          }
          return true;
        }
    
        @Override
        public Optional<Long> lengthIfKnown() {
          long result = 0L;
          for (CharSource source : sources) {
            Optional<Long> lengthIfKnown = source.lengthIfKnown();
            if (!lengthIfKnown.isPresent()) {
              return Optional.absent();
            }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/io/CharSource.java

            if (!source.isEmpty()) {
              return false;
            }
          }
          return true;
        }
    
        @Override
        public Optional<Long> lengthIfKnown() {
          long result = 0L;
          for (CharSource source : sources) {
            Optional<Long> lengthIfKnown = source.lengthIfKnown();
            if (!lengthIfKnown.isPresent()) {
              return Optional.absent();
            }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/ByteSource.java

       *
       * @param sources the sources to concatenate
       * @return a {@code ByteSource} containing the concatenated data
       * @throws NullPointerException if any of {@code sources} is {@code null}
       * @since 15.0
       */
      public static ByteSource concat(ByteSource... sources) {
        return concat(ImmutableList.copyOf(sources));
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  5. 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)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java

     *   <li>Resolved sources: Used for artifacts that have been resolved by Maven from repositories
     *       (using groupId:artifactId:version coordinates) and downloaded to the local repository.
     *       These sources do not support resolving other sources.</li>
     * </ul>
     *
     * @since 4.0.0
     * @see Source
     */
    public interface ModelSource extends Source {
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  7. 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)
  8. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/BinaryCompatibilityRepository.kt

    import com.google.common.annotations.VisibleForTesting
    import gradlebuild.binarycompatibility.sources.ApiSourceFile
    import gradlebuild.binarycompatibility.sources.JavaSourceQueries
    import gradlebuild.binarycompatibility.sources.KotlinSourceQueries
    import gradlebuild.binarycompatibility.sources.SinceTagStatus
    import gradlebuild.binarycompatibility.sources.SourcesRepository
    import japicmp.model.JApiClass
    import japicmp.model.JApiCompatibility
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/composition/DefaultDependencyManagementImporter.java

        @Override
        public void importManagement(
                Model target,
                List<? extends DependencyManagement> sources,
                ModelBuildingRequest request,
                ModelProblemCollector problems) {
            if (sources != null && !sources.isEmpty()) {
                Map<String, Dependency> dependencies = new LinkedHashMap<>();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

                return List.of(
                        alias("generate-sources", SOURCES),
                        alias("process-sources", AFTER + SOURCES),
                        alias("generate-resources", RESOURCES),
                        alias("process-resources", AFTER + RESOURCES),
                        alias("process-classes", AFTER + COMPILE),
                        alias("generate-test-sources", TEST_SOURCES),
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 20.1K bytes
    - Click Count (0)
Back to Top