This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.LicenseHeaderUpdater.
Summary
Configuration for updating the license headers
in various projects.
- Assembly
- Cake
. License Header Updater .dll - Namespace
- Cake
. License Header Updater - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["CakeLicenseHeaderUpdaterSettings"]
class Type type-node
Syntax
public class CakeLicenseHeaderUpdaterSettings
Constructors
Name | Summary |
---|---|
Cake |
Properties
Name | Value | Summary |
---|---|---|
DryRun | bool | |
FileFilter | Func |
Override this to filter files to process.
The function passes in a
FilePath ,
and if we should add a header to the top of this file, have this function
return true, otherwise have it return false.
If this is set to null, it will process ALL files.
|
LicenseString | string |
The license string to add to the top of all
the files.
If this configuration is null or empty,
then all matches in
OldHeaderRegexPatterns will be purged,
but nothing will be added to the top of the file.
|
Old |
IList |
If there are any "old" licenses that should be removed,
add them to this list. All matches in each file will be removed.
If left empty, then it is possible for a file to contain an old license
and a new license header, with the newer license at the top.
Nulls or empty strings added to this list are purged before running.
|
Threads | int |
The number of threads to spawn to process files.
If this is set to 0 or less, then the number of threads will be equal to
System.Environment.ProcessorCount .
Defaulted to 1.
|
Verbosity | Verbosity |
How verbose should the print-outs to stdout be?
Defaulted to
Normal .
Quiet - Nothing.
Minimal - When it starts to process a file.
Normal - Everything lower and when it skips a file because FileFilter
returned false.
Verbose - Everything lower and when it finishes processing a file.
Diagnostic - Everything lower and what changes it makes to the files.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|