|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.archiver.ManifestConfiguration
public class ManifestConfiguration
Capture common manifest configuration.
Field Summary | |
---|---|
static String |
CLASSPATH_LAYOUT_TYPE_CUSTOM
|
static String |
CLASSPATH_LAYOUT_TYPE_REPOSITORY
|
static String |
CLASSPATH_LAYOUT_TYPE_SIMPLE
|
Constructor Summary | |
---|---|
ManifestConfiguration()
|
Method Summary | |
---|---|
String |
getClasspathLayoutType()
Return the type of layout to use when formatting classpath entries. |
String |
getClasspathPrefix()
|
String |
getCustomClasspathLayout()
Retrieve the layout expression for use when the layout type set in setClasspathLayoutType(String)
has the value 'custom'. |
String |
getMainClass()
|
String |
getPackageName()
|
boolean |
isAddClasspath()
|
boolean |
isAddDefaultImplementationEntries()
|
boolean |
isAddDefaultSpecificationEntries()
|
boolean |
isAddExtensions()
|
boolean |
isClasspathMavenRepositoryLayout()
Deprecated. Use getClasspathLayoutType() , and compare to
CLASSPATH_LAYOUT_TYPE_SIMPLE or CLASSPATH_LAYOUT_TYPE_REPOSITORY, also declared in ManifestConfiguration . |
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(String classpathLayoutType)
Set the type of layout to use when formatting classpath entries. |
void |
setClasspathMavenRepositoryLayout(boolean classpathMavenRepositoryLayout)
Deprecated. Use setClasspathLayoutType(String) , and use
CLASSPATH_LAYOUT_TYPE_SIMPLE, CLASSPATH_LAYOUT_TYPE_CUSTOM, or CLASSPATH_LAYOUT_TYPE_REPOSITORY,
also declared in ManifestConfiguration . |
void |
setClasspathPrefix(String 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)
|
void |
setPackageName(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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CLASSPATH_LAYOUT_TYPE_SIMPLE
public static final String CLASSPATH_LAYOUT_TYPE_REPOSITORY
public static final String CLASSPATH_LAYOUT_TYPE_CUSTOM
Constructor Detail |
---|
public ManifestConfiguration()
Method Detail |
---|
public String getMainClass()
public String getPackageName()
public boolean isAddClasspath()
public boolean isAddDefaultImplementationEntries()
public boolean isAddDefaultSpecificationEntries()
public boolean isAddExtensions()
public boolean isClasspathMavenRepositoryLayout()
getClasspathLayoutType()
, and compare to
CLASSPATH_LAYOUT_TYPE_SIMPLE or CLASSPATH_LAYOUT_TYPE_REPOSITORY, also declared in ManifestConfiguration
.
public void setAddClasspath(boolean addClasspath)
public void setAddDefaultImplementationEntries(boolean addDefaultImplementationEntries)
public void setAddDefaultSpecificationEntries(boolean addDefaultSpecificationEntries)
public void setAddExtensions(boolean addExtensions)
public void setClasspathMavenRepositoryLayout(boolean classpathMavenRepositoryLayout)
setClasspathLayoutType(String)
, and use
CLASSPATH_LAYOUT_TYPE_SIMPLE, CLASSPATH_LAYOUT_TYPE_CUSTOM, or CLASSPATH_LAYOUT_TYPE_REPOSITORY,
also declared in ManifestConfiguration
.
public void setClasspathPrefix(String classpathPrefix)
public void setMainClass(String mainClass)
public void setPackageName(String packageName)
public String getClasspathPrefix()
public String getClasspathLayoutType()
setCustomClasspathLayout(String)
.
public void setClasspathLayoutType(String classpathLayoutType)
ManifestConfiguration
class.
setCustomClasspathLayout(String)
.
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.
public boolean isUseUniqueVersions()
public void setUseUniqueVersions(boolean useUniqueVersions)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |