Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18ce2342 authored by Nan Zhang's avatar Nan Zhang Committed by android-build-merger
Browse files

Merge "Add property to enable adding tools.jar to bootclasspath." am: 97754359

am: 0965552a

Change-Id: I8a93193a79bd4f099621cfd875020f9119d9738f
parents b6b386bf 0965552a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -116,6 +116,9 @@ type CompilerProperties struct {
	// The number of Java source entries each Javac instance can process
	Javac_shard_size *int64

	// Add host jdk tools.jar to bootclasspath
	Use_tools_jar *bool

	Openjdk9 struct {
		// List of source files that should only be used when passing -source 1.9
		Srcs []string
@@ -694,6 +697,10 @@ func (j *Module) collectBuilderFlags(ctx android.ModuleContext, deps deps) javaB
		flags.bootClasspath = append(flags.bootClasspath,
			android.PathForSource(ctx, java8Home, "jre/lib/jce.jar"),
			android.PathForSource(ctx, java8Home, "jre/lib/rt.jar"))
		if Bool(j.properties.Use_tools_jar) {
			flags.bootClasspath = append(flags.bootClasspath,
				android.PathForSource(ctx, java8Home, "lib/tools.jar"))
		}
	}

	// systemModules