Merge "Don't generate dex jars for host modules" am: d685385c6b am: 71a91f36e3 am: f8da801672
am: f4c07c1cb3
Change-Id: I902434d9be6d39bc299042dea3acc64252dccfdd
diff --git a/java/java.go b/java/java.go
index 326d278..43f97ac 100644
--- a/java/java.go
+++ b/java/java.go
@@ -466,7 +466,8 @@
j.classpathFile = outputFile
- if j.deviceProperties.Dex && len(srcFiles) > 0 {
+ // TODO(ccross): handle hostdex
+ if ctx.Device() && len(srcFiles) > 0 {
dxFlags := j.deviceProperties.Dxflags
if false /* emma enabled */ {
// If you instrument class files that have local variable debug information in