Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
156828c8
提交
156828c8
authored
8月 09, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge manifest generation methods
上级
56517d95
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
21 行删除
+7
-21
MANIFEST.MF
h2/src/main/META-INF/MANIFEST.MF
+2
-2
Build.java
h2/src/tools/org/h2/build/Build.java
+5
-19
没有找到文件。
h2/src/main/META-INF/MANIFEST.MF
浏览文件 @
156828c8
Manifest-Version: 1.0
Manifest-Version: 1.0
Implementation-Title:
${title}
Implementation-Title:
H2 Database Engine
Implementation-URL: http://www.h2database.com
Implementation-URL: http://www.h2database.com
Implementation-Version: ${version}
Implementation-Version: ${version}
Build-Jdk: ${buildJdk}
Build-Jdk: ${buildJdk}
Created-By: ${createdBy}
Created-By: ${createdBy}
${mainClassTag}
Main-Class: org.h2.tools.Console
Bundle-Activator: org.h2.util.DbDriverActivator
Bundle-Activator: org.h2.util.DbDriverActivator
Bundle-ManifestVersion: 2
Bundle-ManifestVersion: 2
Bundle-Name: H2 Database Engine
Bundle-Name: H2 Database Engine
...
...
h2/src/tools/org/h2/build/Build.java
浏览文件 @
156828c8
...
@@ -15,6 +15,7 @@ import java.net.InetAddress;
...
@@ -15,6 +15,7 @@ import java.net.InetAddress;
import
java.net.InetSocketAddress
;
import
java.net.InetSocketAddress
;
import
java.net.ServerSocket
;
import
java.net.ServerSocket
;
import
java.net.Socket
;
import
java.net.Socket
;
import
java.nio.charset.StandardCharsets
;
import
java.util.Enumeration
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map.Entry
;
import
java.util.Map.Entry
;
...
@@ -518,7 +519,7 @@ public class Build extends BuildBase {
...
@@ -518,7 +519,7 @@ public class Build extends BuildBase {
public
void
jar
()
{
public
void
jar
()
{
compile
();
compile
();
addVersions
(
true
);
addVersions
(
true
);
manifest
(
"
H2 Database Engine"
,
"org.h2.tools.Console
"
);
manifest
(
"
src/main/META-INF/MANIFEST.MF
"
);
FileList
files
=
files
(
"temp"
).
FileList
files
=
files
(
"temp"
).
exclude
(
"temp/org/h2/build/*"
).
exclude
(
"temp/org/h2/build/*"
).
exclude
(
"temp/org/h2/dev/*"
).
exclude
(
"temp/org/h2/dev/*"
).
...
@@ -574,7 +575,7 @@ public class Build extends BuildBase {
...
@@ -574,7 +575,7 @@ public class Build extends BuildBase {
public
void
jarMVStore
()
{
public
void
jarMVStore
()
{
compileMVStore
(
true
);
compileMVStore
(
true
);
addVersions
(
false
);
addVersions
(
false
);
manifest
MVStore
(
);
manifest
(
"src/installer/mvstore/MANIFEST.MF"
);
FileList
files
=
files
(
"temp"
);
FileList
files
=
files
(
"temp"
);
files
.
exclude
(
"*.DS_Store"
);
files
.
exclude
(
"*.DS_Store"
);
files
=
excludeTestMetaInfFiles
(
files
);
files
=
excludeTestMetaInfFiles
(
files
);
...
@@ -690,23 +691,8 @@ public class Build extends BuildBase {
...
@@ -690,23 +691,8 @@ public class Build extends BuildBase {
copy
(
"docs/javadocImpl"
,
files
(
"src/docsrc/javadoc"
),
"src/docsrc/javadoc"
);
copy
(
"docs/javadocImpl"
,
files
(
"src/docsrc/javadoc"
),
"src/docsrc/javadoc"
);
}
}
private
static
void
manifest
(
String
title
,
String
mainClassName
)
{
private
static
void
manifest
(
String
path
)
{
String
manifest
=
new
String
(
readFile
(
new
File
(
String
manifest
=
new
String
(
readFile
(
new
File
(
path
)),
StandardCharsets
.
UTF_8
);
"src/main/META-INF/MANIFEST.MF"
)));
manifest
=
replaceAll
(
manifest
,
"${title}"
,
title
);
manifest
=
replaceAll
(
manifest
,
"${version}"
,
getVersion
());
manifest
=
replaceAll
(
manifest
,
"${buildJdk}"
,
getJavaSpecVersion
());
String
createdBy
=
System
.
getProperty
(
"java.runtime.version"
)
+
" ("
+
System
.
getProperty
(
"java.vm.vendor"
)
+
")"
;
manifest
=
replaceAll
(
manifest
,
"${createdBy}"
,
createdBy
);
String
mainClassTag
=
manifest
==
null
?
""
:
"Main-Class: "
+
mainClassName
;
manifest
=
replaceAll
(
manifest
,
"${mainClassTag}"
,
mainClassTag
);
writeFile
(
new
File
(
"temp/META-INF/MANIFEST.MF"
),
manifest
.
getBytes
());
}
private
static
void
manifestMVStore
()
{
String
manifest
=
new
String
(
readFile
(
new
File
(
"src/installer/mvstore/MANIFEST.MF"
)));
manifest
=
replaceAll
(
manifest
,
"${version}"
,
getVersion
());
manifest
=
replaceAll
(
manifest
,
"${version}"
,
getVersion
());
manifest
=
replaceAll
(
manifest
,
"${buildJdk}"
,
getJavaSpecVersion
());
manifest
=
replaceAll
(
manifest
,
"${buildJdk}"
,
getJavaSpecVersion
());
String
createdBy
=
System
.
getProperty
(
"java.runtime.version"
)
+
String
createdBy
=
System
.
getProperty
(
"java.runtime.version"
)
+
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论