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:
@ -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);
|
||||
|
Reference in New Issue
Block a user