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;
}
Aggregations