public int getCheckInterval() { return options.getCheckInterval(); }
public int getCheckInterval() { return options.getCheckInterval(); }
/** * Sleep for the duration specified by the <code>checkInterval</code> * property. */ protected void threadSleep() { try { Thread.sleep(options.getCheckInterval() * 1000L); } catch (InterruptedException e) { ; } }
/** * Sleep for the duration specified by the <code>checkInterval</code> * property. */ protected void threadSleep() { try { Thread.sleep(options.getCheckInterval() * 1000L); } catch (InterruptedException e) { ; } }
/** * Sleep for the duration specified by the <code>checkInterval</code> * property. */ protected void threadSleep() { try { Thread.sleep(options.getCheckInterval() * 1000L); } catch (InterruptedException e) { ; } }
/** * Sleep for the duration specified by the <code>checkInterval</code> * property. */ protected void threadSleep() { try { Thread.sleep(options.getCheckInterval() * 1000L); } catch (InterruptedException e) { ; } }
/** * Sleep for the duration specified by the <code>checkInterval</code> * property. */ protected void threadSleep() { try { Thread.sleep(options.getCheckInterval() * 1000L); } catch (InterruptedException e) { ; } }
/** * Sleep for the duration specified by the <code>checkInterval</code> * property. */ protected void threadSleep() { try { Thread.sleep(options.getCheckInterval() * 1000L); } catch (InterruptedException e) { ; } }
/** * Sleep for the duration specified by the <code>checkInterval</code> * property. */ protected void threadSleep() { try { Thread.sleep(options.getCheckInterval() * 1000L); } catch (InterruptedException e) { ; } }
/** * Create a JspRuntimeContext for a web application context. * * Loads in any previously generated dependencies from file. * * @param context ServletContext for web application */ public JspRuntimeContext(ServletContext context, Options options) { this.context = context; this.options = options; // Get the parent class loader parentClassLoader = Thread.currentThread().getContextClassLoader(); if (parentClassLoader == null) { parentClassLoader = this.getClass().getClassLoader(); } JasperLogger.COMPILER_LOGGER.logParentClassLoader((parentClassLoader != null) ? parentClassLoader.toString() : "[none]"); initClassPath(); if (Constants.IS_SECURITY_ENABLED) { initSecurity(); } // If this web application context is running from a // directory, start the background compilation thread String appBase = context.getRealPath("/"); if (!options.getDevelopment() && appBase != null && options.getCheckInterval() > 0) { lastCheck = System.currentTimeMillis(); } }
if (!options.getDevelopment() && appBase != null && options.getCheckInterval() > 0) { lastCheck = System.currentTimeMillis();
if (now > (lastCheck + (options.getCheckInterval() * 1000L))) { lastCheck = now; } else {
if (now > (lastCompileCheck + (options.getCheckInterval() * 1000L))) { lastCompileCheck = now; } else {
if (!options.getDevelopment() && appBase != null && options.getCheckInterval() > 0 && !options.getUsePrecompiled()) { if (appBase.endsWith(File.separator) ) {
if (!options.getDevelopment() && appBase != null && options.getCheckInterval() > 0 && !options.getUsePrecompiled()) { if (appBase.endsWith(File.separator) ) {
if (now > (lastCompileCheck + (options.getCheckInterval() * 1000L))) { lastCompileCheck = now; } else {
if (now > (lastCheck + (options.getCheckInterval() * 1000L))) { lastCheck = now; } else {
if (now > (lastCompileCheck + (options.getCheckInterval() * 1000L))) { lastCompileCheck = now; } else {
if (now > (lastCompileCheck + (options.getCheckInterval() * 1000L))) { lastCompileCheck = now; } else {
if (!options.getDevelopment() && appBase != null && options.getCheckInterval() > 0) { lastCompileCheck = System.currentTimeMillis();