public class Artifact extends Object implements Comparable
| Modifier and Type | Field and Description |
|---|---|
static String |
MULE_DOMAIN |
| Constructor and Description |
|---|
Artifact(ArtifactCoordinates artifactCoordinates,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildMainPOMFileName(ArtifactCoordinates artifactCoordinates)
Build the main pom file name in a maven repository.
|
int |
compareTo(Object that) |
Artifact |
copyWithParameterizedUri() |
boolean |
equals(Object o) |
ArtifactCoordinates |
getArtifactCoordinates() |
String |
getFormattedArtifactFileName() |
static String |
getFormattedArtifactFileName(Artifact artifact)
Build the default artifact file name in a maven repository.
|
File |
getFormattedMavenDirectory(File repositoryFile) |
static File |
getFormattedMavenDirectory(File outputDirectory,
ArtifactCoordinates artifactCoordinates)
Resolves an artifact full path in a given repository based on the default maven repository layout.
|
String[] |
getPackages()
Introspection of this artifact, it will contain the array of Java packages for this artifact.
|
String |
getPomFileName()
Build the default pom file name in a maven repository.
|
static String |
getPomFileName(Artifact artifact)
Build the default pom file name in a maven repository.
|
String[] |
getResources()
Introspection of this artifact, it will contain the array of resources for this artifact.
|
URI |
getUri() |
int |
hashCode() |
boolean |
isShared() |
void |
setNewArtifactURI(Artifact newArtifact,
File newArtifactFile) |
void |
setPackages(String[] packages) |
void |
setResources(String[] resources) |
void |
setShared(boolean isShared)
Sets a boolean representing if the artifact will be shared with the app's plugins.
|
void |
setUri(URI uri) |
String |
toString() |
public static final String MULE_DOMAIN
public Artifact(ArtifactCoordinates artifactCoordinates, URI uri)
public ArtifactCoordinates getArtifactCoordinates()
public URI getUri()
public void setUri(URI uri)
public int compareTo(Object that)
compareTo in interface Comparablepublic Artifact copyWithParameterizedUri()
public static File getFormattedMavenDirectory(File outputDirectory, ArtifactCoordinates artifactCoordinates)
outputDirectory - the directory that is going to have its path prepended to the formatted output directory.artifactCoordinates - the artifact coordinates that from which the formatted output directory is going to be
constructed.public static String getFormattedArtifactFileName(Artifact artifact)
artifact - the artifact from which the default file name is going to be resolved.public void setNewArtifactURI(Artifact newArtifact, File newArtifactFile) throws URISyntaxException
URISyntaxExceptionpublic static String getPomFileName(Artifact artifact)
artifact - the artifact from which the default pom file name is going to be resolved.public static String buildMainPOMFileName(ArtifactCoordinates artifactCoordinates)
artifactCoordinates - the artifact coordinates from which the main pom file name is going to be resolved.public String getPomFileName()
public boolean isShared()
public void setShared(boolean isShared)
isShared - true if the artifact should be shared.public String getFormattedArtifactFileName()
@CheckForNull public String[] getPackages()
String[] with the packages discovered for this artifact.@CheckForNull public String[] getResources()
String[] with the resources discovered for this artifact.public void setPackages(String[] packages)
public void setResources(String[] resources)
Copyright © 2020 MuleSoft Inc. All rights reserved.