Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small cleanup

  • Loading branch information...
commit 1cb9518148c0efe5aa0070644de9d8ff07eaed95 1 parent 8f0df8b
Lucas Meijer authored
Showing with 3 additions and 14 deletions.
  1. +3 −14 TargetGenerateSettings.cs
View
17 TargetGenerateSettings.cs
@@ -5,11 +5,10 @@ namespace cake
{
public class TargetGenerateSettings
{
- public ITargetGeneratingAction Action;
+ public ITargetGeneratingAction Action { get; private set; }
+ public string ActionHash { get; private set; }
public HashSet<string> InputFiles { get; private set; }
public HashSet<string> OutputFiles { get; private set; }
-
- private string _actionHash;
public TargetGenerateSettings(ITargetGeneratingAction action, IEnumerable<string> inputFiles, string outputFile)
: this(action,inputFiles, new[] {outputFile})
@@ -20,7 +19,7 @@ public TargetGenerateSettings(ITargetGeneratingAction action, IEnumerable<string
{
OutputFiles = new HashSet<string>(outputFiles);
Action = action;
- _actionHash = action.GetActionHash();
+ ActionHash = Action.GetActionHash();
InputFiles = new HashSet<string>(inputFiles);
}
@@ -40,16 +39,6 @@ public override bool Equals(object obj)
return other.InputFiles.SetEquals(InputFiles);
}
- public string ActionHash
- {
- get
- {
- if (Action != null)
- return Action.GetActionHash();
- return _actionHash;
- }
- }
-
public override int GetHashCode()
{
return (InputFiles != null ? InputFiles.GetHashCode() : 0);
Please sign in to comment.
Something went wrong with that request. Please try again.