프로퍼티 | 타입 | 설명 | |
---|---|---|---|
ConfigurePlatformProperties | void | ||
CreateCircularException | |||
CtorHelper | void | ||
GetConfigurationNode | |||
GetFrameworks | NAnt.Core.FrameworkInfo[] | ||
InitializeProjectDocument | void | ||
LoadBuildFile | |||
Project | System | ||
Project | System | ||
TopologicalTargetSort | void | ||
UpdateTargetFrameworkProperties | void |
메소드 | 설명 | |
---|---|---|
AttachBuildListeners ( |
Attaches the specified build listeners to the Project. The currently attached IBuildListener instances will be detached before the new IBuildListener instances are attached. |
|
CreateDataTypeBase ( |
||
CreateDefaultLogger ( ) : void |
Creates the default IBuildLogger and attaches it to the Project.
|
|
CreateTask ( |
Creates a new
|
|
CreateTask ( |
Creates a new Task from the given XmlNode within a Target.
|
|
DetachBuildListeners ( ) : void |
Detaches the currently attached IBuildListener instances from the Project.
|
|
Execute ( ) : void |
Executes the default target. No top level error handling is done. Any BuildException will be passed onto the caller. |
|
Execute ( string targetName ) : void |
Executes a specific target, and its dependencies. Global tasks are not executed. |
|
Execute ( string targetName, bool forceDependencies ) : void |
Executes a specific target. Global tasks are not executed. |
|
ExpandProperties ( string input, |
Expands a string from known properties.
|
|
GetFullPath ( string path ) : string |
Combines the specified path with the BaseDirectory of the Project to form a full path to file or directory.
|
|
GetLocation ( |
Returns the Location of the given node in an XML file loaded by NAnt. The node must be from an XmlDocument that has been loaded by NAnt. NAnt also does not process any of the following node types:
As a result, no location information is available for these nodes. |
|
Indent ( ) : void |
Increases the IndentationLevel of the Project.
|
|
Log ( Level messageLevel, string message ) : void |
Writes a Project level message to the build log with the given Level.
|
|
Log ( |
Writes a Target level message to the build log with the given Level.
|
|
Log ( NAnt.Core.Task task, Level messageLevel, string message ) : void |
Writes a Task task level message to the build log with the given Level.
|
|
OnBuildFinished ( object sender, |
Dispatches a BuildFinished event to the build listeners for this Project.
|
|
OnBuildStarted ( object sender, |
Dispatches a BuildStarted event to the build listeners for this Project.
|
|
OnMessageLogged ( |
Dispatches a MessageLogged event to the build listeners for this Project.
|
|
OnTargetFinished ( object sender, |
Dispatches a TargetFinished event to the build listeners for this Project.
|
|
OnTargetStarted ( object sender, |
Dispatches a TargetStarted event to the build listeners for this Project.
|
|
OnTaskFinished ( object sender, |
Dispatches the TaskFinished event to the build listeners for this Project.
|
|
OnTaskStarted ( object sender, |
Dispatches a TaskStarted event to the build listeners for this Project.
|
|
Project ( |
Initializes a new Project class with the given document, message threshold and indentation level.
|
|
Project ( |
Initializes a new Project class with the given document, message threshold and indentation level, and using the specified XmlNode to load internal configuration settings. This constructor is useful for developers using NAnt as a class library. |
|
Project ( string uriOrFilePath, Level threshold, int indentLevel ) : System |
Initializes a new Project class with the given source, message threshold and indentation level. If the source is a uri of form 'file:///path' then use the path part. |
|
Project ( string uriOrFilePath, Level threshold, int indentLevel, |
Initializes a new Project class with the given source, message threshold and indentation level, and using the specified XmlNode to load internal configuration settings. If the source is a uri of form 'file:///path' then use the path part. |
|
Run ( ) : bool |
Executes the default target and wraps in error handling and time stamping.
|
|
TopologicalTargetSort ( string root, |
Topologically sorts a set of targets.
|
|
Unindent ( ) : void |
Decreases the IndentationLevel of the Project.
|
메소드 | 설명 | |
---|---|---|
ConfigurePlatformProperties ( ) : void |
Configures the platform properties for the current platform.
|
|
CreateCircularException ( string end, |
Builds an appropriate exception detailing a specified circular dependency.
|
|
CtorHelper ( |
Inits stuff: TypeFactory: Calls Initialize and AddProject Log.IndentSize set to 12 Project properties are initialized ("nant.* stuff set")
|
|
GetConfigurationNode ( ) : |
||
GetFrameworks ( FrameworkTypes types ) : NAnt.Core.FrameworkInfo[] |
Gets the list of supported frameworks filtered by the specified FrameworkTypes parameter.
|
|
InitializeProjectDocument ( |
This method is only meant to be used by the Project class and T:NAnt.Core.Tasks.IncludeTask.
|
|
LoadBuildFile ( string uriOrFilePath ) : |
Creates a new XmlDocument based on the project definition.
|
|
Project ( |
Initializes a Project with Threshold set to Level.None, and IndentationLevel set to 0. Optimized for framework initialization projects, by skipping automatic discovery of extension assemblies and framework configuration. |
|
Project ( string uriOrFilePath, |
Initializes a Project as subproject of the specified Project. Optimized for framework initialization projects, by skipping automatic discovery of extension assemblies and framework configuration. |
|
TopologicalTargetSort ( string root, |
Performs a single step in a recursive depth-first-search traversal of the target dependency tree. The current target is first set to the "visiting" state, and pushed onto the "visiting" stack. An exception is then thrown if any child of the current node is in the visiting state, as that implies a circular dependency. The exception contains details of the cycle, using elements of the "visiting" stack. If any child has not already been "visited", this method is called recursively on it. The current target is then added to the ordered list of targets. Note that this is performed after the children have been visited in order to get the correct order. The current target is set to the "visited" state. By the time this method returns, the ordered list contains the sequence of targets up to and including the current target.
|
|
UpdateTargetFrameworkProperties ( ) : void |
Updates dependent properties when the TargetFramework is set.
|
public AttachBuildListeners ( |
||
listeners | The |
|
리턴 | void |
public CreateDataTypeBase ( |
||
elementNode | ||
리턴 |
public CreateTask ( |
||
taskNode | The |
|
리턴 | NAnt.Core.Task |
public CreateTask ( |
||
taskNode | The |
|
target | The owner |
|
리턴 | NAnt.Core.Task |
public Execute ( string targetName ) : void | ||
targetName | string | The name of the target to execute. |
리턴 | void |
public Execute ( string targetName, bool forceDependencies ) : void | ||
targetName | string | The name of the target to execute. |
forceDependencies | bool | Whether dependencies should be forced to execute |
리턴 | void |
public ExpandProperties ( string input, |
||
input | string | The |
location | The location in the build file. Used to throw more accurate exceptions. | |
리턴 | string |
public GetFullPath ( string path ) : string | ||
path | string | The relative or absolute path. |
리턴 | string |
public GetLocation ( |
||
node | The |
|
리턴 |
public Log ( Level messageLevel, string message ) : void | ||
messageLevel | Level | The |
message | string | The message to log. |
리턴 | void |
public Log ( |
||
target | The |
|
messageLevel | Level | The level to log at. |
message | string | The message to log. |
리턴 | void |
public Log ( NAnt.Core.Task task, Level messageLevel, string message ) : void | ||
task | NAnt.Core.Task | The |
messageLevel | Level | The |
message | string | The message to log. |
리턴 | void |
public OnBuildFinished ( object sender, |
||
sender | object | The source of the event. |
e | A |
|
리턴 | void |
public OnBuildStarted ( object sender, |
||
sender | object | The source of the event. |
e | A |
|
리턴 | void |
public OnMessageLogged ( |
||
e | A |
|
리턴 | void |
public OnTargetFinished ( object sender, |
||
sender | object | The source of the event. |
e | A |
|
리턴 | void |
public OnTargetStarted ( object sender, |
||
sender | object | The source of the event. |
e | A |
|
리턴 | void |
public OnTaskFinished ( object sender, |
||
sender | object | The source of the event. |
e | A |
|
리턴 | void |
public OnTaskStarted ( object sender, |
||
sender | object | The source of the event. |
e | A |
|
리턴 | void |
public Project ( |
||
doc | Any valid build format will do. | |
threshold | Level | The message threshold. |
indentLevel | int | The project indentation level. |
리턴 | System |
public Project ( |
||
doc | Any valid build format will do. | |
threshold | Level | The message threshold. |
indentLevel | int | The project indentation level. |
configurationNode | The |
|
리턴 | System |
public Project ( string uriOrFilePath, Level threshold, int indentLevel ) : System | ||
uriOrFilePath | string |
/// |
threshold | Level | The message threshold. |
indentLevel | int | The project indentation level. |
리턴 | System |
public Project ( string uriOrFilePath, Level threshold, int indentLevel, |
||
uriOrFilePath | string |
/// |
threshold | Level | The message threshold. |
indentLevel | int | The project indentation level. |
configurationNode | The |
|
리턴 | System |
public TopologicalTargetSort ( string root, |
||
root | string | The name of the root target. The sort is created in such a way that the sequence of targets up to the root target is the minimum possible such sequence. Must not be |
targets | A collection of |
|
리턴 |