Lines Matching refs:path
34 public static ResourcePoolEntry create(String path,
36 return new ByteArrayResourcePoolEntry(moduleFrom(path), path, type, content);
39 public static ResourcePoolEntry create(String path,
41 return new PathResourcePoolEntry(moduleFrom(path), path, type, file);
46 original.path(), original.type(), content);
51 original.path(), original.type(), file);
54 public static ResourcePoolEntry createSymbolicLink(String path,
57 return new SymLinkResourcePoolEntry(moduleFrom(path), path, type, target);
60 private static String moduleFrom(String path) {
61 Objects.requireNonNull(path);
62 if (path.isEmpty() || path.charAt(0) != '/') {
63 throw new IllegalArgumentException(path + " must start with /");
65 String noRoot = path.substring(1);
68 throw new IllegalArgumentException("/ missing after module: " + path);