public class ManifestConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
addClasspath |
private boolean |
addDefaultImplementationEntries
Add default implementation entries if this is an extension.
|
private boolean |
addDefaultSpecificationEntries
Add default implementation entries if this is an extension specification.
|
private boolean |
addExtensions |
static java.lang.String |
CLASSPATH_LAYOUT_TYPE_CUSTOM
custom layout type.
|
static java.lang.String |
CLASSPATH_LAYOUT_TYPE_REPOSITORY
The layout type
|
static java.lang.String |
CLASSPATH_LAYOUT_TYPE_SIMPLE
The simple layout.
|
private java.lang.String |
classpathLayoutType |
private java.lang.String |
classpathPrefix
This gets prefixed to all classpath entries.
|
private java.lang.String |
customClasspathLayout |
private java.lang.String |
mainClass |
private java.lang.String |
packageName |
private boolean |
useUniqueVersions |
Constructor and Description |
---|
ManifestConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClasspathLayoutType()
Return the type of layout to use when formatting classpath entries.
|
java.lang.String |
getClasspathPrefix() |
java.lang.String |
getCustomClasspathLayout()
Retrieve the layout expression for use when the layout type set in
setClasspathLayoutType(String) has the value 'custom'. |
java.lang.String |
getMainClass() |
java.lang.String |
getPackageName() |
boolean |
isAddClasspath() |
boolean |
isAddDefaultImplementationEntries() |
boolean |
isAddDefaultSpecificationEntries() |
boolean |
isAddExtensions() |
boolean |
isUseUniqueVersions()
Retrieve the flag for whether snapshot artifacts should be added to the classpath using the
timestamp/buildnumber version (the default, when this flag is true), or using the generic
-SNAPSHOT version (when the flag is false).
|
void |
setAddClasspath(boolean addClasspath) |
void |
setAddDefaultImplementationEntries(boolean addDefaultImplementationEntries) |
void |
setAddDefaultSpecificationEntries(boolean addDefaultSpecificationEntries) |
void |
setAddExtensions(boolean addExtensions) |
void |
setClasspathLayoutType(java.lang.String classpathLayoutType)
Set the type of layout to use when formatting classpath entries.
|
void |
setClasspathPrefix(java.lang.String classpathPrefix) |
void |
setCustomClasspathLayout(java.lang.String customClasspathLayout)
Set the layout expression for use when the layout type set in
setClasspathLayoutType(String) has the value 'custom'. |
void |
setMainClass(java.lang.String mainClass) |
void |
setPackageName(java.lang.String packageName) |
void |
setUseUniqueVersions(boolean useUniqueVersions)
Set the flag for whether snapshot artifacts should be added to the classpath using the timestamp/buildnumber
version (the default, when this flag is true), or using the generic -SNAPSHOT version (when the flag is false).
|
public static final java.lang.String CLASSPATH_LAYOUT_TYPE_SIMPLE
public static final java.lang.String CLASSPATH_LAYOUT_TYPE_REPOSITORY
public static final java.lang.String CLASSPATH_LAYOUT_TYPE_CUSTOM
private java.lang.String mainClass
private java.lang.String packageName
private boolean addClasspath
private boolean addExtensions
private java.lang.String classpathPrefix
private boolean addDefaultSpecificationEntries
private boolean addDefaultImplementationEntries
private java.lang.String classpathLayoutType
private java.lang.String customClasspathLayout
private boolean useUniqueVersions
public java.lang.String getMainClass()
public java.lang.String getPackageName()
public boolean isAddClasspath()
public boolean isAddDefaultImplementationEntries()
addDefaultImplementationEntries
public boolean isAddDefaultSpecificationEntries()
addDefaultSpecificationEntries
public boolean isAddExtensions()
addExtensions
public void setAddClasspath(boolean addClasspath)
addClasspath
- turn on addClasspath or off.public void setAddDefaultImplementationEntries(boolean addDefaultImplementationEntries)
addDefaultImplementationEntries
- true to add default implementations false otherwise.public void setAddDefaultSpecificationEntries(boolean addDefaultSpecificationEntries)
addDefaultSpecificationEntries
- add default specifications true/false.public void setAddExtensions(boolean addExtensions)
addExtensions
- true to add extensions false otherwise.public void setClasspathPrefix(java.lang.String classpathPrefix)
classpathPrefix
- The prefix.public void setMainClass(java.lang.String mainClass)
mainClass
- The main class.public void setPackageName(java.lang.String packageName)
packageName
- The package name.public java.lang.String getClasspathPrefix()
public java.lang.String getClasspathLayoutType()
setCustomClasspathLayout(String)
.public void setClasspathLayoutType(java.lang.String classpathLayoutType)
ManifestConfiguration
class. setCustomClasspathLayout(String)
.classpathLayoutType
- The classpath layout type.public java.lang.String getCustomClasspathLayout()
setClasspathLayoutType(String)
has the value 'custom'. The default value is
null. Expressions will be evaluated against the following ordered list of classpath-related objects:
Artifact
instance, if one exists.ArtifactHandler
instance from the artifact above.public void setCustomClasspathLayout(java.lang.String customClasspathLayout)
setClasspathLayoutType(String)
has the value 'custom'. Expressions will be
evaluated against the following ordered list of classpath-related objects:
Artifact
instance, if one exists.ArtifactHandler
instance from the artifact above.customClasspathLayout
- The custom classpath layout.public boolean isUseUniqueVersions()
useUniqueVersions
public void setUseUniqueVersions(boolean useUniqueVersions)
useUniqueVersions
- true to use unique versions or not.