src-util/diagnostic/build.xml
changeset 35011 4099d7b5ceca
parent 11995 e7b20e55553e
child 35052 6474c4dae278
equal deleted inserted replaced
35010:58ed76aaa521 35011:4099d7b5ceca
    10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
    10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
    11 * License for the specific  language  governing  rights  and  limitations
    11 * License for the specific  language  governing  rights  and  limitations
    12 * under the License.
    12 * under the License.
    13 * The Original Code is Openbravo ERP.
    13 * The Original Code is Openbravo ERP.
    14 * The Initial Developer of the Original Code is Openbravo SLU
    14 * The Initial Developer of the Original Code is Openbravo SLU
    15 * All portions are Copyright (C) 2008 Openbravo SLU
    15 * All portions are Copyright (C) 2008-2018 Openbravo SLU
    16 * All Rights Reserved.
    16 * All Rights Reserved.
    17 * Contributor(s):  ______________________________________.
    17 * Contributor(s):  ______________________________________.
    18 ************************************************************************
    18 ************************************************************************
    19 -->
    19 -->
    20 <project name="openbravo-diagnostics" basedir="." default="check.all">
    20 <project name="openbravo-diagnostics" basedir="." default="check.all">
    87     <fail unless="isSourcePath" message="source.path property is not properly set in Openbravo.properties file" />
    87     <fail unless="isSourcePath" message="source.path property is not properly set in Openbravo.properties file" />
    88     <echo message="source.path OK" />
    88     <echo message="source.path OK" />
    89   </target>
    89   </target>
    90 
    90 
    91   <target name="check.log4j">
    91   <target name="check.log4j">
    92     <echo message="Checking for log4j.lcf file..." />
    92     <echo message="Checking for log4j2*.xml files..." />
    93     <available file="../../config/log4j.lcf" property="isLog4j" />
    93     <condition property="isLog4j">
    94     <fail unless="isLog4j" message="log4j.lcf file not available. Tip: move config/log4j.lcf.template file to config/log4j.lcf and configure it" />
    94       <and>
    95     <echo message="log4j.lcf file OK" />
    95         <available file="../../config/log4j2.xml" />
       
    96         <available file="../../config/log4j2-web.xml" />
       
    97       </and>
       
    98     </condition>
       
    99 
       
   100     <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" />
       
   101     <echo message="log4j2 configuration files OK" />
    96   </target>
   102   </target>
    97 
   103 
    98   <target name="check.permissions" if="isCheckPerms">
   104   <target name="check.permissions" if="isCheckPerms">
    99     <echo message="Checking file permissions for current user, (this will take a while)..." />
   105     <echo message="Checking file permissions for current user, (this will take a while)..." />
   100     <exec executable="./check-ob-perms.sh" failonerror="true">
   106     <exec executable="./check-ob-perms.sh" failonerror="true">