Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
comtainer-plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
zhaoaiqing
comtainer-plugin
Commits
2578a7f5
Commit
2578a7f5
authored
Aug 07, 2018
by
qiaokun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bootstrap.java
parent
1b8e39ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
Bootstrap.java
.../java/com/cesgroup/tomcat/plugin/bootstrap/Bootstrap.java
+17
-7
No files found.
src/main/java/com/cesgroup/tomcat/plugin/bootstrap/Bootstrap.java
View file @
2578a7f5
...
...
@@ -41,7 +41,7 @@ public class Bootstrap implements Container {
private
String
context
;
public
Bootstrap
()
{
this
(
System
.
getProperty
(
"user.dir"
)
,
webapp
,
webapp
,
"destWork"
);
this
(
null
,
webapp
,
webapp
,
"destWork"
);
}
public
Bootstrap
(
String
originRoot
)
{
...
...
@@ -54,13 +54,23 @@ public class Bootstrap implements Container {
public
Bootstrap
(
String
originRoot
,
String
webapp
,
String
destRoot
,
String
destDirectory
)
{
//设置默认context为当前项目名称
String
projectPath
=
System
.
getProperty
(
"user.dir"
);
File
temp
=
new
File
(
projectPath
);
this
.
context
=
temp
.
getName
();
File
parent
=
null
;
String
parentPath
=
null
;
if
(
originRoot
==
null
){
//设置默认context为当前项目名称
String
projectClassPath
=
this
.
getClass
().
getResource
(
"/"
).
getPath
();
File
temp
=
new
File
(
projectClassPath
);
parent
=
temp
.
getParentFile
().
getParentFile
();
parentPath
=
parent
.
getPath
();
}
else
{
parent
=
new
File
(
originRoot
);
parentPath
=
originRoot
;
}
this
.
context
=
parent
.
getName
();
this
.
projectPath
=
parentPath
;
this
.
originWebappFile
=
new
File
(
parentPath
,
webapp
);
this
.
projectPath
=
originRoot
;
this
.
originWebappFile
=
new
File
(
projectPath
,
webapp
);
if
(
webapp
!=
destRoot
&&
!
webapp
.
equals
(
destRoot
))
{
this
.
destDirectoryFile
=
new
File
(
destRoot
,
destDirectory
);
...
...
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