Package org.apache.ivy.core.publish
Class PublishOptions
java.lang.Object
org.apache.ivy.core.publish.PublishOptions
A set of options used during publish related tasks The publish can update the ivy file to publish
if update is set to true. In this case it will use the given pubrevision, pubdate and status. If
pudate is null it will default to the current date. If status is null it will default to the
current ivy file status (which itself defaults to integration if none is found). If update is
false, then if the revision is not the same in the ivy file than the one expected (given as
parameter), this method will fail with an IllegalArgumentException. pubdate and status are not
used if update is false. extra artifacts can be used to publish more artifacts than actually
declared in the ivy file. This can be useful to publish additional metadata or reports. The extra
artifacts array can be null (= no extra artifacts), and if non null only the name, type, ext url
and extra attributes of the artifacts are really used. Other methods (on the artifacts) can
return null safely.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
getConfs()
Artifact[]
boolean
boolean
isMerge()
boolean
boolean
isUpdate()
boolean
boolean
setExtraArtifacts
(Artifact[] extraArtifacts) setHaltOnMissing
(boolean haltonmissing) setMerge
(boolean merge) setOverwrite
(boolean overwrite) setPubbranch
(String pubbranch) setPubdate
(Date pubdate) setPubrevision
(String pubrevision) setSrcIvyPattern
(String srcIvyPattern) setUpdate
(boolean update) setValidate
(boolean validate) setWarnOnMissing
(boolean warnonmissing)
-
Constructor Details
-
PublishOptions
public PublishOptions()
-
-
Method Details
-
getConfs
-
setConfs
-
getExtraArtifacts
-
setExtraArtifacts
-
isOverwrite
public boolean isOverwrite() -
setOverwrite
-
getPubdate
-
setPubdate
-
getPubrevision
-
setPubrevision
-
getSrcIvyPattern
-
setSrcIvyPattern
-
getStatus
-
setStatus
-
isUpdate
public boolean isUpdate() -
setUpdate
-
isMerge
public boolean isMerge() -
setMerge
-
isValidate
public boolean isValidate() -
setValidate
-
isHaltOnMissing
public boolean isHaltOnMissing() -
setHaltOnMissing
-
getPubBranch
-
setPubbranch
-
isWarnOnMissing
public boolean isWarnOnMissing() -
setWarnOnMissing
-