Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for getScopes (0.06 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/CumulativeScopeArtifactFilter.java

            this.scopes = new HashSet<>();
    
            if (filters != null) {
                for (CumulativeScopeArtifactFilter filter : filters) {
                    addScopes(filter.getScopes());
                }
            }
        }
    
        private void addScopes(Collection<String> scopes) {
            if (scopes != null) {
                for (String scope : scopes) {
                    addScope(scope);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 08:42:00 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleExecutionPlanCalculatorStub.java

            mojoDescriptor.setPluginDescriptor(descriptor);
            mojoDescriptor.setThreadSafe(threadSafe);
            return mojoDescriptor;
        }
    
        public static Set<String> getScopes() {
            return new HashSet<>(Arrays.asList("compile"));
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/NetbiosNameTest.java

        }
    
        @Test
        @DisplayName("Should handle getScope() method")
        void testGetScope() {
            // Given
            String testScope = "WORKGROUP";
            when(mockNetbiosName.getScope()).thenReturn(testScope);
    
            // When
            String scope = mockNetbiosName.getScope();
    
            // Then
            assertEquals(testScope, scope);
            verify(mockNetbiosName).getScope();
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTestType.java

            System.out.println("b = " + artifact.getScope());
            assertEquals("test", artifact.getScope(), "Check scope");
            artifact = getArtifact(project, "maven-test-test", "scope-default");
            assertEquals("test", artifact.getScope(), "Check scope");
            artifact = getArtifact(project, "maven-test-test", "scope-runtime");
            assertEquals("test", artifact.getScope(), "Check scope");
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DebugResolutionListener.java

        public void manageArtifactScope(Artifact artifact, Artifact replacement) {
            // only show msg if a change is actually taking place
            if (!replacement.getScope().equals(artifact.getScope())) {
                String msg = indent + artifact + " (applying artifactScope: " + replacement.getScope() + ")";
                logger.debug(msg);
            }
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AbstractScopeArtifactFilter.java

            if (Artifact.SCOPE_COMPILE.equals(artifact.getScope())) {
                return compileScope;
            } else if (Artifact.SCOPE_RUNTIME.equals(artifact.getScope())) {
                return runtimeScope;
            } else if (Artifact.SCOPE_TEST.equals(artifact.getScope())) {
                return testScope;
            } else if (Artifact.SCOPE_PROVIDED.equals(artifact.getScope())) {
                return providedScope;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/artifact/factory/DefaultArtifactFactoryTest.java

            assertEquals("system", artifact.getScope());
            assertEquals("system", artifact2.getScope());
            assertEquals("system", artifact3.getScope());
            assertEquals("system", artifact4.getScope());
            assertEquals("system", artifact5.getScope());
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t10/ProjectInheritanceTest.java

            System.out.println(a.getScope());
            assertTrue(a.getScope().equals("test"), "Incorrect scope for " + a.getDependencyConflictId());
    
            // transitive dep, overridden b depMgmt
            assertTrue(b.getScope().equals("runtime"), "Incorrect scope for " + b.getDependencyConflictId());
    
            // direct dep, overrides depMgmt
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphEdge.java

            if (o instanceof MetadataGraphEdge e) {
                return objectsEqual(version, e.version)
                        && ArtifactScopeEnum.checkScope(scope)
                                .getScope()
                                .equals(ArtifactScopeEnum.checkScope(e.scope).getScope())
                        && depth == e.depth;
            }
            return false;
        }
    
        // ----------------------------------------------------------------------------
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 08:42:00 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

            when(mockCalledName.getNameType()).thenReturn(0x20);
            when(mockCalledName.getScope()).thenReturn(null);
    
            when(mockCallingName.getName()).thenReturn("CLIENT");
            when(mockCallingName.getNameType()).thenReturn(0x00);
            when(mockCallingName.getScope()).thenReturn(null);
    
            SessionRequestPacket packet = new SessionRequestPacket(mockConfig, mockCalledName, mockCallingName);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top