mirror of https://github.com/abpframework/abp.git
committed by
GitHub
3 changed files with 32 additions and 1 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)); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue