Package org.bladerunnerjs.model.exception.command

Examples of org.bladerunnerjs.model.exception.command.NodeDoesNotExistException


   
    App app = brjs.app(appName);
    Bladeset bladeset = getBladeset(app, bladesetName);
    Blade blade = bladeset.blade(bladeName);
   
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
    if(!bladeset.dirExists()) throw new NodeDoesNotExistException(bladeset, this);
    if(blade.dirExists()) throw new NodeAlreadyExistsException(blade, this);
   
    try {
      blade.populate();
    }
View Full Code Here


           String exceptionMsg = String.format(Messages.INVALID_LIB_TYPE_MESSAGE, libraryType, StringUtils.join(SupportedLibraryType.values(), ", ") );
           throw new CommandArgumentsException(exceptionMsg, this);
        }
   
    App app = brjs.app(appName);
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
   
    JsLib library = app.appJsLib(libraryName);
    if (library.dirExists()) throw new NodeAlreadyExistsException(library, this);
   
    switch ( createLibraryType ) {
View Full Code Here

      throw new CommandArgumentsException(e, this);
    }
   
    Bladeset targetBladeset = targetApp.bladeset(targetBladesetName);
   
    if (!sourceApp.dirExists()) throw new NodeDoesNotExistException(sourceApp, this);
    if (!sourceBladeset.dirExists()) throw new NodeDoesNotExistException(sourceBladeset, this);
    if (!targetApp.dirExists()) throw new NodeDoesNotExistException(targetApp, this);
    if (targetBladeset.dirExists()) throw new NodeAlreadyExistsException(targetBladeset, this);
   
    try {
      NodeImporter.importBladeset(sourceBladeset.dir(), sourceApp.appConf().getRequirePrefix(), sourceApp.appConf().getRequirePrefix() + "/" + sourceBladesetName, targetBladeset);
     
View Full Code Here

   
    Path appPath = Paths.get(argPath);
    String matchLocation = "";
       
    app = brjs.app(appPath.getName(0).toString());
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
   
    int pathCount = appPath.getNameCount();
   
    if(pathCount > 1)
    {
View Full Code Here

    boolean showAllDependencies = parsedArgs.getBoolean("all");
   
    App app = brjs.app(appName);
    Aspect aspect = app.aspect(aspectName);
   
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
    if(!aspect.dirExists()) throw new NodeDoesNotExistException(aspect, this);
   
    try {
      logger.println(DependencyGraphReportBuilder.createReport(aspect, showAllDependencies)+"\n");
    }
    catch (ModelOperationException e) {
View Full Code Here

        }
      }
      targetDir.mkdirs();
    }
   
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
    if(!targetDir.isDirectory()) throw new DirectoryDoesNotExistCommandException(targetDirPath, this);
   
    try {
      if (warExport) {
        if(warExportFile.exists()) throw new DirectoryAlreadyExistsCommandException(warExportFile.getPath(), this);
View Full Code Here

    String bladesetName = parsedArgs.getString("new-bladeset-name");
   
    App app = brjs.app(appName);
    Bladeset bladeset = app.bladeset(bladesetName);
   
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
    if(bladeset.dirExists()) throw new NodeAlreadyExistsException(bladeset, this);
   
    try {
      bladeset.populate();
    }
View Full Code Here

    String aspectName = parsedArgs.getString("new-aspect-name");
   
    App app = brjs.app(appName);
    Aspect aspect = app.aspect(aspectName);
   
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
    if(aspect.dirExists()) throw new NodeAlreadyExistsException(aspect, this);
   
    try {
      aspect.populate();
    }
View Full Code Here

    App app = brjs.app(appName);
    Bladeset bladeset = app.bladeset(bladesetName);
    Blade blade = bladeset.blade(bladeName);
    Workbench workbench = blade.workbench();
   
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
    if(!bladeset.dirExists()) throw new NodeDoesNotExistException(bladeset, this);
    if(!blade.dirExists()) throw new NodeDoesNotExistException(blade, this);
    if(!workbench.dirExists()) throw new NodeDoesNotExistException(workbench, "workbench", this);
   
    try {
      logger.println(DependencyGraphReportBuilder.createReport(workbench, showAllDependencies));
    }
    catch (ModelOperationException e) {
View Full Code Here

  @Override
  protected int doCommand(JSAPResult parsedArgs) throws CommandArgumentsException, CommandOperationException {
    String appName = parsedArgs.getString("app-name");
    App app = brjs.app(appName);
   
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
   
    File outputDir = app.storageDir(APP_STORAGE_DIR_NAME);
   
    try {
      if (outputDir.isDirectory()) {
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.model.exception.command.NodeDoesNotExistException

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.