From 427fc1c1cae1a61226c2e6b1111152289e949cac Mon Sep 17 00:00:00 2001 From: zzz Date: Wed, 27 Oct 2021 10:02:45 -0400 Subject: [PATCH] More javadocs on getLibDir() --- core/java/src/net/i2p/I2PAppContext.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/java/src/net/i2p/I2PAppContext.java b/core/java/src/net/i2p/I2PAppContext.java index 4e97e05a6..99bbd53c7 100644 --- a/core/java/src/net/i2p/I2PAppContext.java +++ b/core/java/src/net/i2p/I2PAppContext.java @@ -228,7 +228,8 @@ public class I2PAppContext { * * Name Property Method Files * ----- -------- ----- ----- - * Base i2p.dir.base getBaseDir() lib/, webapps/, docs/, geoip/, licenses/, ... + * Base i2p.dir.base getBaseDir() webapps/, docs/, geoip/, licenses/, ... + * Lib i2p.dir.lib getLibDir() *.jar, libwrapper*.so * Temp i2p.dir.temp getTempDir() Temporary files * Config i2p.dir.config getConfigDir() *.config, hosts.txt, addressbook/, ... * @@ -263,7 +264,7 @@ public class I2PAppContext { * However this is provided for the router's use, and for backward compatibility should an app * need to look there as well. * - * All dirs except the base are created if they don't exist, but the creation will fail silently. + * All dirs except the base and lib are created if they don't exist, but the creation will fail silently. * @since 0.7.6 */ @@ -331,6 +332,7 @@ public class I2PAppContext { // In portable we like debug information :) //(new Exception("Initialized by")).printStackTrace(); System.err.println("Base directory: " + _baseDir.getAbsolutePath()); + System.err.println("Lib directory: " + _libDir.getAbsolutePath()); System.err.println("Config directory: " + _configDir.getAbsolutePath()); System.err.println("Router directory: " + _routerDir.getAbsolutePath()); System.err.println("App directory: " + _appDir.getAbsolutePath()); @@ -448,6 +450,9 @@ public class I2PAppContext { /** * This is the library dir, which is usually $I2P/lib. + * It contains all the jars (i.e. the classpath). + * Most applications will not need this, and must treat this directory as read-only. + * * @return dir constant for the life of the context * @since 0.9.52 */