Loading java/droidstubs.go +6 −6 Original line number Diff line number Diff line Loading @@ -516,12 +516,12 @@ func metalavaCmd(ctx android.ModuleContext, rule *android.RuleBuilder, javaVersi FlagWithRspFileInputList("@", android.PathForModuleOut(ctx, "metalava.rsp"), srcs). FlagWithInput("@", srcJarList) if len(bootclasspath) > 0 { cmd.FlagWithInputList("-bootclasspath ", bootclasspath.Paths(), ":") } if len(classpath) > 0 { cmd.FlagWithInputList("-classpath ", classpath.Paths(), ":") // Metalava does not differentiate between bootclasspath and classpath and has not done so for // years, so it is unlikely to change any time soon. combinedPaths := append(([]android.Path)(nil), bootclasspath.Paths()...) combinedPaths = append(combinedPaths, classpath.Paths()...) if len(combinedPaths) > 0 { cmd.FlagWithInputList("--classpath ", combinedPaths, ":") } cmd.Flag("--color"). Loading Loading
java/droidstubs.go +6 −6 Original line number Diff line number Diff line Loading @@ -516,12 +516,12 @@ func metalavaCmd(ctx android.ModuleContext, rule *android.RuleBuilder, javaVersi FlagWithRspFileInputList("@", android.PathForModuleOut(ctx, "metalava.rsp"), srcs). FlagWithInput("@", srcJarList) if len(bootclasspath) > 0 { cmd.FlagWithInputList("-bootclasspath ", bootclasspath.Paths(), ":") } if len(classpath) > 0 { cmd.FlagWithInputList("-classpath ", classpath.Paths(), ":") // Metalava does not differentiate between bootclasspath and classpath and has not done so for // years, so it is unlikely to change any time soon. combinedPaths := append(([]android.Path)(nil), bootclasspath.Paths()...) combinedPaths = append(combinedPaths, classpath.Paths()...) if len(combinedPaths) > 0 { cmd.FlagWithInputList("--classpath ", combinedPaths, ":") } cmd.Flag("--color"). Loading