Class ResolveOptions


  • public class ResolveOptions
    extends LogOptions
    A set of options used during resolve related tasks
    See Also:
    ResolveEngine
    • Field Detail

      • RESOLVEMODE_DEFAULT

        public static final java.lang.String RESOLVEMODE_DEFAULT
        Default resolve mode, using default revision constraints in dependency descriptors.
        See Also:
        Constant Field Values
      • RESOLVEMODE_DYNAMIC

        public static final java.lang.String RESOLVEMODE_DYNAMIC
        Dynamic resolve mode, using dynamic revision constraints in dependency descriptors.
        See Also:
        Constant Field Values
      • RESOLVEMODES

        public static final java.lang.String[] RESOLVEMODES
        Array of all available resolve modes.
    • Constructor Detail

      • ResolveOptions

        public ResolveOptions()
    • Method Detail

      • getResolveMode

        public java.lang.String getResolveMode()
        Returns the resolve mode to use, or null to use settings configured resolve mode.
        Returns:
        the resolve mode to use.
      • setResolveMode

        public ResolveOptions setResolveMode​(java.lang.String resolveMode)
      • useSpecialConfs

        public boolean useSpecialConfs()
        Indicates if the configurations use a special configuration * , *(private) or *(public). When special configurations are used, you must have the module descriptor in order to get the list of configurations.
        Returns:
        boolean
        See Also:
        getConfs(), getConfs(ModuleDescriptor)
      • getConfs

        public java.lang.String[] getConfs()
        Returns:
        String[]
        See Also:
        getConfs(ModuleDescriptor)
        Precondition:
        can only be called if useSpecialConfs()==false. When it is true, you have to provide a module descriptor so that configurations can be resolved.
      • getConfs

        public java.lang.String[] getConfs​(ModuleDescriptor md)
        Get the asked confs. Special confs (like *) use the moduleDescriptor to find the values
        Parameters:
        md - Used to get the exact values for special confs.
        Returns:
        String[]
      • setConfs

        public ResolveOptions setConfs​(java.lang.String[] confs)
      • getDate

        public java.util.Date getDate()
      • isDownload

        public boolean isDownload()
      • setDownload

        public ResolveOptions setDownload​(boolean download)
      • isOutputReport

        public boolean isOutputReport()
      • setOutputReport

        public ResolveOptions setOutputReport​(boolean outputReport)
      • isTransitive

        public boolean isTransitive()
      • setTransitive

        public ResolveOptions setTransitive​(boolean transitive)
      • isUseCacheOnly

        public boolean isUseCacheOnly()
      • setUseCacheOnly

        public ResolveOptions setUseCacheOnly​(boolean useCacheOnly)
      • isValidate

        public boolean isValidate()
      • setValidate

        public ResolveOptions setValidate​(boolean validate)
      • getRevision

        public java.lang.String getRevision()
      • setRevision

        public ResolveOptions setRevision​(java.lang.String revision)
      • getResolveId

        public java.lang.String getResolveId()
      • setResolveId

        public ResolveOptions setResolveId​(java.lang.String resolveId)
      • isRefresh

        public boolean isRefresh()
      • setCheckIfChanged

        public ResolveOptions setCheckIfChanged​(boolean checkIfChanged)
      • getCheckIfChanged

        public boolean getCheckIfChanged()
      • getDefaultResolveId

        public static java.lang.String getDefaultResolveId​(ModuleDescriptor md)
      • getDefaultResolveId

        public static java.lang.String getDefaultResolveId​(ModuleId moduleId)