Rename JavaLibraryNameFromText function
The "FromText" suffix is an implementation detail. Having this suffix in the name can be also confusing because in certain settings (e.g. when not run with --build-stub-from-text) it returns the name of the stub module generated from source files Test: go build ./java Change-Id: I68678ddfaa3d68c8e1a945632e7512b5de33d9af
This commit is contained in:
@@ -87,13 +87,13 @@ func (k SdkKind) String() string {
|
||||
// JavaLibraryName returns the soong module containing the Java APIs of that API surface.
|
||||
func (k SdkKind) JavaLibraryName(c Config) string {
|
||||
name := k.defaultJavaLibraryName()
|
||||
return JavaLibraryNameFromText(c, name)
|
||||
return JavaApiLibraryName(c, name)
|
||||
}
|
||||
|
||||
// JavaLibraryNameFromText returns the name of .txt equivalent of a java_library, but does
|
||||
// JavaApiLibraryName returns the name of .txt equivalent of a java_library, but does
|
||||
// not check if either module exists.
|
||||
// TODO: Return .txt (single-tree or multi-tree equivalents) based on config
|
||||
func JavaLibraryNameFromText(c Config, name string) string {
|
||||
func JavaApiLibraryName(c Config, name string) string {
|
||||
if c.BuildFromTextStub() {
|
||||
return name + ".from-text"
|
||||
}
|
||||
|
Reference in New Issue
Block a user