Skip to content

Commit 9d2267a

Browse files
committed
DirectoryPath: fix the USER_HOME alias - added CLASS_PATH alias
1 parent 97d7f9c commit 9d2267a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

snaploader/src/main/java/electrostatic4j/snaploader/filesystem/DirectoryPath.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ public final class DirectoryPath {
5151
* An alias object for the root user home directory absolute path.
5252
*/
5353
public static final DirectoryPath USER_HOME =
54-
new DirectoryPath(PropertiesProvider.USER_DIR.getSystemProperty());
54+
new DirectoryPath(PropertiesProvider.USER_HOME.getSystemProperty());
55+
56+
/**
57+
* When combined with the
58+
* {@link electrostatic4j.snaploader.LibraryInfo#LibraryInfo(DirectoryPath, DirectoryPath, String, DirectoryPath)}
59+
* and the {@link electrostatic4j.snaploader.NativeBinaryLoader}
60+
* APIs, it denotes the classpath routine for the {@link FileLocator} API.
61+
*/
62+
public static final DirectoryPath CLASS_PATH = new DirectoryPath(null);
5563

5664
private String path;
5765

0 commit comments

Comments
 (0)