|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITarget
This class represents targets for the managed build process. A target is some type of resource built using a given collection of tools. Note: This class was deprecated in 2.1
Field Summary | |
---|---|
static java.lang.String |
ARCH_LIST
|
static java.lang.String |
ARTIFACT_NAME
|
static java.lang.String |
BINARY_PARSER
|
static java.lang.String |
CLEAN_COMMAND
|
static java.lang.String |
DEFAULT_EXTENSION
|
static java.lang.String |
ERROR_PARSERS
|
static java.lang.String |
EXTENSION
|
static java.lang.String |
IS_ABSTRACT
|
static java.lang.String |
IS_TEST
|
static java.lang.String |
MAKE_ARGS
|
static java.lang.String |
MAKE_COMMAND
|
static java.lang.String |
OS_LIST
|
static java.lang.String |
PARENT
|
static java.lang.String |
SCANNER_INFO_COLLECTOR_ID
|
static java.lang.String |
TARGET_ELEMENT_NAME
|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
ID, NAME |
Method Summary | |
---|---|
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()
Deprecated. |
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. |
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. |
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 |
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 |
updateOwner(org.eclipse.core.resources.IResource resource)
Sets the resource that owns the receiver. |
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
getBaseId, getId, getManagedBuildRevision, getName, getVersion, setVersion |
Field Detail |
---|
static final java.lang.String TARGET_ELEMENT_NAME
static final java.lang.String ARTIFACT_NAME
static final java.lang.String BINARY_PARSER
static final java.lang.String ERROR_PARSERS
static final java.lang.String CLEAN_COMMAND
static final java.lang.String DEFAULT_EXTENSION
static final java.lang.String EXTENSION
static final java.lang.String IS_ABSTRACT
static final java.lang.String IS_TEST
static final java.lang.String MAKE_COMMAND
static final java.lang.String MAKE_ARGS
static final java.lang.String OS_LIST
static final java.lang.String ARCH_LIST
static final java.lang.String PARENT
static final java.lang.String SCANNER_INFO_COLLECTOR_ID
Method Detail |
---|
IConfigurationV2 createConfiguration(IConfigurationV2 parent, java.lang.String id)
parent
- The IConfigurationV2
to use as a settings templateid
- The unique id the new configuration will have
IConfigurationV2 createConfiguration(java.lang.String id)
id
- id for this configuration.
java.lang.String getArtifactExtension()
java.lang.String getArtifactName()
void setDirty(boolean isDirty)
isDirty
- java.lang.String getBinaryParserId()
java.lang.String getErrorParserIds()
java.lang.String[] getErrorParserList()
java.lang.String getCleanCommand()
IConfigurationV2[] getConfigurations()
java.lang.String getDefaultExtension()
java.lang.String getMakeArguments()
java.lang.String getMakeCommand()
IConfigurationV2 getConfiguration(java.lang.String id)
null
if not found.
id
-
org.eclipse.core.resources.IResource getOwner()
ITarget getParent()
ITarget
that is the parent of the receiver.
java.lang.String[] getTargetOSList()
java.lang.String[] getTargetArchList()
ITool[] getTools()
ITool getTool(java.lang.String id)
null
id
-
boolean hasOverridenMakeCommand()
boolean isAbstract()
boolean isDirty()
true
the receiver has changes that need to be saved
in the project file, else false
.
boolean isTestTarget()
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.
boolean needsRebuild()
true
if the receiver contains a change
that needs the project to be rebuiltvoid removeConfiguration(java.lang.String id)
id
- void setArtifactExtension(java.lang.String extension)
extension
- void setArtifactName(java.lang.String name)
name
- void setMakeArguments(java.lang.String makeArgs)
makeArgs
- void setMakeCommand(java.lang.String command)
command
- void setErrorParserIds(java.lang.String ids)
ids
- void setRebuildState(boolean rebuild)
true
- will force a rebuild the next time the project buildsIManagedBuildInfo.setRebuildState(boolean)
void updateOwner(org.eclipse.core.resources.IResource resource)
resource
- void convertToProjectType(java.lang.String managedBuildRevision)
managedBuildRevision
- ProjectType getCreatedProjectType()
ProjectType
that this Target has been converted to,
or null
if it has not been converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |