forked from fanruan/finekit
richie
5 years ago
5 changed files with 40 additions and 6 deletions
@ -0,0 +1,29 @@
|
||||
package com.fanruan.api.env; |
||||
|
||||
import com.fr.workspace.WorkContext; |
||||
import com.fr.workspace.Workspace; |
||||
import com.fr.workspace.resource.WorkResource; |
||||
|
||||
/** |
||||
* @author richie |
||||
* @version 10.0 |
||||
* Created by richie on 2019-08-09 |
||||
*/ |
||||
public class EnvKit { |
||||
|
||||
/** |
||||
* 获取当前的工作目录 |
||||
* @return 工作目录 |
||||
*/ |
||||
public static Workspace getCurrent() { |
||||
return WorkContext.getCurrent(); |
||||
} |
||||
|
||||
/** |
||||
* 获取当前工作目录的资源读写对象 |
||||
* @return 资源读写对象 |
||||
*/ |
||||
public static WorkResource getWorkResource() { |
||||
return WorkContext.getWorkResource(); |
||||
} |
||||
} |
Loading…
Reference in new issue