LoadPropertiesTask Class

Summary

Loads a file's contents as NAnt properties.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks
Base Types
  • Task
graph BT Type-->Base0["Task"] Type["LoadPropertiesTask"] class Type type-node

Syntax

[TaskName("loadproperties")]
public class LoadPropertiesTask : Task

Examples

<loadproperties file="deployment.properties" />

Remarks

Each line in a .properties file stores a single property, with the name and value separated by an equals sign.

Empty lines and lines that start with a '#' character are skipped.

Attributes

Type Description
TaskName

Properties

Name Value Summary
Encoding Encoding
The encoding to use when loading the file. The default is the system's current ANSI code page.
File FileInfo
The file to load properties from.
Filters FilterChain
Chain of filters used to alter the file's content as it is copied.

Methods

Name Value Summary
ExecuteTask() void