Examples of dirExists()


Examples of org.bladerunnerjs.model.DirNode.dirExists()

  private File getResultsDir() throws CommandOperationException
  {
    DirNode testResults = ThreadSafeStaticBRJSAccessor.root.testResults();
   
    if(!testResults.dirExists())
    {
      try
      {
        testResults.create();
      }
View Full Code Here

Examples of org.bladerunnerjs.model.JsLib.dirExists()

   
    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 ) {
      case br:
        break;
      case thirdparty:
View Full Code Here

Examples of org.bladerunnerjs.model.JsLib.dirExists()

    try
    {
      for (String dependentLibName : manifest.getDepends())
      {
        JsLib dependentLib = bundlableNode.app().jsLib(dependentLibName);
        if (!dependentLib.dirExists())
        {
          throw new ConfigException(String.format("Library '%s' depends on the library '%s', which doesn't exist.", dir().getName(), dependentLibName)) ;
        }
        dependentLibs.addAll(dependentLib.linkedAssets());
      }
View Full Code Here

Examples of org.bladerunnerjs.model.Workbench.dirExists()

    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

Examples of org.bladerunnerjs.model.engine.Node.dirExists()

  @Test
  public void dirExistsShouldReturnTrueIfTheDirectoryExists()
  {
    Node node = new TestNode(mockRootNode, null, new File(TEST_DIR));
   
    assertTrue(node.dirExists());
  }
 
  @Test
  public void dirExistsShouldReturnFalseIfTheDirectoryDoesNotExist()
  {
View Full Code Here

Examples of org.bladerunnerjs.model.engine.Node.dirExists()

  @Test
  public void dirExistsShouldReturnFalseIfTheDirectoryDoesNotExist()
  {
    Node node = new TestNode(mockRootNode, null, new File(TEST_DIR, "non-existent-directory"));
   
    assertFalse(node.dirExists());
  }
 
  @Test
  public void dirExistsShouldNotThrowAnExceptionIfANullDirWasProvided()
  {
View Full Code Here

Examples of org.bladerunnerjs.model.engine.Node.dirExists()

  @Test
  public void dirExistsShouldNotThrowAnExceptionIfANullDirWasProvided()
  {
    Node node = new TestNode(mockRootNode, null, null);
   
    assertFalse(node.dirExists());
  }
 
  @Test
  public void containsFileShouldNotThrowAnExceptionIfDirIsNull()
  {
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.