Skip to content

Commit 3b7be32

Browse files
committed
just cleaned caches will keep the goal green (no failure due to not found paths)
1 parent 7583f48 commit 3b7be32

File tree

1 file changed

+4
-1
lines changed
  • WebSphereClearCaches/src/main/java/de/novensa/techniques/maven/plugin/web/as/WebSphere

1 file changed

+4
-1
lines changed

WebSphereClearCaches/src/main/java/de/novensa/techniques/maven/plugin/web/as/WebSphere/ClearCachesMojo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ private void processFile(final String path) throws MojoFailureException, MojoExe
209209
final File effectivePath = new File(dropEndingString(path, ANY_FILES_WITHIN));
210210

211211
if (!effectivePath.exists()) {
212-
log(ERROR, String.format(DIRECTORY_DOES_NOT_EXIST, effectivePath));
212+
log(DEBUG, String.format(DIRECTORY_DOES_NOT_EXIST, effectivePath));
213+
cleanedCount++;
214+
filesToCleanCount++;
215+
return;
213216
}
214217

215218
if (path.endsWith(ANY_FILES_WITHIN)) {

0 commit comments

Comments
 (0)