Search in sources :

Example 1 with MergedOutputCompilationUnitSinkFactory

use of net.jangaroo.jooc.backend.MergedOutputCompilationUnitSinkFactory in project jangaroo-tools by CoreMedia.

the class Jooc method createSinkFactory.

private CompilationUnitSinkFactory createSinkFactory(JoocConfiguration config, final boolean generateActionScriptApi) {
    CompilationUnitSinkFactory codeSinkFactory;
    if (!generateActionScriptApi && config.isMergeOutput()) {
        codeSinkFactory = new MergedOutputCompilationUnitSinkFactory(config, config.getOutputFile());
    } else {
        File outputDirectory = generateActionScriptApi ? config.getApiOutputDirectory() : config.getOutputDirectory();
        final String suffix = generateActionScriptApi ? AS_SUFFIX : OUTPUT_FILE_SUFFIX;
        codeSinkFactory = new SingleFileCompilationUnitSinkFactory(config, outputDirectory, generateActionScriptApi, suffix);
    }
    return codeSinkFactory;
}
Also used : SingleFileCompilationUnitSinkFactory(net.jangaroo.jooc.backend.SingleFileCompilationUnitSinkFactory) SingleFileCompilationUnitSinkFactory(net.jangaroo.jooc.backend.SingleFileCompilationUnitSinkFactory) CompilationUnitSinkFactory(net.jangaroo.jooc.backend.CompilationUnitSinkFactory) MergedOutputCompilationUnitSinkFactory(net.jangaroo.jooc.backend.MergedOutputCompilationUnitSinkFactory) MergedOutputCompilationUnitSinkFactory(net.jangaroo.jooc.backend.MergedOutputCompilationUnitSinkFactory) File(java.io.File)

Aggregations

File (java.io.File)1 CompilationUnitSinkFactory (net.jangaroo.jooc.backend.CompilationUnitSinkFactory)1 MergedOutputCompilationUnitSinkFactory (net.jangaroo.jooc.backend.MergedOutputCompilationUnitSinkFactory)1 SingleFileCompilationUnitSinkFactory (net.jangaroo.jooc.backend.SingleFileCompilationUnitSinkFactory)1