Examples of dir()


Examples of org.bladerunnerjs.model.Aspect.dir()

    catch(ModelUpdateException e) {
      throw new CommandOperationException("Cannot create aspect '" + aspect.dir().getPath() + "'", e);
    }
   
    logger.println(Messages.ASPECT_CREATE_SUCCESS_CONSOLE_MSG, aspectName);
    logger.println(Messages.ASPECT_PATH_CONSOLE_MSG, aspect.dir().getPath());
   
    return 0;
  }
}
View Full Code Here

Examples of org.bladerunnerjs.model.Asset.dir()

                  assetLocation.root().logger(this.getClass()).debug("creating new asset for the path '%s'",
                      createdAsset.getAssetPath());
                  String assetPrimaryRequirePath = createdAsset.getPrimaryRequirePath();
                 
                  if (createdAsset instanceof SourceModule && createdAsset.assetLocation().assetContainer().isNamespaceEnforced()) {
                    String relativePathFromAssetContainer = RelativePathUtility.get(assetLocation.root().getFileInfoAccessor(), createdAsset.assetLocation().assetContainer().dir(), createdAsset.dir());
                    String relativeRequirePathPathFromAssetContainer = StringUtils.substringAfter(relativePathFromAssetContainer, "/"); // strip of 'src/' at the start of the relative path
                    String appRequirePrefix = assetLocation.assetContainer().app().getRequirePrefix();
                    String createdAssetContainerRequirePrefix = createdAsset.assetLocation().assetContainer().requirePrefix();
                    if (relativeRequirePathPathFromAssetContainer.startsWith(appRequirePrefix) && !relativeRequirePathPathFromAssetContainer.startsWith(createdAssetContainerRequirePrefix)) {
                      InvalidRequirePathException wrappedRequirePathException = new InvalidRequirePathException(
View Full Code Here

Examples of org.bladerunnerjs.model.AssetContainer.dir()

        if (assetLocation instanceof ThemedAssetLocation && assetLocationParentDir.getName().equals("themes")) {
          ThemedAssetLocation theme = (ThemedAssetLocation) assetLocation;
          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), theme.dir(), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.ASPECT_THEME_REQUEST, ((Aspect) assetContainer).getName(), theme.dir().getName(), resourcePath);
        } else {
          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), assetContainer.dir(), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.ASPECT_RESOURCE_REQUEST, aspect.getName(), resourcePath);
        }
      }
      else if(assetContainer instanceof Bladeset) {
        Bladeset bladeset = (Bladeset) assetContainer;
View Full Code Here

Examples of org.bladerunnerjs.model.AssetLocation.dir()

      assetContainer = (AssetContainer) firstAncestorNode;
      assetLocation = assetContainer.assetLocation(".");
    }
    String targetPath = null;
   
    File assetLocationParentDir = assetLocation.dir().getParentFile();
    BRJS root = assetContainer.root();
    try {
      if(assetContainer instanceof Aspect) {
        Aspect aspect = (Aspect) assetContainer;
        if (assetLocation instanceof ThemedAssetLocation && assetLocationParentDir.getName().equals("themes")) {
View Full Code Here

Examples of org.bladerunnerjs.model.AssetLocation.dir()

 
  public VerifierChainer sourceModuleHasAssetLocation(String sourceModulePath, String assetLocationPath) throws Exception {
    SourceModule sourceModule = (SourceModule)aspect.getLinkedAsset(sourceModulePath);
    AssetLocation assetLocation = aspect.assetLocation(assetLocationPath);
   
    assertEquals("Source module '" + sourceModulePath + "' did not have the asset location '" + assetLocationPath + "'.", assetLocation.dir().getPath(), sourceModule.assetLocation().dir().getPath());
   
    return verifierChainer;
  }
 
  public VerifierChainer assetLocationHasNoDependencies(String assetLocation) {
View Full Code Here

Examples of org.bladerunnerjs.model.Blade.dir()

            ThemedAssetLocation theme = (ThemedAssetLocation) assetLocation;
            String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), theme.dir(), imageFile);
           
            targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.BLADE_THEME_REQUEST, bladeset.getName(), blade.getName(), theme.dir().getName(), resourcePath);
        } else {
          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), blade.dir(), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.BLADE_RESOURCE_REQUEST, bladeset.getName(), blade.getName(), resourcePath);
        }
      }
      else if(assetContainer instanceof Workbench) {
        Workbench workbench = (Workbench) assetContainer;
View Full Code Here

Examples of org.bladerunnerjs.model.Blade.dir()

    }
    catch(InvalidNameException e) {
      throw new CommandArgumentsException(e, this);
    }
    catch(ModelUpdateException e) {
      throw new CommandOperationException("Cannot create blade '" + blade.dir().getPath() + "'", e);
    }
   
    logger.println(Messages.BLADE_CREATE_SUCCESS_CONSOLE_MSG, bladeName);
    logger.println(Messages.BLADE_PATH_CONSOLE_MSG, blade.dir().getPath());
   
View Full Code Here

Examples of org.bladerunnerjs.model.Blade.dir()

    catch(ModelUpdateException e) {
      throw new CommandOperationException("Cannot create blade '" + blade.dir().getPath() + "'", e);
    }
   
    logger.println(Messages.BLADE_CREATE_SUCCESS_CONSOLE_MSG, bladeName);
    logger.println(Messages.BLADE_PATH_CONSOLE_MSG, blade.dir().getPath());
   
    return 0;
  }
 
  private Bladeset getBladeset(App app, String bladesetName) throws CommandOperationException
View Full Code Here

Examples of org.bladerunnerjs.model.Bladeset.dir()

    }
    catch(InvalidNameException e) {
      throw new CommandArgumentsException(e, this);
    }
    catch(ModelUpdateException e) {
      throw new CommandOperationException("Cannot create bladeset '" + bladeset.dir().getPath() + "'", e);
    }
   
    logger.println(Messages.BLADESET_CREATE_SUCCESS_CONSOLE_MSG, bladesetName);
    logger.println(Messages.BLADESET_PATH_CONSOLE_MSG, bladeset.dir().getPath());
   
View Full Code Here

Examples of org.bladerunnerjs.model.Bladeset.dir()

            ThemedAssetLocation theme = (ThemedAssetLocation) assetLocation;
            String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), theme.dir(), imageFile);
           
            targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.BLADESET_THEME_REQUEST, bladeset.getName(), theme.dir().getName(), resourcePath);
        } else {
          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), bladeset.dir(), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.BLADESET_RESOURCE_REQUEST, bladeset.getName(), resourcePath);
        }
      }
      else if(assetContainer instanceof Blade) {
        Blade blade = (Blade) assetContainer;
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.