Record Class IvyResolver
java.lang.Object
java.lang.Record
org.copalis.jam.util.IvyResolver
- Record Components:
url- the URL of the Ivy jar filecacheDir- the path where the Ivy cache directory should be createdsettingsFile- a specific file to use for Ivy settings
- All Implemented Interfaces:
Serializable,PackageResolver
public record IvyResolver(String url, String cacheDir, File settingsFile)
extends Record
implements PackageResolver, Serializable
A wrapper for the Apache Ivy dependency manager
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIvyResolver(String url, String cacheDir, File settingsFile) Creates an instance of aIvyResolverrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncacheDir()Returns the value of thecacheDirrecord component.Executes Ivyfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ivyJar()Gets a reference to a local copy of the Ivy jar fileResolves dependenciesReturns the value of thesettingsFilerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Field Details
-
VER2_5_1_URL
-
-
Constructor Details
-
IvyResolver
-
-
Method Details
-
ivyJar
-
resolve
Description copied from interface:PackageResolverResolves dependencies- Specified by:
resolvein interfacePackageResolver- Parameters:
dependencies- dependency identifiers in the format"org:name:revision". If org and name are the same, the format"name:revision"can be used instead.- Returns:
- a stream of Path objects referencing the resolved dependencies
-
download
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
url
-
cacheDir
-
settingsFile
Returns the value of thesettingsFilerecord component.- Returns:
- the value of the
settingsFilerecord component
-