Fixing Build issue 61/49761/3
authorGautam Shah <gautams@amdocs.com>
Thu, 31 May 2018 13:36:30 +0000 (19:06 +0530)
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>
Thu, 31 May 2018 15:07:47 +0000 (15:07 +0000)
build issue fix.

Change-Id: I19db0e4b9239b814fbca1334f5e0928f09a4c2a0
Issue-ID: SDC-1189
Signed-off-by: GAUTAMS <gautams@amdocs.com>
openecomp-be/tools/compile-helper-plugin/src/main/java/org/openecomp/sdc/onboarding/PreCompileHelperMojo.java

index 15a45a7..5924271 100644 (file)
@@ -32,6 +32,7 @@ import static org.openecomp.sdc.onboarding.Constants.JAVA_EXT;
 import static org.openecomp.sdc.onboarding.Constants.MAIN;
 import static org.openecomp.sdc.onboarding.Constants.MAIN_CHECKSUM;
 import static org.openecomp.sdc.onboarding.Constants.MAIN_SOURCE_CHECKSUM;
+import static org.openecomp.sdc.onboarding.Constants.PREFIX;
 import static org.openecomp.sdc.onboarding.Constants.RESOURCES_CHANGED;
 import static org.openecomp.sdc.onboarding.Constants.RESOURCE_CHECKSUM;
 import static org.openecomp.sdc.onboarding.Constants.RESOURCE_ONLY;
@@ -283,7 +284,7 @@ public class PreCompileHelperMojo extends AbstractMojo {
     }
 
     private void setJarFlags(boolean compile, boolean instrumented, boolean resourceChanged) {
-        if (compile || instrumented || resourceChanged) {
+        if (compile || instrumented || resourceChanged || PREFIX == UNICORN) {
             project.getProperties().setProperty(EMPTY_JAR, "");
         } else {
             project.getProperties().setProperty(EMPTY_JAR, "**/*");