From 719e3bb7d4f6b31c178abaeff9b8124ce7703662 Mon Sep 17 00:00:00 2001 From: Gautam Shah Date: Tue, 5 Jun 2018 18:50:13 +0530 Subject: Onboarding backend build optimization. Enhancing Test RUN/NO-RUN Logic, adding identifiers for local build state repo Change-Id: Ie0a541f216c16ddc40605111981d7a2fa045c39d Issue-ID: SDC-1189 Signed-off-by: GAUTAMS --- .../java/org/openecomp/sdc/onboarding/pmd/VerifyHelperMojo.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'openecomp-be/tools/pmd-helper-plugin/src') diff --git a/openecomp-be/tools/pmd-helper-plugin/src/main/java/org/openecomp/sdc/onboarding/pmd/VerifyHelperMojo.java b/openecomp-be/tools/pmd-helper-plugin/src/main/java/org/openecomp/sdc/onboarding/pmd/VerifyHelperMojo.java index c80951ff50..9e783d9ed4 100644 --- a/openecomp-be/tools/pmd-helper-plugin/src/main/java/org/openecomp/sdc/onboarding/pmd/VerifyHelperMojo.java +++ b/openecomp-be/tools/pmd-helper-plugin/src/main/java/org/openecomp/sdc/onboarding/pmd/VerifyHelperMojo.java @@ -128,7 +128,11 @@ public class VerifyHelperMojo extends AbstractMojo { private void removeProcessFiles() { if (moduleCoordinates.equals(persistingModuleCoordinates) && pmdStateFile.exists()) { - pmdStateFile.delete(); + for (File file : pmdStateFile.getParentFile().listFiles()) { + if (file.isFile()) { + file.delete(); + } + } } if (pmdTargetLocation.exists()) { pmdTargetLocation.delete(); -- cgit 1.2.3-korg