api / org.gradle.api.artifacts.ivy / IvyExtraInfo / get

get

abstract fun get(name: String): String

Returns the value of the element with the unique element name. If there are multiple elements with the same element name, in different namespaces, a org.gradle.api.InvalidUserDataException will be thrown.

Parameters

name - The unique name of the element whose value should be returned

Return
The value of the element, or null if there is no such element.

abstract fun get(namespace: String, name: String): String

Returns the value of the element with the name and namespace provided.

Parameters

namespace - The namespace of the element whose value should be returned

name - The name of the element whose value should be returned

Return
The value of the element, or null if there is no such element.