Commit 18d6bacb authored by 孙长纪's avatar 孙长纪

修改module的根路径获取问题

parent 84d69d03
......@@ -18,7 +18,7 @@ apply plugin: "idea"
apply plugin: "eclipse"
group = "cn.com.duiba"
version = "0.0.2"
version = "0.1.0"
sourceCompatibility = 1.8
targetCompatibility = 1.8
......
......@@ -28,6 +28,8 @@ public class PathUtils {
if (StringUtils.isEmpty(config.getModuleName())) {
return "src/main/java/" + StringUtils.replace(packageName, ".", "/");
}
return getProjectHome()+File.separator+config.getModuleName() + File.separator + "src/main/java/" + StringUtils.replace(packageName, ".", "/");
String modulePath = getProjectHome();
String bathPath = modulePath.substring(0,modulePath.lastIndexOf(File.separator));
return bathPath+File.separator+config.getModuleName() + File.separator + "src/main/java/" + StringUtils.replace(packageName, ".", "/");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment