Package org.webjars

Examples of org.webjars.WebJarAssetLocator.listAssets()


        Boolean strip = (Boolean)webJar.get("stripVersion");

        //
        WebJarAssetLocator locator = new WebJarAssetLocator();
        String folderPath = "/" + id + "/" + version;
        Set<String> assetsPaths = locator.listAssets(folderPath);
        log.info("Webjars " + webJar + " resolved assets " + assetsPaths + " from " + folderPath);
        for (String assetPath : assetsPaths) {
          URL assetURL = WebJarAssetLocator.class.getClassLoader().getResource(assetPath);
          if (assetURL != null) {
            String dst = assetPath.substring(WebJarAssetLocator.WEBJARS_PATH_PREFIX.length() + 1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.