Package org.bladerunnerjs.model.exception.command

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


    }
    catch (ModelOperationException e) {
      throw new CommandOperationException(e);
    }
    catch (InvalidBundlableNodeException e) {
      throw new CommandArgumentsException(e, this);
    }
    return 0;
  }
View Full Code Here


    String banner = parsedArgs.getString("banner");
    String[] bannerExtensions = parsedArgs.getString("bannerExtensions").split(",");
    String targetPath = parsedArgs.getString("target");

    App app = brjs.app(appName);
    if(!app.dirExists()) throw new CommandArgumentsException("Could not find application '" + appName + "'", this);
   
    File targetDir;
    if (targetPath.equals("")) {
      targetDir = brjs.storageDir("exported-apps");
    } else {
View Full Code Here

   
    try {
      aspect.populate();
    }
    catch(InvalidNameException e) {
      throw new CommandArgumentsException(e, this);
    }
    catch(ModelUpdateException e) {
      throw new CommandOperationException("Cannot create aspect '" + aspect.dir().getPath() + "'", e);
    }
   
View Full Code Here

    JSAPResult config = argsParser.parse(args);

    boolean success = true;
    if (!config.success())
    {
      throw new CommandArgumentsException("Invalid arguments provided.", testCommand);
    }
    else
    {
      TestRunner testRunner;
     
View Full Code Here

    boolean showAllDependencies = parsedArgs.getBoolean("all");
   
    App app = brjs.app(appName);
    Aspect aspect = app.aspect(aspectName);
   
    if(isRequirePrefix && isAlias) throw new CommandArgumentsException("The --prefix and --alias switches can't both be used at the same time", this);
    if(!app.dirExists()) throw new NodeDoesNotExistException(app, this);
    if(!aspect.dirExists()) throw new NodeDoesNotExistException(aspect, this);
   
    try {
      if(isRequirePrefix) {
View Full Code Here

TOP

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

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.