Add some friendly error messages for java_sdk_library. am: 8959e149b7
am: fc3f21e609
Change-Id: I43e16f42be1e13eff69035cd3862dacce7f95b43
This commit is contained in:
commit
212f52008e
1 changed files with 7 additions and 0 deletions
|
@ -485,6 +485,13 @@ func javaSdkLibraries(config android.Config) *[]string {
|
|||
// once for public API level and once for system API level
|
||||
func sdkLibraryMutator(mctx android.TopDownMutatorContext) {
|
||||
if module, ok := mctx.Module().(*sdkLibrary); ok {
|
||||
if module.properties.Srcs == nil {
|
||||
mctx.PropertyErrorf("srcs", "java_sdk_library must specify srcs")
|
||||
}
|
||||
if module.properties.Api_packages == nil {
|
||||
mctx.PropertyErrorf("api_packages", "java_sdk_library must specify api_packages")
|
||||
}
|
||||
|
||||
// for public API stubs
|
||||
module.createStubsLibrary(mctx, apiScopePublic)
|
||||
module.createDocs(mctx, apiScopePublic)
|
||||
|
|
Loading…
Reference in a new issue