Java源码示例:com.android.builder.model.Library

示例1
public void dispose(File inOutConfigration) {
    File proGuardPercentFile = new File(inOutConfigration.getParentFile(),
            "proGuardPercent.properties");
    try (PrintWriter pw = new PrintWriter(new BufferedOutputStream(new FileOutputStream(
            proGuardPercentFile)))) {
        for (Map.Entry<File, Double> entry : getProGuardPercentMap(inOutConfigration)
                .entrySet()) {
            final File key = entry.getKey();
            final Double value = entry.getValue();
            Library library = fileLibraryMap.get(key);
            if (library == null) {
                pw.print(library.getResolvedCoordinates());
            } else {
                pw.print(key);
            }
            pw.print(": ");
            printPercent(pw, value);
            pw.println();
        }
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}
 
示例2
public ArtifactData(Library library, Project project) {
    this.library = library;
    this.project = project;
    this.mavenLocation = makeMavenLocation();
    this.javadocFileName = makeJavadocFileName();
    this.srcFileName = makeSrcFileName();
    this.pomFileName = makePomFileName();
    analyzeArtifact();
}
 
示例3
public Library getLibrary() {
    return library;
}
 
示例4
/**
 * Get library
 *
 * @return
 */
public Library getLibrary() {
    return library;
}