Search in sources :

Example 1 with JSLibrary

use of net.vtst.ow.closure.compiler.deps.JSLibrary in project ow by vtst.

the class JSIncludesProviderForLaunch method getLibrary.

public JSLibrary getLibrary(AbstractCompiler compiler, File libraryPath, File pathOfClosureBase) {
    JSLibrary library = new JSLibrary(libraryPath, pathOfClosureBase, getCacheSettingsFromPreferences());
    library.setUnits(compiler);
    return library;
}
Also used : JSLibrary(net.vtst.ow.closure.compiler.deps.JSLibrary)

Example 2 with JSLibrary

use of net.vtst.ow.closure.compiler.deps.JSLibrary in project ow by vtst.

the class JSIncludesProviderForBuilder method getLibrary.

// **************************************************************************
// Implementation of IJSLibraryProvider
/* (non-Javadoc)
   * @see net.vtst.ow.eclipse.js.closure.compiler.IJSIncludesProvider#getLibrary(com.google.javascript.jscomp.AbstractCompiler, java.io.File, java.io.File)
   */
public JSLibrary getLibrary(AbstractCompiler compiler, File libraryPath, File pathOfClosureBase) {
    JSLibraryKey key = new JSLibraryKey(libraryPath, pathOfClosureBase);
    JSLibrary library = libraries.get(key);
    if (library == null) {
        library = new JSLibrary(libraryPath, pathOfClosureBase, getCacheSettings());
        library.setUnits(compiler);
        libraries.put(key, library);
    }
    return library;
}
Also used : JSLibrary(net.vtst.ow.closure.compiler.deps.JSLibrary)

Aggregations

JSLibrary (net.vtst.ow.closure.compiler.deps.JSLibrary)2