relax check in features for multiversion deps 82/86782/1
authorjhh <jorge.hernandez-herrero@att.com>
Thu, 2 May 2019 04:30:45 +0000 (23:30 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Thu, 2 May 2019 04:30:45 +0000 (23:30 -0500)
print a warning instead, and the base install one wins.

Change-Id: I666481e270bc03a8a7164e0fa947822d1ac8bbb6
Issue-ID: POLICY-1726
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
policy-management/src/main/server-gen/bin/features

index d9c6eb2..8aa863c 100644 (file)
@@ -314,12 +314,13 @@ function enableDepAnalysis ()
                        continue
                fi
                
-               # unadvisable if multiple versions exist
+               # unadvisable if multiple versions exist but the base or
+               # installed one wins.
 
                multiVersionJars=$(ls "${LIB}"/"${depJarName%%-[0-9]*.jar}"-*.jar 2> /dev/null)
                if [[ -n "${multiVersionJars}" ]]; then
-                       echo "error: other version of library ${depJarName} present: ${multiVersionJars}"
-                       return 2
+                       echo "warning: other version of library ${depJarName} present: ${multiVersionJars}"
+                       continue
                fi
        done
 }