Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
solo-1
Commits
f2b65681
Commit
f2b65681
authored
Dec 05, 2015
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
独立模式参数化
parent
8ae9f7c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
src/main/java/org/b3log/solo/Starter.java
src/main/java/org/b3log/solo/Starter.java
+3
-10
No files found.
src/main/java/org/b3log/solo/Starter.java
View file @
f2b65681
...
...
@@ -43,7 +43,7 @@ import org.eclipse.jetty.webapp.WebAppContext;
* </ul>
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.
0.0.5, Dec 4
, 2015
* @version 1.
1.0.5, Dec 5
, 2015
* @since 1.2.0
*/
public
final
class
Starter
{
...
...
@@ -62,16 +62,9 @@ public final class Starter {
* @param args the specified arguments
* @throws java.lang.Exception if start failed
*/
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
final
String
[]
args
)
throws
Exception
{
final
Logger
logger
=
Logger
.
getLogger
(
Starter
.
class
);
//args = new String[]{"-lp", "9090", "-sp", "9090", "-ssp", "9090"};
for
(
int
i
=
0
;
i
<
args
.
length
;
i
++)
{
String
arg
=
args
[
i
];
System
.
out
.
println
(
arg
);
}
final
Options
options
=
new
Options
();
final
Option
listenPortOpt
=
Option
.
builder
(
"lp"
).
longOpt
(
"listen_port"
).
argName
(
"LISTEN_PORT"
)
.
hasArg
().
desc
(
"listen port, default is 8080"
).
build
();
...
...
@@ -157,7 +150,7 @@ public final class Starter {
final
Server
server
=
new
Server
(
port
);
final
WebAppContext
root
=
new
WebAppContext
();
root
.
setParentLoaderPriority
(
true
);
// Use parent class loader
root
.
setContextPath
(
"/"
);
root
.
setDescriptor
(
webappDirLocation
+
"/WEB-INF/web.xml"
);
root
.
setResourceBase
(
webappDirLocation
);
...
...
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