Search in sources :

Example 1 with DynamicResourceManager

use of org.nustaq.kontraktor.webapp.javascript.DynamicResourceManager in project kontraktor by RuedigerMoeller.

the class KontraktorServlet method createDependencyResolver.

protected DynamicResourceManager createDependencyResolver(BldResPath dr) {
    DynamicResourceManager drm = new DynamicResourceManager(new File(realRoot), !dr.isCacheAggregates(), dr.getUrlPath(), dr.isMinify(), dr.getBaseDir(), dr.getResourcePath());
    HtmlImportShim shim = new HtmlImportShim(dr.getUrlPath());
    shim.minify(dr.isMinify()).inline(dr.isInline()).stripComments(dr.isStripComments());
    drm.setImportShim(shim);
    drm.setTranspilerMap(dr.getTranspilers());
    return drm;
}
Also used : DynamicResourceManager(org.nustaq.kontraktor.webapp.javascript.DynamicResourceManager) HtmlImportShim(org.nustaq.kontraktor.webapp.javascript.HtmlImportShim) File(java.io.File)

Aggregations

File (java.io.File)1 DynamicResourceManager (org.nustaq.kontraktor.webapp.javascript.DynamicResourceManager)1 HtmlImportShim (org.nustaq.kontraktor.webapp.javascript.HtmlImportShim)1