diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.22.v20170606.jar
similarity index 56%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.22.v20170606.jar
index 5a6cc108e..52b78673e 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.33.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.33.jar
similarity index 100%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.33.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/apache-jsp/org.mortbay.jasper.apache-el-8.0.33.jar
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.33.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.33.jar
similarity index 100%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.33.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/apache-jsp/org.mortbay.jasper.apache-jsp-8.0.33.jar
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-continuation-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-continuation-9.2.22.v20170606.jar
similarity index 52%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-continuation-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-continuation-9.2.22.v20170606.jar
index 4aac6404c..4d94b6648 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-continuation-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-continuation-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-deploy-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-deploy-9.2.22.v20170606.jar
similarity index 83%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-deploy-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-deploy-9.2.22.v20170606.jar
index d535a6b2e..c7d559aae 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-deploy-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-deploy-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-http-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-http-9.2.22.v20170606.jar
similarity index 65%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-http-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-http-9.2.22.v20170606.jar
index 507952734..e7cf57840 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-http-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-http-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-io-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-io-9.2.22.v20170606.jar
similarity index 76%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-io-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-io-9.2.22.v20170606.jar
index 5eafefc7c..552dc747a 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-io-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-io-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-jmx-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-jmx-9.2.22.v20170606.jar
similarity index 82%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-jmx-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-jmx-9.2.22.v20170606.jar
index 5f11c2fd4..b4708e46e 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-jmx-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-jmx-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-rewrite-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-rewrite-9.2.22.v20170606.jar
similarity index 80%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-rewrite-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-rewrite-9.2.22.v20170606.jar
index ea2adc1f8..858477ace 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-rewrite-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-rewrite-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-schemas-3.1.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-schemas-3.1.jar
similarity index 100%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-schemas-3.1.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-schemas-3.1.jar
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-security-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-security-9.2.22.v20170606.jar
similarity index 78%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-security-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-security-9.2.22.v20170606.jar
index f54d07c38..7130a3f38 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-security-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-security-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-server-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-server-9.2.22.v20170606.jar
similarity index 81%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-server-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-server-9.2.22.v20170606.jar
index 8a4c5fad4..531aa23bf 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-server-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-server-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-servlet-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-servlet-9.2.22.v20170606.jar
similarity index 68%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-servlet-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-servlet-9.2.22.v20170606.jar
index 4fd13be32..008d1bdc1 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-servlet-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-servlet-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-servlets-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-servlets-9.2.22.v20170606.jar
similarity index 80%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-servlets-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-servlets-9.2.22.v20170606.jar
index c11519c1a..70da6d36f 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-servlets-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-servlets-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-util-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-util-9.2.22.v20170606.jar
similarity index 72%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-util-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-util-9.2.22.v20170606.jar
index edf6b9bea..73619905e 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-util-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-util-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-webapp-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-webapp-9.2.22.v20170606.jar
similarity index 89%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-webapp-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-webapp-9.2.22.v20170606.jar
index a7f7dcd76..0ab79cdfd 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-webapp-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-webapp-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-xml-9.2.21.v20170120.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-xml-9.2.22.v20170606.jar
similarity index 66%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-xml-9.2.21.v20170120.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-xml-9.2.22.v20170606.jar
index f82eba9cf..93d4c1387 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/jetty-xml-9.2.21.v20170120.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/jetty-xml-9.2.22.v20170606.jar differ
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/lib/servlet-api-3.1.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/lib/servlet-api-3.1.jar
similarity index 100%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/lib/servlet-api-3.1.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/lib/servlet-api-3.1.jar
diff --git a/apps/jetty/jetty-distribution-9.2.21.v20170120/start.jar b/apps/jetty/jetty-distribution-9.2.22.v20170606/start.jar
similarity index 83%
rename from apps/jetty/jetty-distribution-9.2.21.v20170120/start.jar
rename to apps/jetty/jetty-distribution-9.2.22.v20170606/start.jar
index 4dc45c3b9..29c26d668 100644
Binary files a/apps/jetty/jetty-distribution-9.2.21.v20170120/start.jar and b/apps/jetty/jetty-distribution-9.2.22.v20170606/start.jar differ
diff --git a/apps/jetty/patches/jetty-util/src/main/java/org/eclipse/jetty/util/RolloverFileOutputStream.java b/apps/jetty/patches/jetty-util/src/main/java/org/eclipse/jetty/util/RolloverFileOutputStream.java
deleted file mode 100644
index b2a3ab554..000000000
--- a/apps/jetty/patches/jetty-util/src/main/java/org/eclipse/jetty/util/RolloverFileOutputStream.java
+++ /dev/null
@@ -1,354 +0,0 @@
-//
-// ========================================================================
-// Copyright (c) 1995-2017 Mort Bay Consulting Pty. Ltd.
-// ------------------------------------------------------------------------
-// All rights reserved. This program and the accompanying materials
-// are made available under the terms of the Eclipse Public License v1.0
-// and Apache License v2.0 which accompanies this distribution.
-//
-// The Eclipse Public License is available at
-// http://www.eclipse.org/legal/epl-v10.html
-//
-// The Apache License v2.0 is available at
-// http://www.opensource.org/licenses/apache2.0.php
-//
-// You may elect to redistribute this code under either of these licenses.
-// ========================================================================
-//
-
-package org.eclipse.jetty.util;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.FilterOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.text.SimpleDateFormat;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.Locale;
-import java.util.TimeZone;
-import java.util.Timer;
-import java.util.TimerTask;
-
-/**
- * RolloverFileOutputStream.
- *
- *
- * This output stream puts content in a file that is rolled over every 24 hours.
- * The filename must include the string "yyyy_mm_dd", which is replaced with the
- * actual date when creating and rolling over the file.
- *
- *
- * Old files are retained for a number of days before being deleted.
- *
- */
-public class RolloverFileOutputStream extends FilterOutputStream
-{
- private static Timer __rollover;
-
- final static String YYYY_MM_DD="yyyy_mm_dd";
- final static String ROLLOVER_FILE_DATE_FORMAT = "yyyy_MM_dd";
- final static String ROLLOVER_FILE_BACKUP_FORMAT = "HHmmssSSS";
- final static int ROLLOVER_FILE_RETAIN_DAYS = 31;
-
- private RollTask _rollTask;
- private Calendar midnight;
- private SimpleDateFormat _fileBackupFormat;
- private SimpleDateFormat _fileDateFormat;
-
- private String _filename;
- private File _file;
- private boolean _append;
- private int _retainDays;
-
- private final TimeZone _zone;
-
- /* ------------------------------------------------------------ */
- /**
- * @param filename The filename must include the string "yyyy_mm_dd",
- * which is replaced with the actual date when creating and rolling over the file.
- * @throws IOException
- */
- public RolloverFileOutputStream(String filename)
- throws IOException
- {
- this(filename,true,ROLLOVER_FILE_RETAIN_DAYS);
- }
-
- /* ------------------------------------------------------------ */
- /**
- * @param filename The filename must include the string "yyyy_mm_dd",
- * which is replaced with the actual date when creating and rolling over the file.
- * @param append If true, existing files will be appended to.
- * @throws IOException
- */
- public RolloverFileOutputStream(String filename, boolean append)
- throws IOException
- {
- this(filename,append,ROLLOVER_FILE_RETAIN_DAYS);
- }
-
- /* ------------------------------------------------------------ */
- /**
- * @param filename The filename must include the string "yyyy_mm_dd",
- * which is replaced with the actual date when creating and rolling over the file.
- * @param append If true, existing files will be appended to.
- * @param retainDays The number of days to retain files before deleting them. 0 to retain forever.
- * @throws IOException
- */
- public RolloverFileOutputStream(String filename,
- boolean append,
- int retainDays)
- throws IOException
- {
- this(filename,append,retainDays,TimeZone.getDefault());
- }
-
- /* ------------------------------------------------------------ */
- /**
- * @param filename The filename must include the string "yyyy_mm_dd",
- * which is replaced with the actual date when creating and rolling over the file.
- * @param append If true, existing files will be appended to.
- * @param retainDays The number of days to retain files before deleting them. 0 to retain forever.
- * @throws IOException
- */
- public RolloverFileOutputStream(String filename,
- boolean append,
- int retainDays,
- TimeZone zone)
- throws IOException
- {
-
- this(filename,append,retainDays,zone,null,null);
- }
-
- /* ------------------------------------------------------------ */
- /**
- * @param filename The filename must include the string "yyyy_mm_dd",
- * which is replaced with the actual date when creating and rolling over the file.
- * @param append If true, existing files will be appended to.
- * @param retainDays The number of days to retain files before deleting them. 0 to retain forever.
- * @param dateFormat The format for the date file substitution. The default is "yyyy_MM_dd".
- * @param backupFormat The format for the file extension of backup files. The default is "HHmmssSSS".
- * @throws IOException
- */
- public RolloverFileOutputStream(String filename,
- boolean append,
- int retainDays,
- TimeZone zone,
- String dateFormat,
- String backupFormat)
- throws IOException
- {
- super(null);
-
- if (dateFormat==null)
- dateFormat=ROLLOVER_FILE_DATE_FORMAT;
- _fileDateFormat = new SimpleDateFormat(dateFormat);
-
- if (backupFormat==null)
- backupFormat=ROLLOVER_FILE_BACKUP_FORMAT;
- _fileBackupFormat = new SimpleDateFormat(backupFormat);
-
- _fileBackupFormat.setTimeZone(zone);
- _fileDateFormat.setTimeZone(zone);
-
- if (filename!=null)
- {
- filename=filename.trim();
- if (filename.length()==0)
- filename=null;
- }
- if (filename==null)
- throw new IllegalArgumentException("Invalid filename");
-
- _filename=filename;
- _append=append;
- _retainDays=retainDays;
- setFile();
-
- _zone = zone;
- synchronized(RolloverFileOutputStream.class)
- {
- if (__rollover==null)
- __rollover=new Timer(RolloverFileOutputStream.class.getName(),true);
-
- scheduleNextRollover();
- }
- }
-
- private void scheduleNextRollover()
- {
- _rollTask=new RollTask();
-
- midnight = Calendar.getInstance();
- midnight.setTimeZone(_zone);
- // set to midnight
- midnight.set(Calendar.HOUR_OF_DAY, 0);
- midnight.set(Calendar.MINUTE, 0);
- midnight.set(Calendar.SECOND, 0);
- midnight.set(Calendar.MILLISECOND, 0);
-
- // Increment to next day.
- // Using Calendar.add(DAY, 1) takes in account Daylights Savings
- // differences, and still maintains the "midnight" settings for
- // Hour, Minute, Second, Milliseconds
- midnight.add(Calendar.DAY_OF_MONTH, 1);
- __rollover.schedule(_rollTask,midnight.getTime());
- }
-
- /* ------------------------------------------------------------ */
- public String getFilename()
- {
- return _filename;
- }
-
- /* ------------------------------------------------------------ */
- public String getDatedFilename()
- {
- if (_file==null)
- return null;
- return _file.toString();
- }
-
- /* ------------------------------------------------------------ */
- public int getRetainDays()
- {
- return _retainDays;
- }
-
- /* ------------------------------------------------------------ */
- private synchronized void setFile()
- throws IOException
- {
- // Check directory
- File file = new File(_filename);
- _filename=file.getCanonicalPath();
- file=new File(_filename);
- File dir= new File(file.getParent());
- if (!dir.isDirectory() || !dir.canWrite())
- throw new IOException("Cannot write log directory "+dir);
-
- Date now=new Date();
-
- // Is this a rollover file?
- String filename=file.getName();
- int i=filename.toLowerCase(Locale.ENGLISH).indexOf(YYYY_MM_DD);
- if (i>=0)
- {
- file=new File(dir,
- filename.substring(0,i)+
- _fileDateFormat.format(now)+
- filename.substring(i+YYYY_MM_DD.length()));
- }
-
- if (file.exists()&&!file.canWrite())
- throw new IOException("Cannot write log file "+file);
-
- // Do we need to change the output stream?
- if (out==null || !file.equals(_file))
- {
- // Yep
- _file=file;
- if (!_append && file.exists())
- file.renameTo(new File(file.toString()+"."+_fileBackupFormat.format(now)));
- OutputStream oldOut=out;
- out=new FileOutputStream(file.toString(),_append);
- if (oldOut!=null)
- oldOut.close();
- //if(log.isDebugEnabled())log.debug("Opened "+_file);
- }
- }
-
- /* ------------------------------------------------------------ */
- private void removeOldFiles()
- {
- if (_retainDays>0)
- {
- Calendar now = Calendar.getInstance();
- now.add(Calendar.DAY_OF_MONTH, (-1)*_retainDays);
- long expired = now.getTimeInMillis();
-
- File file= new File(_filename);
- File dir = new File(file.getParent());
- String fn=file.getName();
- int s=fn.toLowerCase(Locale.ENGLISH).indexOf(YYYY_MM_DD);
- if (s<0)
- return;
- String prefix=fn.substring(0,s);
- String suffix=fn.substring(s+YYYY_MM_DD.length());
-
- String[] logList=dir.list();
- for (int i=0;i=0)
- {
- File f = new File(dir,fn);
- if(f.lastModified() < expired)
- {
- f.delete();
- }
- }
- }
- }
- }
-
- /* ------------------------------------------------------------ */
- @Override
- public void write (byte[] buf)
- throws IOException
- {
- out.write (buf);
- }
-
- /* ------------------------------------------------------------ */
- @Override
- public void write (byte[] buf, int off, int len)
- throws IOException
- {
- out.write (buf, off, len);
- }
-
- /* ------------------------------------------------------------ */
- @Override
- public void close()
- throws IOException
- {
- synchronized(RolloverFileOutputStream.class)
- {
- try{super.close();}
- finally
- {
- out=null;
- _file=null;
- }
-
- if (_rollTask != null)
- {
- _rollTask.cancel();
- }
- }
- }
-
- /* ------------------------------------------------------------ */
- private class RollTask extends TimerTask
- {
- @Override
- public void run()
- {
- try
- {
- RolloverFileOutputStream.this.setFile();
- RolloverFileOutputStream.this.scheduleNextRollover();
- RolloverFileOutputStream.this.removeOldFiles();
- }
- catch(Throwable t)
- {
- // Cannot log this exception to a LOG, as RolloverFOS can be used by logging
- t.printStackTrace(System.err);
- }
- }
- }
-}