public interface JavaPackageFinder
Modifier and Type | Method and Description |
---|---|
String |
findJavaPackage(BuildTarget buildTarget) |
String |
findJavaPackage(Path pathRelativeToProjectRoot) |
Path |
findJavaPackageFolder(Path pathRelativeToProjectRoot)
Given the relative path to a file under the project root, return the Java package with which
the file is associated.
|
Path findJavaPackageFolder(Path pathRelativeToProjectRoot)
pathRelativeToProjectRoot
- may be a path to either a file or a directory. If a directory,
then it must end in a slash.String findJavaPackage(BuildTarget buildTarget)