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 @@
     <property name="year" value="2001"/>
   
     <!-- debug flag for ant javac, values are "on" and "off" -->
  -  <property name="debug" value="off"/>  
  +  <property name="debug" value="on"/>  
   
     <property name="deprecation" value="true"/>
   
  
  
  
  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"));
           }
       }
  
  
  


Reply via email to