public final class AppRootFinder extends Object
| Modifier and Type | Method and Description |
|---|---|
static Path |
find(Class<?> clazz)
|
static Path |
findCurrent()
Returns the
Path to the JAR, WAR or directory where the caller class of this method is located
at. |
static Path |
findCurrent(int callDepth)
Returns the
Path to the JAR, WAR or directory where the caller class of this method is located
at. |
public static Path findCurrent()
Path to the JAR, WAR or directory where the caller class of this method is located
at. This method is a shortcut for findCurrent(0).public static Path findCurrent(int callDepth)
Path to the JAR, WAR or directory where the caller class of this method is located
at.callDepth - how many calls were made between the caller class and this findCurrent(int).Copyright © 2020 LeanCloud. All rights reserved.