org.apache.ivy.core.deliver
Class DeliverOptions

java.lang.Object
  extended by org.apache.ivy.core.deliver.DeliverOptions

public class DeliverOptions
extends java.lang.Object

A set of options used to do a deliver.


Constructor Summary
DeliverOptions()
          Creates an instance of DeliverOptions which require to be configured using the appropriate setters.
DeliverOptions(java.lang.String status, java.util.Date pubDate, CacheManager cache, PublishingDependencyRevisionResolver pdrResolver, boolean validate, boolean resolveDynamicRevisions)
          Creates an instance of DeliverOptions with all options explicitly set.
 
Method Summary
 CacheManager getCache()
           
 PublishingDependencyRevisionResolver getPdrResolver()
          Return the pdrResolver that will be used during deliver for each dependency to get its published information.
 java.util.Date getPubdate()
           
 java.lang.String getResolveId()
          Returns the id of a previous resolve to use for delivering.
 java.lang.String getStatus()
          Returns the status to which the module should be delivered, or null if the current status should be kept.
 boolean isResolveDynamicRevisions()
           
 boolean isValidate()
           
static DeliverOptions newInstance(IvySettings settings)
          Returns an instance of DeliverOptions with options corresponding to default values taken from the given settings.
 DeliverOptions setCache(CacheManager cache)
           
 DeliverOptions setPdrResolver(PublishingDependencyRevisionResolver pdrResolver)
          Sets the pdrResolver that will be used during deliver for each dependency to get its published information.
 DeliverOptions setPubdate(java.util.Date pubdate)
           
 DeliverOptions setResolveDynamicRevisions(boolean resolveDynamicRevisions)
           
 DeliverOptions setResolveId(java.lang.String resolveId)
          Sets the id of a previous resolve to use for delivering.
 DeliverOptions setStatus(java.lang.String status)
          Sets the status to which the module should be delivered, use null if the current status should be kept.
 DeliverOptions setValidate(boolean validate)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeliverOptions

public DeliverOptions()
Creates an instance of DeliverOptions which require to be configured using the appropriate setters.


DeliverOptions

public DeliverOptions(java.lang.String status,
                      java.util.Date pubDate,
                      CacheManager cache,
                      PublishingDependencyRevisionResolver pdrResolver,
                      boolean validate,
                      boolean resolveDynamicRevisions)
Creates an instance of DeliverOptions with all options explicitly set.

Method Detail

newInstance

public static DeliverOptions newInstance(IvySettings settings)
Returns an instance of DeliverOptions with options corresponding to default values taken from the given settings.

Parameters:
settings - The settings to use to get default option values
Returns:
a DeliverOptions instance ready to be used or customized

getCache

public CacheManager getCache()

setCache

public DeliverOptions setCache(CacheManager cache)

getPdrResolver

public PublishingDependencyRevisionResolver getPdrResolver()
Return the pdrResolver that will be used during deliver for each dependency to get its published information. This can particularly useful when the deliver is made for a release, and when we wish to deliver each dependency which is still in integration. The PublishingDependencyRevisionResolver can then do the delivering work for the dependency and return the new (delivered) dependency info (with the delivered revision). Note that PublishingDependencyRevisionResolver is only called for each direct dependency.

Returns:
the pdrResolver that will be used during deliver

setPdrResolver

public DeliverOptions setPdrResolver(PublishingDependencyRevisionResolver pdrResolver)
Sets the pdrResolver that will be used during deliver for each dependency to get its published information. This can particularly useful when the deliver is made for a release, and when we wish to deliver each dependency which is still in integration. The PublishingDependencyRevisionResolver can then do the delivering work for the dependency and return the new (delivered) dependency info (with the delivered revision). Note that PublishingDependencyRevisionResolver is only called for each direct dependency.

Returns:
the instance of DeliverOptions on which the method has been called, for easy method chaining

isResolveDynamicRevisions

public boolean isResolveDynamicRevisions()

setResolveDynamicRevisions

public DeliverOptions setResolveDynamicRevisions(boolean resolveDynamicRevisions)

isValidate

public boolean isValidate()

setValidate

public DeliverOptions setValidate(boolean validate)

getPubdate

public java.util.Date getPubdate()

setPubdate

public DeliverOptions setPubdate(java.util.Date pubdate)

getStatus

public java.lang.String getStatus()
Returns the status to which the module should be delivered, or null if the current status should be kept.

Returns:
the status to which the module should be delivered

setStatus

public DeliverOptions setStatus(java.lang.String status)
Sets the status to which the module should be delivered, use null if the current status should be kept.

Returns:
the instance of DeliverOptions on which the method has been called, for easy method chaining

getResolveId

public java.lang.String getResolveId()
Returns the id of a previous resolve to use for delivering.

Returns:
the id of a previous resolve

setResolveId

public DeliverOptions setResolveId(java.lang.String resolveId)
Sets the id of a previous resolve to use for delivering.

Parameters:
resolveId - the id of a previous resolve
Returns:
the instance of DeliverOptions on which the method has been called, for easy method chaining

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object