vmassol     2003/10/13 13:47:41

  Modified:    framework build.xml
  Added:       framework logging.properties.sample
  Removed:     framework logging.properties
  Log:
  Make logging.properties optional
  
  Revision  Changes    Path
  1.71      +4 -2      jakarta-cactus/framework/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-cactus/framework/build.xml,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- build.xml 13 Oct 2003 20:30:55 -0000      1.70
  +++ build.xml 13 Oct 2003 20:47:40 -0000      1.71
  @@ -402,12 +402,14 @@
            <pathelement location="${target.dir}"/>
          </path>
        </pathconvert>
  -     <copy todir="${target.dir}" filtering="on" 
  +     <copy todir="${target.dir}" filtering="on" failonerror="false"
                file="${base.dir}/logging.properties">
          <filterset>
           <filter token="target.dir" value="${target.dir.normalized}"/>
         </filterset>
        </copy>
  +    <!-- Make sure a logging.properties file exists, even if empty -->
  +    <touch file="${target.dir}/logging.properties"/>
   
     </target>
   
  
  
  
  1.1                  jakarta-cactus/framework/logging.properties.sample
  
  Index: logging.properties.sample
  ===================================================================
  # -----------------------------------------------------------------------------
  # Logging properties
  # -----------------------------------------------------------------------------
  
  # Disable logging by default when running the tests. If you wish to use a 
  # logging subsystem, uncomment the line below. That will let Commons logging
  # decide automatically of a suitable logging system for you. For more info, see
  # 
http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/package-summary.html#package_description
  org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
  
  # ---- JDK 1.4 logging properties
  
  # Following properties are useful if you're using the JDK 1.4 logging subsystem
  # and wish to output logs to the console. Comment the NoOpLog line above and
  # uncommment the following lines as needed.
  java.util.logging.config.file = @target.dir@/logging.properties
  handlers = java.util.logging.FileHandler,java.util.logging.ConsoleHandler
  java.util.logging.ConsoleHandler.level = FINEST
  java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
  java.util.logging.FileHandler.pattern = test%u.log
  java.util.logging.FileHandler.limit = 50000
  java.util.logging.FileHandler.count = 1
  java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
  
  # If you want to provide finer grained logging, restrict the level for the 
  # specific package name. 
  # For example: org.apache.cactus.server.level = FINEST
  org.apache.cactus.level = FINEST
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to