add support for using the '@' character in place of the rotation #, for situations where stupid config files treat '#' as the end of the line and beginning of a comment...

This commit is contained in:
jrandom
2004-08-23 17:47:46 +00:00
committed by zzz
parent bce5b44275
commit 9b4144b815

View File

@ -165,7 +165,7 @@ class LogWriter implements Runnable {
private File getNextFile(String pattern) {
File f = null;
if (pattern.indexOf('#') < 0) {
if ( (pattern.indexOf('#') < 0) && (pattern.indexOf('@') <= 0) ) {
return new File(pattern);
}
@ -214,7 +214,7 @@ class LogWriter implements Runnable {
char c[] = pattern.toCharArray();
StringBuffer buf = new StringBuffer();
for (int i = 0; i < c.length; i++) {
if (c[i] != '#')
if ( (c[i] != '#') && (c[i] != '@') )
buf.append(c[i]);
else
buf.append(num);