Package org.bladerunnerjs.model

Examples of org.bladerunnerjs.model.ResourcesAssetLocation


    AssetLocation assetLocation;
    File dir = assetContainer.file(dirPath);
   
    switch(dirPath) {
      case "resources":
        assetLocation = new ResourcesAssetLocation(assetContainer.root(), assetContainer, dir, assetLocationsMap.get("."));
        break;
     
      case "tests":
        assetLocation = new TestSourceAssetLocation(assetContainer.root(), assetContainer, dir, assetLocationsMap.get("."), assetLocationsMap.get("resources"), assetLocationsMap.get("src-test"));
        break;
View Full Code Here


     
      case "resources":
        if (assetContainer instanceof Blade) {
          assetLocation = new BladeResourcesAssetLocation(assetContainer.root(), assetContainer, dir, assetLocationsMap.get("."));
        } else {
          assetLocation = new ResourcesAssetLocation(assetContainer.root(), assetContainer, dir, assetLocationsMap.get("."));
        }
        break;
     
      case "src":
        assetLocation = new SourceAssetLocation(assetContainer.root(), assetContainer, dir, assetLocationsMap.get("."), assetLocationsMap.get("resources"));
        break;
     
      case "src-test":
        assetLocation = new SourceAssetLocation(assetContainer.root(), assetContainer, dir, assetLocationsMap.get("."));
        break;
     
      default:
        if(dirPath.startsWith("themes")){
         
          String themeName = dirPath.substring(7);
          assetLocation = new ResourcesAssetLocation(assetContainer.root(), assetContainer, dir, assetLocationsMap.get("."), themeName);
          break;
        }
       
        String parentLocationPath = RelativePathUtility.get(brjs.getFileInfoAccessor(), assetContainer.dir(), dir.getParentFile());
        AssetLocation parentAssetLocation = assetLocationsMap.get(parentLocationPath);
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.model.ResourcesAssetLocation

Copyright © 2018 www.massapicom. 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.