Package com.github.dkartaschew
Class ArtifactDefinition
- java.lang.Object
-
- com.github.dkartaschew.ArtifactDefinition
-
public class ArtifactDefinition extends Object
Item / Artifact update definition
-
-
Constructor Summary
Constructors Constructor Description ArtifactDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetArtifact()Get the name of the artifact to update.FilegetJarFile()The name of the JAR File to update.FilegetManifestFile()Get the manifest file that will be used as the source to update the manifest in the JAR/artifact.StringgetMode()Get the update mode.inthashCode()booleanisValidState()Does this artifact have enough information to proceed.voidsetArtifact(String artifact)Set the name of the artifact to update.voidsetJarFile(File jarFile)Set the name of the JAR File to update.voidsetManifestFile(File manifestFile)Set the manifest file that will be used as the source to update the manifest.voidsetMode(String mode)Set the update mode.
-
-
-
Method Detail
-
getJarFile
public File getJarFile()
The name of the JAR File to update.- Returns:
- The name of the JAR File to update or
nullif not set.
-
setJarFile
public void setJarFile(File jarFile)
Set the name of the JAR File to update.- Parameters:
jarFile- The name of the JAR File to update, ornullto unset.
-
getArtifact
public String getArtifact()
Get the name of the artifact to update.- Returns:
- The name of the artifact to update.
-
setArtifact
public void setArtifact(String artifact)
Set the name of the artifact to update. This name should be in apache buildr format. (groupId:artifactId:version).This method does not verify artifact
- Parameters:
artifact- The name of the artifact to update.
-
getManifestFile
public File getManifestFile()
Get the manifest file that will be used as the source to update the manifest in the JAR/artifact.- Returns:
- The manifest file.
-
setManifestFile
public void setManifestFile(File manifestFile)
Set the manifest file that will be used as the source to update the manifest.- Parameters:
manifestFile- The file.
-
getMode
public String getMode()
Get the update mode.- Returns:
- The update mode.
-
setMode
public void setMode(String mode)
Set the update mode.- Parameters:
mode- The update mode, ornullto reset to default.
-
isValidState
public boolean isValidState()
Does this artifact have enough information to proceed.This method does not check to see if items set are accessibly/readable/valid, just that values have been set.
- Returns:
- TRYE if all required values have been set.
-
-