Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 62 for setScope (0.09 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java

            assertNotNull( artifact, "dependency artifact not found in map." );
            assertEquals( Artifact.SCOPE_COMPILE, artifact.getScope(), "dependency artifact has wrong scope." );
    
            //check for back-propagation of default scope.
            assertEquals( Artifact.SCOPE_COMPILE, dep.getScope(), "default scope NOT back-propagated to dependency." );
            */
        }
    
        @Test
        @Disabled
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

            // scoped graph is versioned by definition
            if (scopedVertices) {
                versionedVertices = true;
            }
        }
    
        public ArtifactScopeEnum getScope() {
            return scope;
        }
    
        public void setScope(ArtifactScopeEnum scope) {
            this.scope = scope;
        }
    
        // ------------------------------------------------------------------------
        public boolean isEmpty() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

        }
    
        @Override
        public void setDependencyTrail(List<String> dependencyTrail) {
            this.dependencyTrail = dependencyTrail;
        }
    
        @Override
        public void setScope(String scope) {
            this.scope = scope;
        }
    
        @Override
        public VersionRange getVersionRange() {
            return versionRange;
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

            }
    
            if ((artifact.getScope() != null)
                    && (!node.isChildOfRootNode() || node.getArtifact().getScope() == null)) {
                fireEvent(ResolutionListener.MANAGE_ARTIFACT_SCOPE, listeners, node, artifact);
                node.getArtifact().setScope(artifact.getScope());
            }
    
            if (Artifact.SCOPE_SYSTEM.equals(node.getArtifact().getScope())
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

                    Exclusion exclusion) {
                Dependency d = new Dependency();
                d.setGroupId(groupId);
                d.setArtifactId(artifactId);
                d.setVersion(version);
                d.setScope(scope);
    
                if (systemPath != null && scope.equals(Artifact.SCOPE_SYSTEM)) {
                    d.setSystemPath(systemPath);
                }
    
                if (exclusion != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

            if (dependency == null) {
                return null;
            }
    
            org.apache.maven.artifact.Artifact result = toArtifact(dependency.getArtifact());
            result.setScope(dependency.getScope());
            result.setOptional(dependency.isOptional());
    
            return result;
        }
    
        public static org.apache.maven.artifact.Artifact toArtifact(Artifact artifact) {
            if (artifact == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. 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);
            }
        }
    
        public void manageArtifactSystemPath(Artifact artifact, Artifact replacement) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. internal/config/lambda/event/targetidset.go

    func (set TargetIDSet) IsEmpty() bool {
    	return len(set) != 0
    }
    
    // Clone - returns copy of this set.
    func (set TargetIDSet) Clone() TargetIDSet {
    	setCopy := NewTargetIDSet()
    	for k, v := range set {
    		setCopy[k] = v
    	}
    	return setCopy
    }
    
    // add - adds TargetID to the set.
    func (set TargetIDSet) add(targetID TargetID) {
    	set[targetID] = struct{}{}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top