NAntStep
A build step running NAnt scripts
Example. Runs NAnt for specified path, target, target framework and passing an argument
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nant {
mode = nantFile {
path = "MyProject"
}
targets = "Test"
targetFramework = NAntStep.TargetFramework.NET_4_0
args = "-D:arg.abc=bca"
}
Content copied to clipboard }
}
Example. Runs NAnit for specified build file content, target and target framework
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nant {
mode = nantScript {
content = """
[ put your build file content here ]
""".trimIndent()
}
targets = "build"
targetFramework = NAntStep.TargetFramework.NET_4_0
}
Content copied to clipboard }
}
See also
Constructors
Types
Target Framework version
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Executes the NAnt script at the given path
Executes the NAnt script with the given content
Validates this object and reports found errors to the provided consumer
Properties
Build working directory for ant script, specify it if it is different from the checkout directory.