sfsBuilder.setCompileTimeGlobals(new File(compileTimeGlobalsFile));
}
SoyFileSet sfs = sfsBuilder.build();
// Create SoyJsSrcOptions.
SoyJsSrcOptions jsSrcOptions = new SoyJsSrcOptions();
jsSrcOptions.setIsUsingIjData(isUsingIjData);
jsSrcOptions.setCodeStyle(codeStyle);
jsSrcOptions.setShouldGenerateJsdoc(shouldGenerateJsdoc);
jsSrcOptions.setShouldProvideRequireSoyNamespaces(shouldProvideRequireSoyNamespaces);
jsSrcOptions.setShouldDeclareTopLevelNamespaces(shouldDeclareTopLevelNamespaces);
jsSrcOptions.setShouldGenerateGoogMsgDefs(shouldGenerateGoogMsgDefs);
jsSrcOptions.setGoogMsgsAreExternal(googMsgsAreExternal);
jsSrcOptions.setBidiGlobalDir(bidiGlobalDir);
jsSrcOptions.setUseGoogIsRtlForBidiGlobalDir(useGoogIsRtlForBidiGlobalDir);
// Compile.
if (locales.size() == 0) {
// Not generating localized JS.
sfs.compileToJsSrcFiles(outputPathFormat, inputPrefix, jsSrcOptions, locales, null);