Return-Path: Delivered-To: apmail-ws-axis-cvs-archive@www.apache.org Received: (qmail 9633 invoked from network); 3 Sep 2004 14:45:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Sep 2004 14:45:18 -0000 Received: (qmail 93751 invoked by uid 500); 3 Sep 2004 14:45:14 -0000 Delivered-To: apmail-ws-axis-cvs-archive@ws.apache.org Received: (qmail 93658 invoked by uid 500); 3 Sep 2004 14:45:13 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 93625 invoked by uid 99); 3 Sep 2004 14:45:12 -0000 X-ASF-Spam-Status: No, hits=-2.7 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 03 Sep 2004 07:45:12 -0700 Received: (qmail 9565 invoked by uid 1876); 3 Sep 2004 14:45:11 -0000 Date: 3 Sep 2004 14:45:11 -0000 Message-ID: <20040903144511.9564.qmail@minotaur.apache.org> From: hawkeye@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/c/src/common AxisConfig.cpp AxisConfig.h X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hawkeye 2004/09/03 07:45:11 Modified: c/src/common AxisConfig.cpp AxisConfig.h Log: Added warning messages to method that reads configuration information from AXISCPP.CONF Regards, Fred Preston. Revision Changes Path 1.46 +124 -1 ws-axis/c/src/common/AxisConfig.cpp Index: AxisConfig.cpp =================================================================== RCS file: /home/cvs/ws-axis/c/src/common/AxisConfig.cpp,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- AxisConfig.cpp 1 Sep 2004 09:22:32 -0000 1.45 +++ AxisConfig.cpp 3 Sep 2004 14:45:11 -0000 1.46 @@ -99,7 +99,6 @@ const char* pcSeparator = ":"; const char pcComment = '#'; - sConfPath = getenv ("AXISCPP_DEPLOY"); m_pcValueArray[AXCONF_AXISHOME] = sConfPath; /* @@ -127,6 +126,14 @@ if (AXIS_SUCCESS != fileConfig.fileOpen(sNewConfPath, "r")) { free(sNewConfPath); + +#ifdef _DEBUG + printf( "Warning - The configuration file was not found (%s).\n Using the following default file paths.\n", sNewConfPath); + + OutputConfigInfo(); +#else + printf( "Warning - The configuration file was not found (%s).\n", sNewConfPath); +#endif return AXIS_SUCCESS; } @@ -146,19 +153,51 @@ sscanf (carrLine, "%s", key); iValueLength = linesize - strlen (key) - 1; + bool bKeyFound = false; + for(int i=0;i