Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mysql-generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙长纪
mysql-generator
Commits
18d6bacb
Commit
18d6bacb
authored
Apr 01, 2019
by
孙长纪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改module的根路径获取问题
parent
84d69d03
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
build.gradle
build.gradle
+1
-1
PathUtils.java
...in/java/cn/com/duiba/mysql/generator/utils/PathUtils.java
+3
-1
No files found.
build.gradle
View file @
18d6bacb
...
...
@@ -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
...
...
src/main/java/cn/com/duiba/mysql/generator/utils/PathUtils.java
View file @
18d6bacb
...
...
@@ -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
,
"."
,
"/"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment