Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
java镜像
Springside4
提交
bd27910d
S
Springside4
项目概览
后端镜像
/
java镜像
/
Springside4
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Springside4
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bd27910d
编写于
4月 01, 2012
作者:
C
Calvin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup
上级
b0adb903
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
26 addition
and
29 deletion
+26
-29
examples/mini-service/src/test/functional/org/springside/examples/miniservice/functional/Start.java
...org/springside/examples/miniservice/functional/Start.java
+6
-4
examples/mini-web/src/test/functional/org/springside/examples/miniweb/functional/Start.java
...nal/org/springside/examples/miniweb/functional/Start.java
+7
-4
examples/showcase/src/test/functional/org/springside/examples/showcase/functional/Start.java
...al/org/springside/examples/showcase/functional/Start.java
+7
-4
modules/core/pom.xml
modules/core/pom.xml
+0
-3
modules/core/src/main/java/org/springside/modules/test/functional/JettyFactory.java
.../org/springside/modules/test/functional/JettyFactory.java
+3
-1
modules/extension/pom.xml
modules/extension/pom.xml
+0
-3
pom.xml
pom.xml
+3
-10
未找到文件。
examples/mini-service/src/test/functional/org/springside/examples/miniservice/functional/Start.java
浏览文件 @
bd27910d
...
...
@@ -22,9 +22,11 @@ public class Start {
System
.
out
.
println
(
"Server running at "
+
BASE_URL
);
System
.
out
.
println
(
"Hit Enter in console to stop server"
);
if
(
System
.
in
.
read
()
!=
0
)
{
server
.
stop
();
System
.
out
.
println
(
"Server stopped"
);
}
//wait for close
System
.
in
.
read
();
server
.
stop
();
server
.
join
();
System
.
out
.
println
(
"Server stopped"
);
}
}
examples/mini-web/src/test/functional/org/springside/examples/miniweb/functional/Start.java
浏览文件 @
bd27910d
...
...
@@ -19,11 +19,14 @@ public class Start {
public
static
void
main
(
String
[]
args
)
throws
Exception
{
Server
server
=
JettyFactory
.
buildNormalServer
(
PORT
,
CONTEXT
);
server
.
start
();
System
.
out
.
println
(
"Server running at "
+
BASE_URL
);
System
.
out
.
println
(
"Hit Enter in console to stop server"
);
if
(
System
.
in
.
read
()
!=
0
)
{
server
.
stop
();
System
.
out
.
println
(
"Server stopped"
);
}
//wait for close
System
.
in
.
read
();
server
.
stop
();
server
.
join
();
System
.
out
.
println
(
"Server stopped"
);
}
}
examples/showcase/src/test/functional/org/springside/examples/showcase/functional/Start.java
浏览文件 @
bd27910d
...
...
@@ -19,11 +19,14 @@ public class Start {
public
static
void
main
(
String
[]
args
)
throws
Exception
{
Server
server
=
JettyFactory
.
buildNormalServer
(
PORT
,
CONTEXT
);
server
.
start
();
System
.
out
.
println
(
"Server running at "
+
BASE_URL
);
System
.
out
.
println
(
"Hit Enter in console to stop server"
);
if
(
System
.
in
.
read
()
!=
0
)
{
server
.
stop
();
System
.
out
.
println
(
"Server stopped"
);
}
//wait for close
System
.
in
.
read
();
server
.
stop
();
server
.
join
();
System
.
out
.
println
(
"Server stopped"
);
}
}
modules/core/pom.xml
浏览文件 @
bd27910d
...
...
@@ -243,9 +243,6 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-eclipse-plugin
</artifactId>
<configuration>
<wtpversion>
none
</wtpversion>
</configuration>
</plugin>
<!-- source attach plugin -->
...
...
modules/core/src/main/java/org/springside/modules/test/functional/JettyFactory.java
浏览文件 @
bd27910d
...
...
@@ -23,10 +23,12 @@ public class JettyFactory {
*/
public
static
Server
buildNormalServer
(
int
port
,
String
contextPath
)
{
Server
server
=
new
Server
(
port
);
server
.
setStopAtShutdown
(
true
);
WebAppContext
webContext
=
new
WebAppContext
(
"src/main/webapp"
,
contextPath
);
webContext
.
setClassLoader
(
Thread
.
currentThread
().
getContextClassLoader
());
server
.
setHandler
(
webContext
);
server
.
setStopAtShutdown
(
true
);
return
server
;
}
...
...
modules/extension/pom.xml
浏览文件 @
bd27910d
...
...
@@ -119,9 +119,6 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-eclipse-plugin
</artifactId>
<configuration>
<wtpversion>
none
</wtpversion>
</configuration>
</plugin>
<!-- source attach plugin -->
...
...
pom.xml
浏览文件 @
bd27910d
...
...
@@ -49,7 +49,7 @@
<repository>
<id>
springside
</id>
<name>
SpringSide Additional Repository
</name>
<url>
http
s
://github.com/springside/springside4-repository/raw/master/
</url>
<url>
http://github.com/springside/springside4-repository/raw/master/
</url>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
...
...
@@ -791,14 +791,11 @@
</configuration>
</plugin>
<!-- resource插件
, 设定编码
-->
<!-- resource插件 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
2.5
</version>
<configuration>
<encoding>
${project.build.sourceEncoding}
</encoding>
</configuration>
</plugin>
<!-- test插件, 仅测试名称为*Test的类,使用支持分组测试的surefire-junit47 driver -->
...
...
@@ -853,7 +850,6 @@
<archive>
<manifest>
<addDefaultImplementationEntries>
true
</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>
true
</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
...
...
@@ -889,14 +885,11 @@
</configuration>
</plugin>
<!-- jetty插件
,设定重载模式
-->
<!-- jetty插件 -->
<plugin>
<groupId>
org.mortbay.jetty
</groupId>
<artifactId>
jetty-maven-plugin
</artifactId>
<version>
${jetty.version}
</version>
<configuration>
<reload>
manual
</reload>
</configuration>
</plugin>
<!-- dependency相关插件 -->
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录