Package org.springframework.boot.dependency.tools

Examples of org.springframework.boot.dependency.tools.PropertiesFileDependencies


    URI[] uris = Grape.getInstance().resolve(null,
        metadataDependencies.toArray(new Map[metadataDependencies.size()]));
    List<Dependencies> managedDependencies = new ArrayList<Dependencies>(uris.length);
    for (URI uri : uris) {
      try {
        managedDependencies.add(new PropertiesFileDependencies(uri.toURL()
            .openStream()));
      }
      catch (IOException ex) {
        throw new IllegalStateException("Failed to parse '" + uris[0]
            + "'. Is it a valid properties file?");
View Full Code Here


  private Dependencies getPropertiesFileManagedDependencies(File file) {
    if (!file.getName().toLowerCase().endsWith(".properties")) {
      throw new IllegalStateException(file + " is not a version property file");
    }
    try {
      return new PropertiesFileDependencies(new FileInputStream(file));
    }
    catch (IOException ex) {
      throw new IllegalStateException(ex);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.dependency.tools.PropertiesFileDependencies

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.