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 boolean
equals(Object obj)
String
getArtifact()
Get the name of the artifact to update.File
getJarFile()
The name of the JAR File to update.File
getManifestFile()
Get the manifest file that will be used as the source to update the manifest in the JAR/artifact.String
getMode()
Get the update mode.int
hashCode()
boolean
isValidState()
Does this artifact have enough information to proceed.void
setArtifact(String artifact)
Set the name of the artifact to update.void
setJarFile(File jarFile)
Set the name of the JAR File to update.void
setManifestFile(File manifestFile)
Set the manifest file that will be used as the source to update the manifest.void
setMode(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
null
if 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, ornull
to 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, ornull
to 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.
-
-