
Author: ceki Date: Thu Jul 23 21:30:22 2009 New Revision: 2372 Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/TimeBasedCleaner.java Log: - minor change - added copyright notice Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java ============================================================================== --- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java (original) +++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java Thu Jul 23 21:30:22 2009 @@ -47,7 +47,7 @@ String elapsedPeriodsFileName; FileNamePattern activeFileNamePattern; Compressor compressor; - RenameUtil util = new RenameUtil(); + RenameUtil renameUtil = new RenameUtil(); Future<?> future; int maxHistory = NO_DELETE_HISTORY; @@ -69,7 +69,7 @@ public void start() { // set the LR for our utility object - util.setContext(this.context); + renameUtil.setContext(this.context); // find out period from the filename pattern if (fileNamePatternStr != null) { @@ -154,7 +154,7 @@ if (compressionMode == CompressionMode.NONE) { if (getParentsRawFileProperty() != null) { - util.rename(getParentsRawFileProperty(), elapsedPeriodsFileName); + renameUtil.rename(getParentsRawFileProperty(), elapsedPeriodsFileName); } } else { if (getParentsRawFileProperty() == null) { @@ -179,7 +179,7 @@ Future renamedRawAndAsyncCompress(String nameOfCompressedFile) throws RolloverFailure { String parentsRawFile = getParentsRawFileProperty(); String tmpTarget = parentsRawFile + System.nanoTime() + ".tmp"; - util.rename(parentsRawFile, tmpTarget); + renameUtil.rename(parentsRawFile, tmpTarget); return asyncCompress(tmpTarget, nameOfCompressedFile); } Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/TimeBasedCleaner.java ============================================================================== --- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/TimeBasedCleaner.java (original) +++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/TimeBasedCleaner.java Thu Jul 23 21:30:22 2009 @@ -1,3 +1,13 @@ +/** + * Logback: the generic, reliable, fast and flexible logging framework. + * + * Copyright (C) 2000-2009, QOS.ch + * + * This library is free software, you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation. + */ + package ch.qos.logback.core.rolling.helper; import java.io.File;