Target Class

Summary

Class for handling NAnt targets.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core
Interfaces
  • ICloneable
Base Types
graph BT Type-->Base0["Element"] click Base0 "/api/NAnt.Core/Element" Base0-->Base1["Object"] Type-.->Interface0["ICloneable"] Type["Target"] class Type type-node

Syntax

[Serializable()]
public sealed class Target : Element, ICloneable

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
Target() Initializes a new instance of the NAnt.Core.Target class.

Properties

Name Value Summary
CustomXmlProcessing bool
Gets a value indicating whether the element is performing additional processing using the NAnt.Core.Element.XmlNode that was used to initialize the element.
Inherited from Element
Dependencies StringCollection
A collection of target names that must be executed before this target.
DependsListString string
Space separated list of targets that this target depends on.
Description string
The description of the target.
Executed bool
This indicates whether the target has already executed.
IfCondition string
If true then the target will be executed; otherwise, skipped. The default is true.
IfDefined bool
Gets a value indicating whether the target should be executed.
Location Location
Gets or sets the location in the build file where the element is defined.
Inherited from Element
Name string
The name of the target.
Name string
Gets the name of the XML element used to initialize this element.
Inherited from Element
NamespaceManager XmlNamespaceManager
Gets or sets the System.Xml.XmlNamespaceManager.
Inherited from Element
Parent Object
Gets or sets the parent of the element.
Inherited from Element
Project Project
Gets or sets the NAnt.Core.Element.Project to which this element belongs.
Inherited from Element
Properties PropertyDictionary
Gets the properties local to this NAnt.Core.Element and the NAnt.Core.Element.Project.
Inherited from Element
UnlessCondition string
Opposite of NAnt.Core.Target.IfDefined. If false then the target will be executed; otherwise, skipped. The default is false.
UnlessDefined bool
Gets a value indicating whether the target should NOT be executed.
XmlNode XmlNode
Gets or sets the XML node of the element.
Inherited from Element

Methods

Name Value Summary
Clone() Target
Creates a shallow copy of the NAnt.Core.Target.
CopyTo(Element) void
Copies all instance data of the NAnt.Core.Element to a given NAnt.Core.Element.
Inherited from Element
Execute() void
Executes dependent targets first, then the target.
GetAttributeConfigurationNode(FrameworkInfo, string) XmlNode
Locates the XML node for the specified attribute in the project configuration node.
Inherited from Element
GetAttributeConfigurationNode(XmlNode, FrameworkInfo, string) XmlNode
Inherited from Element
GetLocation() Location
Retrieves the location in the build file where the element is defined.
Inherited from Element
Initialize() void
Derived classes should override to this method to provide extra initialization and validation not covered by the base class.
Inherited from Element
Initialize(XmlNode) void
Performs default initialization.
Inherited from Element
InitializeBuildElement(Element, XmlNode, Element, Type) Element
Initializes the build element.
Inherited from Element
static
InitializeElement(XmlNode) void
Derived classes should override to this method to provide extra initialization and validation not covered by the base class.
Inherited from Element
InitializeXml(XmlNode, PropertyDictionary, FrameworkInfo) void
Initializes all build attributes and child elements.
Inherited from Element
Log(Level, string) void
Logs a message with the given priority.
Inherited from Element
Log(Level, string, Object[]) void
Logs a message with the given priority.
Inherited from Element