More javadocs on getLibDir()

This commit is contained in:
zzz
2021-10-27 10:02:45 -04:00
parent 33f1b3be87
commit 427fc1c1ca

View File

@ -228,7 +228,8 @@ public class I2PAppContext {
* *
* Name Property Method Files * 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 * Temp i2p.dir.temp getTempDir() Temporary files
* Config i2p.dir.config getConfigDir() *.config, hosts.txt, addressbook/, ... * 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 * However this is provided for the router's use, and for backward compatibility should an app
* need to look there as well. * 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 * @since 0.7.6
*/ */
@ -331,6 +332,7 @@ public class I2PAppContext {
// In portable we like debug information :) // In portable we like debug information :)
//(new Exception("Initialized by")).printStackTrace(); //(new Exception("Initialized by")).printStackTrace();
System.err.println("Base directory: " + _baseDir.getAbsolutePath()); System.err.println("Base directory: " + _baseDir.getAbsolutePath());
System.err.println("Lib directory: " + _libDir.getAbsolutePath());
System.err.println("Config directory: " + _configDir.getAbsolutePath()); System.err.println("Config directory: " + _configDir.getAbsolutePath());
System.err.println("Router directory: " + _routerDir.getAbsolutePath()); System.err.println("Router directory: " + _routerDir.getAbsolutePath());
System.err.println("App directory: " + _appDir.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. * 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 * @return dir constant for the life of the context
* @since 0.9.52 * @since 0.9.52
*/ */