Package dtool.dub.DubBundle

Examples of dtool.dub.DubBundle.DubBundleException


  public CommonDubParser() {
  }
 
  protected void putError(String message) {
    if(dubError == null) {
      dubError = new DubBundleException(message);
    }
  }
View Full Code Here


      readData(jsonParser);
     
      jsonParser.consumeExpected(JsonToken.END_DOCUMENT);
      assertTrue(jsonParser.peek() == JsonToken.END_DOCUMENT);
    } catch (IOException e) {
      throw new DubBundleException(e);
    }
  }
View Full Code Here

    File jsonLocation = bundlePath.getManifestFilePath().toFile();
   
    try {
      source = readStringFromFile(jsonLocation);
    } catch (IOException e) {
      throw new DubBundleException(e);
    }
    parseFromSource(source);
  }
View Full Code Here

    if(unresolvedDubBundle.hasErrors()) {
      // Check that we did not attempt to call dub describe on a manifest with errors
      assertTrue(unresolvedDubBundle == dubBundle);
    }
   
    DubBundleException error = dubBundle.getError();
    if(error != null) {
      expMainBundle.checkBundleDescription(unresolvedDubBundle, false);
      testDubContainerUnresolved(project, expMainBundle, true);
     
      IMarker errorMarker = assertNotNull(getDubErrorMarker(project));
      assertTrue(errorMarker.getAttribute(IMarker.MESSAGE, "").startsWith(error.getMessage()));
      assertEquals(errorMarker.getAttribute(IMarker.SEVERITY), IMarker.SEVERITY_ERROR);
     
    } else {
      checkFullyResolvedCode(project, dubBundle, expMainBundle);
    }
View Full Code Here

            return;
          }
          deleteDubMarkers(project);
         
          if(unresolvedDescription.hasErrors() != false) {
            DubBundleException error = unresolvedDescription.getError();
            setDubErrorMarker(project, error.getMessage(), error.getCause());
            return; // only run dub describe if unresolved description had no errors
          }
         
        }
      }, project, 0, null);
View Full Code Here

    return null;
  }
 
  protected void setProjectDubError(IProject project, String message, Throwable exception) throws CoreException {
   
    DubBundleException dubError = new DubBundleException(message, exception);
   
    DubBundle main = unresolvedDescription.getMainBundle();
    DubBundleDescription bundleDesc = new DubBundleDescription(main, dubError);
    workspaceModelManager.model.addProjectInfo(project, bundleDesc, unresolvedProjectInfo.compilerInstall);
   
View Full Code Here

TOP

Related Classes of dtool.dub.DubBundle.DubBundleException

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.