Search in sources :

Example 1 with JavaSourcePackage

use of com.google.devtools.build.lib.ideinfo.androidstudio.PackageManifestOuterClass.JavaSourcePackage in project bazel by bazelbuild.

the class JarFilter method parsePackageManifest.

@VisibleForTesting
static List<String> parsePackageManifest(PackageManifest packageManifest) {
    List<String> result = Lists.newArrayList();
    for (JavaSourcePackage javaSourcePackage : packageManifest.getSourcesList()) {
        ArtifactLocation artifactLocation = javaSourcePackage.getArtifactLocation();
        String packageString = javaSourcePackage.getPackageString();
        String archiveFileNamePrefix = getArchiveFileNamePrefix(artifactLocation.getRelativePath(), packageString);
        result.add(archiveFileNamePrefix);
    }
    return result;
}
Also used : ArtifactLocation(com.google.devtools.build.lib.ideinfo.androidstudio.PackageManifestOuterClass.ArtifactLocation) JavaSourcePackage(com.google.devtools.build.lib.ideinfo.androidstudio.PackageManifestOuterClass.JavaSourcePackage) VisibleForTesting(com.google.common.annotations.VisibleForTesting)

Aggregations

VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 ArtifactLocation (com.google.devtools.build.lib.ideinfo.androidstudio.PackageManifestOuterClass.ArtifactLocation)1 JavaSourcePackage (com.google.devtools.build.lib.ideinfo.androidstudio.PackageManifestOuterClass.JavaSourcePackage)1