src-util/diagnostic/build.xml
changeset 35011 4099d7b5ceca
parent 11995 e7b20e55553e
child 35052 6474c4dae278
--- a/src-util/diagnostic/build.xml	Thu Oct 11 16:54:09 2018 +0200
+++ b/src-util/diagnostic/build.xml	Mon Oct 15 10:03:04 2018 +0200
@@ -12,7 +12,7 @@
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
-* All portions are Copyright (C) 2008 Openbravo SLU
+* All portions are Copyright (C) 2008-2018 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
@@ -89,10 +89,16 @@
   </target>
 
   <target name="check.log4j">
-    <echo message="Checking for log4j.lcf file..." />
-    <available file="../../config/log4j.lcf" property="isLog4j" />
-    <fail unless="isLog4j" message="log4j.lcf file not available. Tip: move config/log4j.lcf.template file to config/log4j.lcf and configure it" />
-    <echo message="log4j.lcf file OK" />
+    <echo message="Checking for log4j2*.xml files..." />
+    <condition property="isLog4j">
+      <and>
+        <available file="../../config/log4j2.xml" />
+        <available file="../../config/log4j2-web.xml" />
+      </and>
+    </condition>
+
+    <fail unless="isLog4j" message="log4j2.xml and/or log4j2-web.xml file not available. Tip: copy config/log4j2.xml.template and config/log4j2-web.xml files removing the .template prefix and configure them" />
+    <echo message="log4j2 configuration files OK" />
   </target>
 
   <target name="check.permissions" if="isCheckPerms">