public final class ScxEnvironment
extends Object
项目环境
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ScxEnvironment
public ScxEnvironment(Class<?> mainClass)
根据 class 推断 class 根目录
- Parameters:
mainClass - class
-
Method Details
-
getPathByAppRoot
- Parameters:
path - a String object.
- Returns:
- a
File object.
-
getTempPath
public Path getTempPath()
获取临时路径
- Returns:
- a
-
getTempPath
获取临时路径
- Parameters:
paths - a
- Returns:
- a
-
appRootPath
public Path appRootPath()