aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-26 15:12:34 -0800
committerRob Mensching <rob@firegiant.com>2017-12-26 15:12:34 -0800
commited5fd9d8258a5c752cd37fe7702f3a0dc37052f7 (patch)
tree56e50298b456f1ca1cf9af71b10c8a1d4bf157a3
parent027d1ac927aa6b0ee0c934b1f6b540d2a1667df2 (diff)
downloadwix-ed5fd9d8258a5c752cd37fe7702f3a0dc37052f7.tar.gz
wix-ed5fd9d8258a5c752cd37fe7702f3a0dc37052f7.tar.bz2
wix-ed5fd9d8258a5c752cd37fe7702f3a0dc37052f7.zip
Move copy/move file operations to ILayoutExtension plus other cleanup
-rw-r--r--src/WixToolset.Extensibility/BaseLayoutExtension.cs10
-rw-r--r--src/WixToolset.Extensibility/IFileSystemExtension.cs4
-rw-r--r--src/WixToolset.Extensibility/ILayoutContext.cs2
-rw-r--r--src/WixToolset.Extensibility/ILayoutExtension.cs4
-rw-r--r--src/WixToolset.Extensibility/IPreprocessContext.cs4
-rw-r--r--src/WixToolset.Extensibility/ServiceProviderExtensions.cs (renamed from src/WixToolset.Extensibility/Services/ServiceProviderExtensions.cs)2
6 files changed, 17 insertions, 9 deletions
diff --git a/src/WixToolset.Extensibility/BaseLayoutExtension.cs b/src/WixToolset.Extensibility/BaseLayoutExtension.cs
index 6dfe7f2c..624d01fc 100644
--- a/src/WixToolset.Extensibility/BaseLayoutExtension.cs
+++ b/src/WixToolset.Extensibility/BaseLayoutExtension.cs
@@ -20,6 +20,16 @@ namespace WixToolset.Extensibility
20 this.Context = context; 20 this.Context = context;
21 } 21 }
22 22
23 public bool CopyFile(string source, string destination)
24 {
25 return false;
26 }
27
28 public bool MoveFile(string source, string destination)
29 {
30 return false;
31 }
32
23 /// <summary> 33 /// <summary>
24 /// Called at the end of ayout. 34 /// Called at the end of ayout.
25 /// </summary> 35 /// </summary>
diff --git a/src/WixToolset.Extensibility/IFileSystemExtension.cs b/src/WixToolset.Extensibility/IFileSystemExtension.cs
index 37b8e24a..96c8a748 100644
--- a/src/WixToolset.Extensibility/IFileSystemExtension.cs
+++ b/src/WixToolset.Extensibility/IFileSystemExtension.cs
@@ -10,9 +10,5 @@ namespace WixToolset.Extensibility
10 void Initialize(IFileSystemContext context); 10 void Initialize(IFileSystemContext context);
11 11
12 bool? CompareFiles(string targetFile, string updatedFile); 12 bool? CompareFiles(string targetFile, string updatedFile);
13
14 bool CopyFile(string source, string destination, bool overwrite);
15
16 bool MoveFile(string source, string destination, bool overwrite);
17 } 13 }
18} 14}
diff --git a/src/WixToolset.Extensibility/ILayoutContext.cs b/src/WixToolset.Extensibility/ILayoutContext.cs
index 5b4f014d..9ec559f9 100644
--- a/src/WixToolset.Extensibility/ILayoutContext.cs
+++ b/src/WixToolset.Extensibility/ILayoutContext.cs
@@ -15,8 +15,6 @@ namespace WixToolset.Extensibility
15 15
16 IEnumerable<ILayoutExtension> Extensions { get; set; } 16 IEnumerable<ILayoutExtension> Extensions { get; set; }
17 17
18 IEnumerable<IFileSystemExtension> FileSystemExtensions { get; set; }
19
20 IEnumerable<string> ContentFilePaths { get; set; } 18 IEnumerable<string> ContentFilePaths { get; set; }
21 19
22 IEnumerable<FileTransfer> FileTransfers { get; set; } 20 IEnumerable<FileTransfer> FileTransfers { get; set; }
diff --git a/src/WixToolset.Extensibility/ILayoutExtension.cs b/src/WixToolset.Extensibility/ILayoutExtension.cs
index 525c5053..1cf4871f 100644
--- a/src/WixToolset.Extensibility/ILayoutExtension.cs
+++ b/src/WixToolset.Extensibility/ILayoutExtension.cs
@@ -12,6 +12,10 @@ namespace WixToolset.Extensibility
12 /// </summary> 12 /// </summary>
13 void PreLayout(ILayoutContext context); 13 void PreLayout(ILayoutContext context);
14 14
15 bool CopyFile(string source, string destination);
16
17 bool MoveFile(string source, string destination);
18
15 /// <summary> 19 /// <summary>
16 /// Called after all layout occurs. 20 /// Called after all layout occurs.
17 /// </summary> 21 /// </summary>
diff --git a/src/WixToolset.Extensibility/IPreprocessContext.cs b/src/WixToolset.Extensibility/IPreprocessContext.cs
index 2e288d59..fcf698c1 100644
--- a/src/WixToolset.Extensibility/IPreprocessContext.cs
+++ b/src/WixToolset.Extensibility/IPreprocessContext.cs
@@ -15,14 +15,14 @@ namespace WixToolset.Extensibility
15 15
16 IEnumerable<IPreprocessorExtension> Extensions { get; set; } 16 IEnumerable<IPreprocessorExtension> Extensions { get; set; }
17 17
18 IList<string> IncludeSearchPaths { get; set; }
19
18 /// <summary> 20 /// <summary>
19 /// Gets the platform which the compiler will use when defaulting 64-bit attributes and elements. 21 /// Gets the platform which the compiler will use when defaulting 64-bit attributes and elements.
20 /// </summary> 22 /// </summary>
21 /// <value>The platform which the compiler will use when defaulting 64-bit attributes and elements.</value> 23 /// <value>The platform which the compiler will use when defaulting 64-bit attributes and elements.</value>
22 Platform Platform { get; set; } 24 Platform Platform { get; set; }
23 25
24 IList<string> IncludeSearchPaths { get; set; }
25
26 string SourceFile { get; set; } 26 string SourceFile { get; set; }
27 27
28 IDictionary<string, string> Variables { get; set; } 28 IDictionary<string, string> Variables { get; set; }
diff --git a/src/WixToolset.Extensibility/Services/ServiceProviderExtensions.cs b/src/WixToolset.Extensibility/ServiceProviderExtensions.cs
index f4a5e8c3..408d1523 100644
--- a/src/WixToolset.Extensibility/Services/ServiceProviderExtensions.cs
+++ b/src/WixToolset.Extensibility/ServiceProviderExtensions.cs
@@ -1,6 +1,6 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2 2
3namespace WixToolset.Extensibility.Services 3namespace WixToolset.Extensibility
4{ 4{
5 using System; 5 using System;
6 6