aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-04-08 11:21:40 -0700
committerColin Cross <ccross@android.com>2015-04-08 15:19:30 -0700
commitfce532760f1d22c23df764aefbd3e08592c76105 (patch)
treef11f10e878c4634e489543625989187b750afb99 /java
parent1332b0035caf416d4d9b275e6bfead48fe0b9cac (diff)
downloadbuild_soong-fce532760f1d22c23df764aefbd3e08592c76105.tar.gz
build_soong-fce532760f1d22c23df764aefbd3e08592c76105.tar.bz2
build_soong-fce532760f1d22c23df764aefbd3e08592c76105.zip
Support subtracting sources from globs
Support -file or -path/glob in file lists that contain globs to subtract files from the resulting glob. Also move source file prefixing and handling into a common function. Change-Id: Ib6d74ce22f53cae7348c4ba35b779976d90359a6
Diffstat (limited to 'java')
-rw-r--r--java/java.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/java/java.go b/java/java.go
index 8750dbf8..c6041861 100644
--- a/java/java.go
+++ b/java/java.go
@@ -24,7 +24,6 @@ import (
"strings"
"github.com/google/blueprint"
- "github.com/google/blueprint/pathtools"
"android/soong/common"
)
@@ -193,9 +192,7 @@ func (j *javaBase) GenerateJavaBuildActions(ctx common.AndroidModuleContext) {
var javacDeps []string
- srcFiles := j.properties.Srcs
- srcFiles = pathtools.PrefixPaths(srcFiles, common.ModuleSrcDir(ctx))
- srcFiles = common.ExpandGlobs(ctx, srcFiles)
+ srcFiles := common.ExpandSources(ctx, j.properties.Srcs)
classpath, bootClasspath, classJarSpecs, resourceJarSpecs := j.collectDeps(ctx)