Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
jenkins
提交
2b5c3a1b
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,发现更多精彩内容 >>
提交
2b5c3a1b
编写于
10月 08, 2011
作者:
C
Christoph Kutzinski
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added serialVersionUIDs
上级
b0f663f3
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
22 addition
and
1 deletion
+22
-1
maven-plugin/src/main/java/hudson/maven/MavenBuild.java
maven-plugin/src/main/java/hudson/maven/MavenBuild.java
+5
-0
maven-plugin/src/main/java/hudson/maven/MavenBuildInformation.java
...gin/src/main/java/hudson/maven/MavenBuildInformation.java
+1
-0
maven-plugin/src/main/java/hudson/maven/MavenBuildProxy2.java
...n-plugin/src/main/java/hudson/maven/MavenBuildProxy2.java
+2
-0
maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
...lugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
+1
-0
maven-plugin/src/main/java/hudson/maven/MavenReporter.java
maven-plugin/src/main/java/hudson/maven/MavenReporter.java
+3
-0
maven-plugin/src/main/java/hudson/maven/MavenVersionCallable.java
...ugin/src/main/java/hudson/maven/MavenVersionCallable.java
+1
-0
maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java
...-plugin/src/main/java/hudson/maven/RedeployPublisher.java
+2
-0
maven-plugin/src/main/java/hudson/maven/reporters/BuildInfoRecorder.java
...c/main/java/hudson/maven/reporters/BuildInfoRecorder.java
+2
-0
maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java
...in/java/hudson/maven/reporters/MavenArtifactArchiver.java
+3
-1
maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java
.../main/java/hudson/maven/reporters/MavenFingerprinter.java
+2
-0
未找到文件。
maven-plugin/src/main/java/hudson/maven/MavenBuild.java
浏览文件 @
2b5c3a1b
...
...
@@ -80,6 +80,7 @@ import java.util.logging.Logger;
*
* @author Kohsuke Kawaguchi
*/
@SuppressWarnings
(
"deprecation"
)
// as we're restricted to Maven 2.x API here, but compile against Maven 3.x we cannot avoid deprecations
public
class
MavenBuild
extends
AbstractMavenBuild
<
MavenModule
,
MavenBuild
>
{
/**
* {@link MavenReporter}s that will contribute project actions.
...
...
@@ -389,6 +390,8 @@ public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> {
* {@link MavenBuildProxy} implementation.
*/
class
ProxyImpl
implements
MavenBuildProxy
,
Serializable
{
private
static
final
long
serialVersionUID
=
8865133776526671879L
;
public
<
V
,
T
extends
Throwable
>
V
execute
(
BuildCallable
<
V
,
T
>
program
)
throws
T
,
IOException
,
InterruptedException
{
return
program
.
call
(
MavenBuild
.
this
);
}
...
...
@@ -464,6 +467,8 @@ public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> {
}
public
class
ProxyImpl2
extends
ProxyImpl
implements
MavenBuildProxy2
{
private
static
final
long
serialVersionUID
=
-
3377221864644014218L
;
private
final
SplittableBuildListener
listener
;
long
startTime
;
private
final
OutputStream
log
;
...
...
maven-plugin/src/main/java/hudson/maven/MavenBuildInformation.java
浏览文件 @
2b5c3a1b
...
...
@@ -28,6 +28,7 @@ import java.io.Serializable;
*/
public
class
MavenBuildInformation
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3719709179508200057L
;
private
String
mavenVersion
;
public
MavenBuildInformation
(
String
mavenVersion
)
{
...
...
maven-plugin/src/main/java/hudson/maven/MavenBuildProxy2.java
浏览文件 @
2b5c3a1b
...
...
@@ -55,6 +55,8 @@ public interface MavenBuildProxy2 extends MavenBuildProxy {
* Meant to be useful as the base class for other filters.
*/
/*package*/
static
abstract
class
Filter
<
CORE
extends
MavenBuildProxy2
>
extends
MavenBuildProxy
.
Filter
<
CORE
>
implements
MavenBuildProxy2
{
private
static
final
long
serialVersionUID
=
-
1208416744028858844L
;
protected
Filter
(
CORE
core
)
{
super
(
core
);
}
...
...
maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
浏览文件 @
2b5c3a1b
...
...
@@ -199,6 +199,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
*/
/*package*/
List
<
ChangeLogSet
.
Entry
>
getChangeSetFor
(
final
MavenModule
mod
)
{
return
new
ArrayList
<
ChangeLogSet
.
Entry
>()
{
private
static
final
long
serialVersionUID
=
5572368347535713298L
;
{
// modules that are under 'mod'. lazily computed
List
<
MavenModule
>
subsidiaries
=
null
;
...
...
maven-plugin/src/main/java/hudson/maven/MavenReporter.java
浏览文件 @
2b5c3a1b
...
...
@@ -96,6 +96,9 @@ import java.util.Collections;
* @see MavenReporters
*/
public
abstract
class
MavenReporter
implements
Describable
<
MavenReporter
>,
ExtensionPoint
,
Serializable
,
MavenProjectActionBuilder
{
private
static
final
long
serialVersionUID
=
7987776766278437534L
;
/**
* Called before the actual maven2 execution begins.
*
...
...
maven-plugin/src/main/java/hudson/maven/MavenVersionCallable.java
浏览文件 @
2b5c3a1b
...
...
@@ -41,6 +41,7 @@ import org.kohsuke.stapler.framework.io.IOException2;
public
class
MavenVersionCallable
implements
Callable
<
MavenInformation
,
IOException
>
{
private
static
final
long
serialVersionUID
=
-
2644951622080930034L
;
private
final
String
mavenHome
;
...
...
maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java
浏览文件 @
2b5c3a1b
...
...
@@ -306,6 +306,8 @@ public class RedeployPublisher extends Recorder {
}
private
static
final
class
GetUserHome
implements
Callable
<
String
,
IOException
>
{
private
static
final
long
serialVersionUID
=
-
8755705771716056636L
;
public
String
call
()
throws
IOException
{
return
System
.
getProperty
(
"user.home"
);
}
...
...
maven-plugin/src/main/java/hudson/maven/reporters/BuildInfoRecorder.java
浏览文件 @
2b5c3a1b
...
...
@@ -63,6 +63,8 @@ public class BuildInfoRecorder extends MavenReporter {
// touch <archive><manifestEntries><Build-Numer>#n
Map
<
String
,
String
>
props
=
build
.
execute
(
new
BuildCallable
<
Map
<
String
,
String
>,
IOException
>()
{
private
static
final
long
serialVersionUID
=
7810179928341972415L
;
public
Map
<
String
,
String
>
call
(
MavenBuild
build
)
throws
IOException
,
InterruptedException
{
Map
<
String
,
String
>
r
=
new
HashMap
<
String
,
String
>();
// leave Hudson for backward comp
...
...
maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java
浏览文件 @
2b5c3a1b
...
...
@@ -115,7 +115,7 @@ public class MavenArtifactArchiver extends MavenReporter {
// record attached artifacts
final
List
<
MavenArtifact
>
attachedArtifacts
=
new
ArrayList
<
MavenArtifact
>();
for
(
Artifact
a
:
(
List
<
Artifact
>)
pom
.
getAttachedArtifacts
())
{
for
(
Artifact
a
:
pom
.
getAttachedArtifacts
())
{
MavenArtifact
ma
=
MavenArtifact
.
create
(
a
);
if
(
ma
!=
null
)
{
mavenArtifacts
.
add
(
a
.
getFile
());
...
...
@@ -126,6 +126,8 @@ public class MavenArtifactArchiver extends MavenReporter {
// record the action
build
.
executeAsync
(
new
MavenBuildProxy
.
BuildCallable
<
Void
,
IOException
>()
{
private
static
final
long
serialVersionUID
=
-
7955474564875700905L
;
public
Void
call
(
MavenBuild
build
)
throws
IOException
,
InterruptedException
{
// if a build forks lifecycles, this method can be called multiple times
List
<
MavenArtifactRecord
>
old
=
build
.
getActions
(
MavenArtifactRecord
.
class
);
...
...
maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java
浏览文件 @
2b5c3a1b
...
...
@@ -94,6 +94,8 @@ public class MavenFingerprinter extends MavenReporter {
*/
public
boolean
postBuild
(
MavenBuildProxy
build
,
MavenProject
pom
,
BuildListener
listener
)
throws
InterruptedException
,
IOException
{
build
.
executeAsync
(
new
BuildCallable
<
Void
,
IOException
>()
{
private
static
final
long
serialVersionUID
=
-
1360161848504044869L
;
// record is transient, so needs to make a copy first
private
final
Map
<
String
,
String
>
u
=
used
;
private
final
Map
<
String
,
String
>
p
=
produced
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录