public enum CacheMode extends Enum<CacheMode>
ResourceTransformerFactory in development mode. In production mode, caching at this
level is not needed, because artifacts are also cached later in the pipeline. This caching is all about avoid unwanted| Enum Constant and Description |
|---|
MULTIPLE_FILE
The source may be multiple files (e.g., Less).
|
NONE
Do no caching.
|
SINGLE_FILE
Cache the content on the file system, in the directory defined by
WebResourcesSymbols.CACHE_DIR. |
| Modifier and Type | Method and Description |
|---|---|
static CacheMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheMode SINGLE_FILE
WebResourcesSymbols.CACHE_DIR.
This allows compilation to be avoided even after a restart, as long as the source file has not changed. This only works
for compilations that operate on a single file (such as CoffeeScript, but not Less, which has an @import statement).public static final CacheMode MULTIPLE_FILE
public static CacheMode[] values()
for (CacheMode c : CacheMode.values()) System.out.println(c);
public static CacheMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null${project.version} - Copyright © 2003-2015 The Apache Software Foundation.