Package org.springframework.boot.loader.tools

Examples of org.springframework.boot.loader.tools.Library


            if (root.isArchive()) {

              File rootFile = new File(root.getPath()
                  .toOSString());
              if (rootFile.exists()) {
                callBack.library(new Library(rootFile,
                    LibraryScope.COMPILE));
              }
            }
          }
        }
View Full Code Here


        if (duplicates.contains(name)) {
          this.log.debug("Duplicate found: " + name);
          name = artifact.getGroupId() + "-" + name;
          this.log.debug("Renamed to: " + name);
        }
        callback.library(new Library(name, artifact.getFile(), scope,
            isUnpackRequired(artifact)));
      }
    }
  }
View Full Code Here

    }

    private void addDependency(JarWriter writer, File dependency)
        throws FileNotFoundException, IOException {
      if (dependency.isFile()) {
        writer.writeNestedLibrary("lib/", new Library(dependency,
            LibraryScope.COMPILE));
      }
    }
View Full Code Here

  public void callbackForJars() throws Exception {
    given(this.artifact.getType()).willReturn("jar");
    given(this.artifact.getScope()).willReturn("compile");
    this.libs.doWithLibraries(this.callback);
    verify(this.callback).library(this.libraryCaptor.capture());
    Library library = this.libraryCaptor.getValue();
    assertThat(library.getFile(), equalTo(this.file));
    assertThat(library.getScope(), equalTo(LibraryScope.COMPILE));
    assertThat(library.isUnpackRequired(), equalTo(false));
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.loader.tools.Library

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.