Home | History | Annotate | Download | only in utils

Lines Matching refs:pkg

61      * @param pkg the package in which the file resides, like "com.laamella.parser"
64 public static Path fileInPackageAbsolutePath(String root, String pkg, String file) {
65 pkg = packageToPath(pkg);
66 return Paths.get(root, pkg, file).normalize();
69 public static Path fileInPackageAbsolutePath(Path root, String pkg, String file) {
70 return fileInPackageAbsolutePath(root.toString(), pkg, file);
77 public static Path fileInPackageRelativePath(String pkg, String file) {
78 pkg = packageToPath(pkg);
79 return Paths.get(pkg, file).normalize();
85 public static String packageToPath(String pkg) {
86 return pkg.replace(".", File.separator);
93 * @param pkg the package, like "com.laamella.parser"
95 public static Path packageAbsolutePath(String root, String pkg) {
96 pkg = packageToPath(pkg);
97 return Paths.get(root, pkg).normalize();
100 public static Path packageAbsolutePath(Path root, String pkg) {
101 return packageAbsolutePath(root.toString(), pkg);