- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for ExtraInfo (0.2 sec)
-
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyModuleDescriptor.java
private final String branch; private final String ivyStatus; private final IvyExtraInfo extraInfo; public DefaultIvyModuleDescriptor(Map<NamespaceId, String> extraInfo, @Nullable String branch, String ivyStatus) { this.extraInfo = new DefaultIvyExtraInfo(extraInfo); this.branch = branch; this.ivyStatus = ivyStatus; } @Override public String getBranch() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyExtraInfoTest.groovy
def "can get value by name only" () { given: def extraInfo = new DefaultIvyExtraInfo([ (new NamespaceId('http://my.extra.info', 'foo')): 'fooValue' ]) expect: extraInfo.get('foo') == 'fooValue' extraInfo.get('goo') == null } def "throws exception when name matches multiple keys" () { given: def extraInfo = new DefaultIvyExtraInfo([
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyExtraInfo.java
import java.util.Map; public class DefaultIvyExtraInfo implements IvyExtraInfo { protected final Map<NamespaceId, String> extraInfo; public DefaultIvyExtraInfo() { this.extraInfo = new LinkedHashMap<>(); } public DefaultIvyExtraInfo(Map<NamespaceId, String> extraInfo) { this.extraInfo = extraInfo; } @Override public String get(String name) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/IvySpecificComponentMetadataRulesIntegrationTest.groovy
ruleInvoked = true def descriptor = context.getDescriptor(IvyModuleDescriptor) assert descriptor.extraInfo.asMap() == [${declareNS('foo')}: "fooValue", ${declareNS('bar')}: "barValue"] assert descriptor.extraInfo.get('foo') == 'fooValue' assert descriptor.extraInfo.get('${ns('foo').namespace}', 'foo') == 'fooValue' assert descriptor.branch == 'someBranch'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 11.3K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/dsl/org.gradle.api.publish.ivy.IvyModuleDescriptorSpec.xml
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 995 bytes - Viewed (0) -
platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishDescriptorCustomizationKotlinDslIntegTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/software/ivy/src/main/java/org/gradle/api/publish/ivy/internal/publication/DefaultIvyModuleDescriptorSpec.java
@Override public void setBranch(@Nullable String branch) { this.branch = branch; } @Override public IvyExtraInfoSpec getExtraInfo() { return extraInfo; } @Override public void extraInfo(String namespace, String elementName, String value) { if (elementName == null) { throw new InvalidUserDataException("Cannot add an extra info element with null element name");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 5.4K bytes - Viewed (0) -
platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishDescriptorCustomizationIntegTest.groovy
description.text() == "A concise description of my library" description.@homepage == 'http://www.example.com/library' extraInfo.size() == 2 extraInfo[new QName('http://my.extra.info1', 'foo')] == 'fooValue' extraInfo[new QName('http://my.extra.info2', 'bar')] == 'barValue' } } def "can generate ivy.xml without publishing"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 8.3K bytes - Viewed (0) -
platforms/software/ivy/src/test/groovy/org/gradle/api/publish/ivy/internal/publication/DefaultIvyExtraInfoSpecTest.groovy
class DefaultIvyExtraInfoSpecTest extends Specification { def "can add extra info elements" () { def DefaultIvyExtraInfoSpec extraInfo = new DefaultIvyExtraInfoSpec() when: extraInfo.add("http://my.extra.info", "foo", "fooValue") then: extraInfo.asMap() == [ (new QName("http://my.extra.info", "foo")): "fooValue" ] }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/software/ivy/src/test/groovy/org/gradle/api/publish/ivy/internal/publication/DefaultIvyModuleDescriptorSpecTest.groovy
} def "can add extra info elements" () { when: spec.extraInfo 'http://some.namespace', 'foo', 'fooValue' then: spec.getExtraInfo().get('foo') == 'fooValue' } def "cannot add extra info elements with null values" () { when: spec.extraInfo namespace, name, 'fooValue' then: def e = thrown(InvalidUserDataException)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 1.9K bytes - Viewed (0)