public class ManifestConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLASSPATH_LAYOUT_TYPE_CUSTOM
custom layout type.
|
static String |
CLASSPATH_LAYOUT_TYPE_REPOSITORY
The layout type
|
static String |
CLASSPATH_LAYOUT_TYPE_SIMPLE
The simple layout.
|
Constructor and Description |
---|
ManifestConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getClasspathLayoutType()
Return the type of layout to use when formatting classpath entries.
|
String |
getClasspathPrefix()
Getter for the field
classpathPrefix . |
String |
getCustomClasspathLayout()
Retrieve the layout expression for use when the layout type set in
setClasspathLayoutType(String) has the value 'custom'. |
String |
getMainClass()
Getter for the field
mainClass . |
String |
getPackageName()
Getter for the field
packageName . |
boolean |
isAddBuildEnvironmentEntries()
isAddBuildEnvironmentEntries.
|
boolean |
isAddClasspath()
isAddClasspath.
|
boolean |
isAddDefaultEntries()
isAddDefaultEntries.
|
boolean |
isAddDefaultImplementationEntries()
isAddDefaultImplementationEntries.
|
boolean |
isAddDefaultSpecificationEntries()
isAddDefaultSpecificationEntries.
|
boolean |
isAddExtensions()
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 |
setAddBuildEnvironmentEntries(boolean addBuildEnvironmentEntries)
Setter for the field
addBuildEnvironmentEntries . |
void |
setAddClasspath(boolean addClasspath)
Setter for the field
addClasspath . |
void |
setAddDefaultEntries(boolean addDefaultEntries)
Setter for the field
addDefaultEntries . |
void |
setAddDefaultImplementationEntries(boolean addDefaultImplementationEntries)
Setter for the field
addDefaultImplementationEntries . |
void |
setAddDefaultSpecificationEntries(boolean addDefaultSpecificationEntries)
Setter for the field
addDefaultSpecificationEntries . |
void |
setAddExtensions(boolean addExtensions)
Setter for the field
addExtensions . |
void |
setClasspathLayoutType(String classpathLayoutType)
Set the type of layout to use when formatting classpath entries.
|
void |
setClasspathPrefix(String classpathPrefix)
Setter for the field
classpathPrefix . |
void |
setCustomClasspathLayout(String customClasspathLayout)
Set the layout expression for use when the layout type set in
setClasspathLayoutType(String) has the value 'custom'. |
void |
setMainClass(String mainClass)
Setter for the field
mainClass . |
void |
setPackageName(String packageName)
Setter for the field
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 String CLASSPATH_LAYOUT_TYPE_SIMPLE
public static final String CLASSPATH_LAYOUT_TYPE_REPOSITORY
public static final String CLASSPATH_LAYOUT_TYPE_CUSTOM
public String getMainClass()
Getter for the field mainClass
.
public String getPackageName()
Getter for the field packageName
.
public boolean isAddClasspath()
isAddClasspath.
public boolean isAddDefaultEntries()
isAddDefaultEntries.
addDefaultEntries
public boolean isAddBuildEnvironmentEntries()
isAddBuildEnvironmentEntries.
addBuildEnvironmentEntries
public boolean isAddDefaultImplementationEntries()
isAddDefaultImplementationEntries.
addDefaultImplementationEntries
public boolean isAddDefaultSpecificationEntries()
isAddDefaultSpecificationEntries.
addDefaultSpecificationEntries
public boolean isAddExtensions()
isAddExtensions.
addExtensions
public void setAddClasspath(boolean addClasspath)
Setter for the field addClasspath
.
addClasspath
- turn on addClasspath or off.public void setAddDefaultEntries(boolean addDefaultEntries)
Setter for the field addDefaultEntries
.
addDefaultEntries
- add default entries true/false.public void setAddBuildEnvironmentEntries(boolean addBuildEnvironmentEntries)
Setter for the field addBuildEnvironmentEntries
.
addBuildEnvironmentEntries
- add build environment information true/false.public void setAddDefaultImplementationEntries(boolean addDefaultImplementationEntries)
Setter for the field addDefaultImplementationEntries
.
addDefaultImplementationEntries
- true to add default implementations false otherwise.public void setAddDefaultSpecificationEntries(boolean addDefaultSpecificationEntries)
Setter for the field addDefaultSpecificationEntries
.
addDefaultSpecificationEntries
- add default specifications true/false.public void setAddExtensions(boolean addExtensions)
Setter for the field addExtensions
.
addExtensions
- true to add extensions false otherwise.public void setClasspathPrefix(String classpathPrefix)
Setter for the field classpathPrefix
.
classpathPrefix
- The prefix.public void setMainClass(String mainClass)
Setter for the field mainClass
.
mainClass
- The main class.public void setPackageName(String packageName)
Setter for the field packageName
.
packageName
- The package name.public String getClasspathPrefix()
Getter for the field classpathPrefix
.
public String getClasspathLayoutType()
setCustomClasspathLayout(String)
.public void setClasspathLayoutType(String classpathLayoutType)
ManifestConfiguration
class. setCustomClasspathLayout(String)
.classpathLayoutType
- The classpath layout type.public 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(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.Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.