public class ArchiveProfile extends Profile implements Copyable, JarPackaging
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_DEPLOY_TO_JAR_FILE |
static java.lang.String |
ACTION_PREVIEW |
static java.lang.String |
ACTION_SETTINGS_DIALOG |
_dataContainer, PROFILE_CLASS_NAME, PROFILE_NAME
_hash
Constructor and Description |
---|
ArchiveProfile() |
ArchiveProfile(HashStructure hash) |
Modifier and Type | Method and Description |
---|---|
void |
addFileGroup(FileGroup fileGroup)
Adds the specified FileGroup to this archive profile.
|
LibraryFileGroup |
findLibraryFileGroup(java.lang.String internalName)
Returns the first LibraryFileGroup with the specified internal name.
|
protected java.util.List<LibraryFileGroup> |
findLibraryFileGroups() |
PackagingFileGroup |
findPackagingFileGroup(java.lang.String internalName)
Returns the first PackagingFileGroup with the specified internal name.
|
ProjectFileGroup |
findProjectFileGroup(java.lang.String internalName)
Returns the first ProjectFileGroup with the specified internal name.
|
ArchiveOptions |
getArchiveOptions()
Returns a structure describing the JAR options that should be
applied when building the output JAR.
|
java.lang.String |
getDefaultLibraryFileGroupName()
Deprecated.
|
java.lang.String |
getDefaultLibraryFileGroupTargetWithinJar()
Deprecated.
|
FileGroups |
getFileGroups()
Returns the FileGroups that represents the packaging instructions
the user has specified in the deployment profile.
|
java.net.URL |
getJarURL()
Returns the
URL that will be added to the class path
of a project that depends on this profile. |
LibraryDependencies |
getLibraryDependencies()
Returns the
LibraryDependencies of this profile. |
LibraryDependencies |
getOrCreateLibraryDependencies()
Return
LibraryDependencies of the profile, create one if necessary. |
SelectedProjectFiles |
getSelectedProjectFiles()
Deprecated.
Use FileGroups instead; this method returns a
disconnected SelectedProjectFiles object (i.e. changing the
object has no effect on profile behavior).
|
protected void |
initArchiveProfile(java.lang.Class<? extends DataContainer> profileContainerClass) |
boolean |
isClasspathJar()
Returns true if the deployed output of this profile can be used
as a JAR file on a classpath.
|
static ArchiveProfile |
newDefaultArchiveProfile() |
static ArchiveProfile |
newDefaultArchiveProfile(java.lang.Class<? extends ArchiveProfile> prototypeClass)
Returns an instance of a class that extends ArchiveProfile because
it uses the prototype class passed in to do the construction work.
|
static ArchiveProfile |
newDefaultArchiveProfile(java.lang.Class<? extends DataContainer> profileContainerClass,
java.lang.Class<? extends ArchiveProfile> prototypeClass) |
void |
selectLibraryForDeployment(java.lang.Object id)
Selects the specified library for deployment by searching for
a LibraryFileGroup with the default internal id and adding the
specified library to its list.
|
void |
setArchiveOptions(ArchiveOptions archiveOptions) |
void |
setFileGroups(FileGroups fileGroups) |
void |
setJarURL(java.net.URL jarURL) |
void |
setLibraryDependencies(LibraryDependencies libraryDependencies) |
addDependency, addDependency, addDependency, copyTo, copyToImpl, equals, equalsImpl, getDataContainer, getDependencies, getHashStructure, getName, getParentProfileName, getProfileClass, getShortLabel, isContainedProfile, migrate, removeDependency, removeDependency, setContainedProfile, setDataContainer, setName, setProfileClass
attach, detach, getAttributes, getChildren, getData, getIcon, getLongLabel, getToolTipText, isDirty, linkContainingDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyables, markDirty, mayHaveChildren, notifyObservers, setOwner, toString, unlinkContainingDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyables
addStructureChangeListener, containsKey, copyToImpl, equalsImpl, findOrCreate, forcedCopyTo, removeStructureChangeListener, useObjectEquals
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDependency, getDependencies, removeDependency
public static final java.lang.String ACTION_DEPLOY_TO_JAR_FILE
public static final java.lang.String ACTION_PREVIEW
public static final java.lang.String ACTION_SETTINGS_DIALOG
public ArchiveProfile()
public ArchiveProfile(HashStructure hash)
public static ArchiveProfile newDefaultArchiveProfile()
public static ArchiveProfile newDefaultArchiveProfile(java.lang.Class<? extends ArchiveProfile> prototypeClass)
prototypeClass
- The class to get the instance of, which can null
to get an instance of ArchiveProfile itself.public static ArchiveProfile newDefaultArchiveProfile(java.lang.Class<? extends DataContainer> profileContainerClass, java.lang.Class<? extends ArchiveProfile> prototypeClass)
protected void initArchiveProfile(java.lang.Class<? extends DataContainer> profileContainerClass)
public java.net.URL getJarURL()
JarPackaging
URL
that will be added to the class path
of a project that depends on this profile.getJarURL
in interface JarPackaging
public void setJarURL(java.net.URL jarURL)
public ArchiveOptions getArchiveOptions()
JarPackaging
getArchiveOptions
in interface JarPackaging
public void setArchiveOptions(ArchiveOptions archiveOptions)
public FileGroups getFileGroups()
JarPackaging
getFileGroups
in interface JarPackaging
public void setFileGroups(FileGroups fileGroups)
public LibraryDependencies getLibraryDependencies()
LibraryDependencies
of this profile.public LibraryDependencies getOrCreateLibraryDependencies()
LibraryDependencies
of the profile, create one if necessary. This dirties the profile.@Deprecated public java.lang.String getDefaultLibraryFileGroupName()
@Deprecated public java.lang.String getDefaultLibraryFileGroupTargetWithinJar()
public void setLibraryDependencies(LibraryDependencies libraryDependencies)
public boolean isClasspathJar()
public void addFileGroup(FileGroup fileGroup)
public PackagingFileGroup findPackagingFileGroup(java.lang.String internalName)
public ProjectFileGroup findProjectFileGroup(java.lang.String internalName)
public LibraryFileGroup findLibraryFileGroup(java.lang.String internalName)
public void selectLibraryForDeployment(java.lang.Object id)
protected java.util.List<LibraryFileGroup> findLibraryFileGroups()
public final SelectedProjectFiles getSelectedProjectFiles() throws TransientMarker
TransientMarker