All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.wicp.tams.common.constant.BasePath Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
package net.wicp.tams.common.constant;

import net.wicp.tams.common.apiext.IOUtil;

/****
 * maven项目的文件
 * 
 * @author andy.zhou
 *
 */
public enum BasePath {
	root("项目根目录", "/"),

	java("java代码根目录", "/src/main/java/"),

	source("source根目录", "/src/main/resources/"),

	target("编译根目录", "/target"),

	classRoot("根目录,在classLoad里用它", "/target/classes");

	public static String projectBasePath;
	private final String desc;
	private final String path;

	private BasePath(String desc, String path) {
		this.desc = desc;
		this.path = path;
	}

	public String getDesc() {
		return desc;
	}

	public String getPath() {
		return IOUtil.mergeFolderAndFilePath(projectBasePath, path);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy