Skip to content

Commit

Permalink
feat: file-generate插件,文件的action属性,支持skip值。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Jun 11, 2024
1 parent a408dd5 commit 88a3351
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ public void execute() throws MojoExecutionException {
// 创建文件
File file = new File(this.outputDirectory, fileInfo.getPath());

if ("delete".equalsIgnoreCase(fileInfo.getAction())) {
if ("skip".equalsIgnoreCase(fileInfo.getAction())) {
// 跳过
getLog().info("Skip file: " + fileInfo.getPath());
} else if ("delete".equalsIgnoreCase(fileInfo.getAction())) {
// 删除文件
if (file.exists()) {
try {
Expand Down

0 comments on commit 88a3351

Please sign in to comment.