aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-02-08 12:48:39 -0800
committerColin Cross <ccross@android.com>2018-02-20 17:54:00 +0000
commitf7eac7a2ac71296333075a6b0b0022e476f2de10 (patch)
tree99c382166377d1e8002f2b9a1fc14cb52d66545c /java
parent5789ca9f28eb0580084be24cf27c34c66d1f5bdf (diff)
downloadbuild_soong-f7eac7a2ac71296333075a6b0b0022e476f2de10.tar.gz
build_soong-f7eac7a2ac71296333075a6b0b0022e476f2de10.tar.bz2
build_soong-f7eac7a2ac71296333075a6b0b0022e476f2de10.zip
Fix comment on how java rules handle unknown output files
Test: none Change-Id: I985e7961c87dd145d6eb2bd94cb8bdc43becc360
Diffstat (limited to 'java')
-rw-r--r--java/builder.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/builder.go b/java/builder.go
index 9e380655..46de4f73 100644
--- a/java/builder.go
+++ b/java/builder.go
@@ -35,9 +35,9 @@ var (
// Compiling java is not conducive to proper dependency tracking. The path-matches-class-name
// requirement leads to unpredictable generated source file names, and a single .java file
// will get compiled into multiple .class files if it contains inner classes. To work around
- // this, all java rules write into separate directories and then a post-processing step lists
- // the files in the the directory into a list file that later rules depend on (and sometimes
- // read from directly using @<listfile>)
+ // this, all java rules write into separate directories and then are combined into a .jar file
+ // (if the rule produces .class files) or a .srcjar file (if the rule produces .java files).
+ // .srcjar files are unzipped into a temporary directory when compiled with javac.
javac = pctx.AndroidGomaStaticRule("javac",
blueprint.RuleParams{
Command: `rm -rf "$outDir" "$annoDir" "$srcJarDir" && mkdir -p "$outDir" "$annoDir" "$srcJarDir" && ` +