public final class SoyToJbcSrcCompiler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
inputPrefix |
| Modifier and Type | Method and Description |
|---|---|
static void |
compile(SoyFileSet sfs,
com.google.common.io.ByteSink jarTarget,
com.google.common.base.Optional<com.google.common.io.ByteSink> srcJarTarget)
Compile a set of Soy files into corresponding Java class files in a jar.
|
static void |
main(String[] args) |
protected String inputPrefix
public static void compile(SoyFileSet sfs, com.google.common.io.ByteSink jarTarget, com.google.common.base.Optional<com.google.common.io.ByteSink> srcJarTarget) throws IOException
sfs - the files to compile. It must not include files that perform external because JbcSrc
needs callee information to generate correct escaping code.jarTarget - Receives a JAR file containing the classes compiled from the templates.srcJarTarget - If present, receives a JAR file containing the template sources. This may
be useful for enabling IDE debugging scenarios.IOExceptionpublic static void main(String[] args)