Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 91461 invoked by uid 500); 12 Feb 2002 14:32:15 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 91442 invoked by uid 500); 12 Feb 2002 14:32:15 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 12 Feb 2002 14:32:14 -0000 Message-ID: <20020212143214.29632.qmail@icarus.apache.org> From: glyn@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/src/org/apache/axis/configuration FileProvider.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N glyn 02/02/12 06:32:14 Modified: java build.xml java/src/org/apache/axis/configuration FileProvider.java Log: Avoid diagnostic about non-writeable config. file if it is also non-readable! Revision Changes Path 1.102 +1 -1 xml-axis/java/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/xml-axis/java/build.xml,v retrieving revision 1.101 retrieving revision 1.102 diff -u -r1.101 -r1.102 --- build.xml 30 Jan 2002 15:51:53 -0000 1.101 +++ build.xml 12 Feb 2002 14:32:14 -0000 1.102 @@ -66,7 +66,7 @@ - + 1.17 +6 -1 xml-axis/java/src/org/apache/axis/configuration/FileProvider.java Index: FileProvider.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/configuration/FileProvider.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- FileProvider.java 12 Feb 2002 12:51:53 -0000 1.16 +++ FileProvider.java 12 Feb 2002 14:32:14 -0000 1.17 @@ -119,7 +119,12 @@ this.basepath = basepath; this.filename = filename; readOnly = !(new File(basepath, filename)).canWrite(); - if (readOnly) { + + /* + * If file is readable but not writeable, log informational message + * as configuration changes will not persist. + */ + if (readOnly && (new File(basepath, filename)).canRead()) { category.info(JavaUtils.getMessage("readOnlyConfigFile")); } }