Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
jenkins
提交
16f6c7a3
J
jenkins
项目概览
LinuxSuRen
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
16f6c7a3
编写于
6月 02, 2011
作者:
C
Christoph Kutzinski
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added @since tags for version and children fields
上级
db0dcf0d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
5 deletion
+12
-5
maven-plugin/src/main/java/hudson/maven/MavenModule.java
maven-plugin/src/main/java/hudson/maven/MavenModule.java
+12
-5
未找到文件。
maven-plugin/src/main/java/hudson/maven/MavenModule.java
浏览文件 @
16f6c7a3
...
...
@@ -79,11 +79,13 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
private
String
displayName
;
/**
* Version number of this module as of
f
he last build, taken from {@link MavenProject#getVersion()}.
* Version number of this module as of
t
he last build, taken from {@link MavenProject#getVersion()}.
*
* This field can be null if
Hudson
loaded old data
* This field can be null if
Jenkins
loaded old data
* that didn't record this information, so that situation
* needs to be handled gracefully.
*
* @since 1.199
*/
private
String
version
;
...
...
@@ -110,7 +112,9 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
* List of child modules as defined by <module> POM element.
* Used to determine parent/child relationship of modules.
* <p>
* For compatibility reason, this field may be null when loading data from old hudson.
* For compatibility reason, this field may be null when loading data from old hudson.
*
* @since 1.133
*/
@CopyOnWrite
private
volatile
List
<
ModuleName
>
children
;
...
...
@@ -216,7 +220,7 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
else
{
// Until 1.207, we used to have ModuleName in dependencies. So convert.
Set
<
ModuleDependency
>
deps
=
new
HashSet
<
ModuleDependency
>(
dependencies
.
size
());
for
(
Object
d
:
(
Set
)
dependencies
)
{
for
(
Object
d
:
(
Set
<?>
)
dependencies
)
{
if
(
d
instanceof
ModuleDependency
)
{
deps
.
add
((
ModuleDependency
)
d
);
}
else
{
...
...
@@ -241,9 +245,10 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
* Gets the version number in Maven POM as of the last build.
*
* @return
* This method can return null if
Hudson
loaded old data
* This method can return null if
Jenkins
loaded old data
* that didn't record this information, so that situation
* needs to be handled gracefully.
* @since 1.199
*/
public
String
getVersion
()
{
return
version
;
...
...
@@ -333,6 +338,8 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
* <p>
* This method returns null if this information is not recorded. This happens
* for compatibility reason.
*
* @since 1.133
*/
public
List
<
MavenModule
>
getChildren
()
{
List
<
ModuleName
>
l
=
children
;
// take a snapshot
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录