Logo Search packages:      
Sourcecode: nant version File versions  Download package

NAnt::DotNet::Tasks::IlasmTask Class Reference

Inheritance diagram for NAnt::DotNet::Tasks::IlasmTask:

NAnt::Core::Tasks::ExternalProgramBase NAnt::Core::Task NAnt::Core::Element

List of all members.


Detailed Description

Compiles ILASM programs.

Compiles helloworld.il to helloworld.exe.

            <![CDATA[
        <ilasm target="exe" output="helloworld.exe" debug="true">
            <sources>
                <include name="helloworld.il" />
            </sources>
        </ilasm>
            ]]>

Definition at line 50 of file IlasmTask.cs.


Public Member Functions

void Execute ()
 Executes the task unless it is skipped.
void Initialize (XmlNode elementNode)
 Performs default initialization.
void InitializeTaskConfiguration ()
 Initializes the configuration of the task using configuration settings retrieved from the NAnt configuration file.
bool IsLogEnabledFor (Level messageLevel)
 Determines whether build output is enabled for the given Level.
override void Log (Level messageLevel, string message, params object[] args)
 Logs a formatted message with the given priority.
override void Log (Level messageLevel, string message)
 Logs a message with the given priority.

Static Public Member Functions

static Element InitializeBuildElement (Element parent, XmlNode childNode, Element buildElement, Type elementType)

Public Attributes

const int UnknownExitCode = -1000
 Defines the exit code that will be returned by ExitCode if the process could not be started, or did not exit (in time).

Protected Member Functions

void CopyTo (Element clone)
 Copies all instance data of the Element to a given Element.
override void ExecuteTask ()
 Compiles the sources.
XmlNode GetAttributeConfigurationNode (FrameworkInfo framework, string attributeName)
 Locates the XML node for the specified attribute in the project configuration node.
override void InitializeElement (XmlNode elementNode)
 <note>Deprecated (to be deleted).</note>
virtual void InitializeTask (XmlNode taskNode)
 Initializes the task.
virtual void InitializeXml (XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework)
 Initializes all build attributes and child elements.
virtual void PrepareProcess (Process process)
 Updates the ProcessStartInfo of the specified Process.
virtual Process StartProcess ()
 Starts the process and handles errors.

Properties

int Alignment [get, set]
 Instructs the compiler to set the FileAlignment value in the PE header.
virtual ArgumentCollection Arguments [get]
 The command-line arguments for the external program.
int Base [get, set]
 Instructs the compiler to set the ImageBase value in the PE header.
virtual DirectoryInfo BaseDirectory [get, set]
 Gets the working directory for the application.
bool Clock [get, set]
 Specifies whether or not the compiler should measure and report the compilation times.
string CommandLine [get]
 Gets the command-line arguments, separated by spaces.
virtual bool CustomXmlProcessing [get]
 Gets a value indicating whether the element is performing additional processing using the XmlNode that was used to initialize the element.
bool Debug [get, set]
 Specifies whether or not the compiler should generate debug information.
bool Error [get, set]
 Specifies whether or not the compiler should attempt to create a PE file even if compilation errors have been reported.
virtual TextWriter ErrorWriter [get, set]
 Gets or sets the TextWriter to which error output of the external program will be written.
virtual string ExeName [get, set]
 The name of the executable that should be used to launch the external program.
int ExitCode [get]
 Gets the value that the process specified when it terminated.
bool FailOnError [get, set]
 Determines if task failure stops the build, or is just reported. The default is .
int Flags [get, set]
 Instructs the compiler to set the Flags value in the CLR header.
bool ForceRebuild [get, set]
 Instructs NAnt to recompile the output file regardless of the file timestamps.
bool IfDefined [get, set]
 If then the task will be executed; otherwise, skipped. The default is .
FileInfo KeyFile [get, set]
 Instructs the compiler to generate a strong signature of the PE file.
string KeySource [get, set]
 Instructs the compiler to generate a strong signature of the PE file.
bool Listing [get, set]
 Specifies whether or not the compiler should type a formatted listing of the compilation result.
virtual Location Location [get, set]
 Gets or sets the location in the build file where the element is defined.
string LogPrefix [get]
 The prefix used when sending messages to the log.
override string Name [get]
 The name of the task.
XmlNamespaceManager NamespaceManager [get, set]
 Gets or sets the XmlNamespaceManager.
virtual FileInfo Output [get, set]
 Gets the file to which the standard output should be redirected.
virtual bool OutputAppend [get, set]
 Gets a value indicating whether output will be appended to the Output.
FileInfo OutputFile [get, set]
 Specifies the name of the output file created by the compiler.
virtual TextWriter OutputWriter [get, set]
 Gets or sets the TextWriter to which standard output messages of the external program will be written.
object Parent [get, set]
 Gets or sets the parent of the element.
override string ProgramArguments [get]
 Gets the command-line arguments for the external program.
virtual string ProgramFileName [get]
 Gets the filename of the external program to start.
virtual Project Project [get, set]
 Gets or sets the Project to which this element belongs.
virtual PropertyDictionary Properties [get]
 Gets the properties local to this Element and the Project.
FileInfo ResourceFile [get, set]
 Instructs the compiler to link the specified unmanaged resource file into the resulting PE file.
FileSet Sources [get, set]
 Specifies the set of source files to compile.
int Subsystem [get, set]
 Instructs the compiler to set the Subsystem value in the PE header.
string Target [get, set]
 Specifies which output type should be generated.
Level Threshold [get, set]
 Gets or sets the log threshold for this Task. By default the threshold of a task matches the threshold of the project.
int TimeOut [get, set]
 The maximum amount of time the application is allowed to execute, expressed in milliseconds. Defaults to no time-out.
bool UnlessDefined [get, set]
 Opposite of IfDefined. If then the task will be executed; otherwise, skipped. The default is .
virtual bool UseRuntimeEngine [get, set]
 Specifies whether the external program should be executed using a runtime engine, if configured. The default is .
bool Verbose [get, set]
 Determines whether the task should report detailed build log messages. The default is .
virtual XmlNode XmlNode [get, set]
 Gets or sets the XML node of the element.

Private Member Functions

bool NeedsCompiling ()
 Determines whether or not compilation is needed.
void WriteOption (StringWriter writer, string name, string arg)
 Writes an option and its value using the default output format.
void WriteOption (StringWriter writer, string name)
 Writes an option using the default output format.
void WriteOptions ()
 Writes the compiler options.

Private Attributes

int _alignment
int _base
bool _clock
bool _debug
bool _error
int _flags
bool _forceRebuild
FileInfo _keyFile
string _keySource
bool _listing
string _options
FileInfo _outputFile
FileInfo _resourceFile
FileSet _sources
int _subsystem
string _target

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index