@FunctionalInterface
public interface ResourceCompiler
Modifier and Type | Field and Description |
---|---|
static ResourceCompiler |
NONE
Resource compiler that doesn't do anything.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<java.io.File> |
compile(java.io.File file,
java.io.File output)
Produces an optional output file for an input file.
|
static final ResourceCompiler NONE
@NonNull com.google.common.util.concurrent.ListenableFuture<java.io.File> compile(@NonNull java.io.File file, @NonNull java.io.File output) throws java.lang.Exception
file
- the resource file to compileoutput
- the directory where the compiled file should be placed; the actual output
file will be decided by the compilernull
, then the file is not compilable; this future may hol
an exception if compilation failsjava.lang.Exception
- failed to process the compilation request