diff options
author | Colin Cross <ccross@android.com> | 2017-09-27 18:03:17 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-09-29 14:02:22 -0700 |
commit | 8649b2653cdcb147c67a0c523967ca76689875bb (patch) | |
tree | 27bf8dae6c2e3544e29a46dd79265072d32dc1f9 /java/java.go | |
parent | 59f1bb66eaaa9e189ba4764336d79f88efb5c0f7 (diff) |
Use pre-desugar classes in classpath
Follow the make change in I87aee34940937dbde33a977f55d1faf2c8054561
to use classes before desugar in the classpath.
Test: java_test.go
Change-Id: I1054f4aea1eb349b6f687e1af0adb92a944fd8c5
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/java/java.go b/java/java.go index f9193c557..06ba44db8 100644 --- a/java/java.go +++ b/java/java.go @@ -449,12 +449,12 @@ func (j *Module) compile(ctx android.ModuleContext) { manifest := android.OptionalPathForModuleSrc(ctx, j.properties.Manifest) // Combine the classes built from sources, any manifests, and any static libraries into - // classes-combined.jar. If there is only one input jar this step will be skipped. + // classes.jar. If there is only one input jar this step will be skipped. outputFile := TransformJarsToJar(ctx, "classes.jar", jars, manifest, false) if j.properties.Jarjar_rules != nil { jarjar_rules := android.PathForModuleSrc(ctx, *j.properties.Jarjar_rules) - // Transform classes-combined.jar into classes-jarjar.jar + // Transform classes.jar into classes-jarjar.jar outputFile = TransformJarJar(ctx, outputFile, jarjar_rules) if ctx.Failed() { return @@ -517,10 +517,6 @@ func (j *Module) compile(ctx android.ModuleContext) { return } - // TODO(ccross): For now, use the desugared jar as the classpath file. Eventually this - // might cause problems because desugar wants non-desugared jars in its class path. - j.classpathFile = desugarJar - // Compile classes.jar into classes.dex dexJarFile := TransformClassesJarToDexJar(ctx, desugarJar, flags) if ctx.Failed() { |