mirror of https://github.com/abpframework/abp.git
3 changed files with 18 additions and 21 deletions
@ -0,0 +1,16 @@ |
|||
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps; |
|||
|
|||
public class RemoveFilesStep : ProjectBuildPipelineStep |
|||
{ |
|||
private readonly string _filePath; |
|||
|
|||
public RemoveFilesStep(string filePath) |
|||
{ |
|||
_filePath = filePath; |
|||
} |
|||
|
|||
public override void Execute(ProjectBuildContext context) |
|||
{ |
|||
context.Files.RemoveAll(file => file.Name.Contains(_filePath)); |
|||
} |
|||
} |
|||
@ -1,19 +0,0 @@ |
|||
using System; |
|||
using System.Linq; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps; |
|||
|
|||
public class RemoveFoldersStep : ProjectBuildPipelineStep |
|||
{ |
|||
private readonly string _folderPath; |
|||
|
|||
public RemoveFoldersStep(string folderPath) |
|||
{ |
|||
_folderPath = folderPath; |
|||
} |
|||
|
|||
public override void Execute(ProjectBuildContext context) |
|||
{ |
|||
context.Files.RemoveAll(file => file.Name.Contains(_folderPath)); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue