|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.internal.core.BuildObject
org.eclipse.cdt.managedbuilder.internal.core.Target
public class Target
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.ITarget |
---|
ARCH_LIST, ARTIFACT_NAME, BINARY_PARSER, CLEAN_COMMAND, DEFAULT_EXTENSION, ERROR_PARSERS, EXTENSION, IS_ABSTRACT, IS_TEST, MAKE_ARGS, MAKE_COMMAND, OS_LIST, PARENT, SCANNER_INFO_COLLECTOR_ID, TARGET_ELEMENT_NAME |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
ID, NAME |
Constructor Summary | |
---|---|
Target(IManagedConfigElement element,
java.lang.String managedBuildRevision)
This constructor is called to create a target defined by an extension point in a plugin manifest file. |
|
Target(org.eclipse.core.resources.IResource owner,
ITarget parent)
Create a copy of the target specified in the argument, that is owned by the owned by the specified resource. |
|
Target(ManagedBuildInfo buildInfo,
org.w3c.dom.Element element)
Create target from project file. |
Method Summary | |
---|---|
void |
addConfiguration(IConfigurationV2 configuration)
|
void |
addTargetToolReferences(java.util.Vector toolRefs)
|
void |
addTool(ITool tool)
Adds a tool specification to the receiver. |
void |
addToolReference(ToolReference toolRef)
Adds a tool reference to the receiver. |
void |
convertToProjectType(java.lang.String managedBuildRevision)
Converts a CDT V2.0 target into a ProjectType + Configuration + Toolchain + Builder + TargetPlatform. |
IConfigurationV2 |
createConfiguration(IConfigurationV2 parent,
java.lang.String id)
Creates a configuration for the target populated with the tools and options settings from the parent configuration. |
IConfigurationV2 |
createConfiguration(java.lang.String id)
Creates a new configuration for the target. |
java.lang.String |
getArtifactExtension()
Answers the extension that should be applied to build artifacts created by this target. |
java.lang.String |
getArtifactName()
Get the name of the final build artifact. |
java.lang.String |
getBinaryParserId()
Answers the unique ID of the binary parser associated with the target. |
java.lang.String |
getCleanCommand()
Answers the OS-specific command to remove files created by the build |
IConfigurationV2 |
getConfiguration(java.lang.String id)
Returns the configuration with the given id, or null if not found. |
IConfigurationV2[] |
getConfigurations()
Returns all of the configurations defined by this target. |
ProjectType |
getCreatedProjectType()
Returns the ProjectType that this Target has been converted to,
or null if it has not been converted. |
java.lang.String |
getDefaultExtension()
Get the default extension that should be applied to build artifacts created by this target. |
java.lang.String |
getErrorParserIds()
Answers the semicolon separated list of unique IDs of the error parsers associated with the target. |
java.lang.String[] |
getErrorParserList()
Answers the ordered list of unique IDs of the error parsers associated with the target. |
java.lang.String |
getMakeArguments()
Answers the command line arguments to pass to the make utility used by the receiver to build a project. |
java.lang.String |
getMakeCommand()
Answers the name of the make utility for the target. |
java.lang.String |
getName()
|
org.eclipse.core.resources.IResource |
getOwner()
Gets the resource that this target is applied to. |
ITarget |
getParent()
Answers the ITarget that is the parent of the receiver. |
java.lang.String[] |
getTargetArchList()
Answers an array of architectures the target can be created on. |
java.lang.String[] |
getTargetOSList()
Answers an array of operating systems the target can be created on. |
ITool |
getTool(java.lang.String id)
Answers the tool in the receiver with the ID specified in the argument, or null |
ITool[] |
getTools()
Returns the list of platform specific tools associated with this platform. |
org.eclipse.core.runtime.PluginVersionIdentifier |
getVersion()
|
boolean |
hasOverridenMakeCommand()
Answers true if the receiver has a make command that differs from its parent specification. |
boolean |
isAbstract()
Returns whether this target is abstract. |
boolean |
isDirty()
Answers true the receiver has changes that need to be saved
in the project file, else false . |
boolean |
isTestTarget()
Answers true if the receiver is a target that is defined
for testing purposes only, else false . |
boolean |
needsRebuild()
Answers whether the receiver has been changed and requires the project to be rebuilt. |
void |
removeConfiguration(java.lang.String id)
Removes the configuration with the ID specified in the argument. |
void |
resetMakeCommand()
|
void |
resolveReferences()
|
void |
serialize(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
Persist receiver to project file. |
void |
setArtifactExtension(java.lang.String extension)
Set (override) the extension that should be appended to the build artifact for the receiver. |
void |
setArtifactName(java.lang.String name)
Set the name of the artifact that will be produced when the receiver is built. |
void |
setDirty(boolean isDirty)
|
void |
setErrorParserIds(java.lang.String ids)
Sets the semicolon separated list of error parser ids |
void |
setMakeArguments(java.lang.String makeArgs)
Sets the arguments to be passed to the make utility used by the receiver to produce a build goal. |
void |
setMakeCommand(java.lang.String command)
Sets the make command for the receiver to the value in the argument. |
void |
setRebuildState(boolean rebuild)
Set the rebuild state of the receiver. |
void |
setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
|
void |
updateOwner(org.eclipse.core.resources.IResource resource)
Sets the resource that owns the receiver. |
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject |
---|
getBaseId, getId, getManagedBuildRevision, getVersionFromId, setId, setManagedBuildRevision, setName, toString, updateManagedBuildRevision |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
getBaseId, getId, getManagedBuildRevision |
Constructor Detail |
---|
public Target(IManagedConfigElement element, java.lang.String managedBuildRevision)
element
- managedBuildRevision
- the fileVersion of Managed Build Systempublic Target(org.eclipse.core.resources.IResource owner, ITarget parent)
owner
- parent
- public Target(ManagedBuildInfo buildInfo, org.w3c.dom.Element element)
buildInfo
- element
- Method Detail |
---|
public void addConfiguration(IConfigurationV2 configuration)
configuration
- public void addTool(ITool tool)
tool
- public void addToolReference(ToolReference toolRef)
toolRef
- public IConfigurationV2 createConfiguration(IConfigurationV2 parent, java.lang.String id)
ITarget
createConfiguration
in interface ITarget
parent
- The IConfigurationV2
to use as a settings templateid
- The unique id the new configuration will have
public IConfigurationV2 createConfiguration(java.lang.String id)
ITarget
createConfiguration
in interface ITarget
id
- id for this configuration.
public java.lang.String getArtifactExtension()
ITarget
getArtifactExtension
in interface ITarget
public java.lang.String getArtifactName()
ITarget
getArtifactName
in interface ITarget
public java.lang.String getBinaryParserId()
ITarget
getBinaryParserId
in interface ITarget
public java.lang.String getCleanCommand()
ITarget
getCleanCommand
in interface ITarget
public IConfigurationV2 getConfiguration(java.lang.String id)
ITarget
null
if not found.
getConfiguration
in interface ITarget
public IConfigurationV2[] getConfigurations()
ITarget
getConfigurations
in interface ITarget
public java.lang.String getDefaultExtension()
ITarget
getDefaultExtension
in interface ITarget
public java.lang.String getErrorParserIds()
ITarget
getErrorParserIds
in interface ITarget
public java.lang.String[] getErrorParserList()
ITarget
getErrorParserList
in interface ITarget
public java.lang.String getMakeArguments()
ITarget
getMakeArguments
in interface ITarget
public java.lang.String getMakeCommand()
ITarget
getMakeCommand
in interface ITarget
public java.lang.String getName()
getName
in interface IBuildObject
getName
in class BuildObject
public org.eclipse.core.resources.IResource getOwner()
ITarget
getOwner
in interface ITarget
public ITarget getParent()
ITarget
ITarget
that is the parent of the receiver.
getParent
in interface ITarget
public java.lang.String[] getTargetArchList()
ITarget
getTargetArchList
in interface ITarget
public java.lang.String[] getTargetOSList()
ITarget
getTargetOSList
in interface ITarget
public ITool getTool(java.lang.String id)
ITarget
null
getTool
in interface ITarget
public ITool[] getTools()
ITarget
getTools
in interface ITarget
public boolean hasOverridenMakeCommand()
ITarget
hasOverridenMakeCommand
in interface ITarget
public boolean isAbstract()
ITarget
isAbstract
in interface ITarget
public boolean isDirty()
ITarget
true
the receiver has changes that need to be saved
in the project file, else false
.
isDirty
in interface ITarget
public boolean isTestTarget()
ITarget
true
if the receiver is a target that is defined
for testing purposes only, else false
. A test target will
not be shown in the UI but can still be manipulated programmatically.
isTestTarget
in interface ITarget
public boolean needsRebuild()
ITarget
needsRebuild
in interface ITarget
true
if the receiver contains a change
that needs the project to be rebuiltpublic void removeConfiguration(java.lang.String id)
ITarget
removeConfiguration
in interface ITarget
public void resetMakeCommand()
public void resolveReferences()
public void serialize(org.w3c.dom.Document doc, org.w3c.dom.Element element)
doc
- element
- public void setArtifactExtension(java.lang.String extension)
ITarget
setArtifactExtension
in interface ITarget
public void setArtifactName(java.lang.String name)
ITarget
setArtifactName
in interface ITarget
public void setDirty(boolean isDirty)
setDirty
in interface ITarget
public void setErrorParserIds(java.lang.String ids)
ITarget
setErrorParserIds
in interface ITarget
public void setMakeArguments(java.lang.String makeArgs)
ITarget
setMakeArguments
in interface ITarget
public void setMakeCommand(java.lang.String command)
ITarget
setMakeCommand
in interface ITarget
public void setRebuildState(boolean rebuild)
ITarget
setRebuildState
in interface ITarget
IManagedBuildInfo.setRebuildState(boolean)
public void updateOwner(org.eclipse.core.resources.IResource resource)
ITarget
updateOwner
in interface ITarget
public void convertToProjectType(java.lang.String managedBuildRevision)
ITarget
convertToProjectType
in interface ITarget
public void addTargetToolReferences(java.util.Vector toolRefs)
public ProjectType getCreatedProjectType()
ITarget
ProjectType
that this Target has been converted to,
or null
if it has not been converted.
getCreatedProjectType
in interface ITarget
public org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
getVersion
in interface IBuildObject
getVersion
in class BuildObject
public void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
setVersion
in interface IBuildObject
setVersion
in class BuildObject
version
- The version to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |