Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
b8bb09f2
提交
b8bb09f2
authored
11月 05, 2014
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MVStore: the jar file is renamed to "h2-mvstore-*.jar" and is deployed to Maven separately.
上级
bdb4618a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
46 行增加
和
5 行删除
+46
-5
Build.java
h2/src/tools/org/h2/build/Build.java
+46
-5
没有找到文件。
h2/src/tools/org/h2/build/Build.java
浏览文件 @
b8bb09f2
...
@@ -165,7 +165,6 @@ public class Build extends BuildBase {
...
@@ -165,7 +165,6 @@ public class Build extends BuildBase {
switchSource
(
debugInfo
);
switchSource
(
debugInfo
);
clean
();
clean
();
mkdir
(
"temp"
);
mkdir
(
"temp"
);
download
();
String
classpath
=
"temp"
;
String
classpath
=
"temp"
;
FileList
files
;
FileList
files
;
files
=
files
(
"src/main/org/h2/mvstore"
).
files
=
files
(
"src/main/org/h2/mvstore"
).
...
@@ -465,7 +464,7 @@ public class Build extends BuildBase {
...
@@ -465,7 +464,7 @@ public class Build extends BuildBase {
exclude
(
"*.bat"
).
exclude
(
"*.bat"
).
exclude
(
"*.sh"
).
exclude
(
"*.sh"
).
exclude
(
"*.txt"
);
exclude
(
"*.txt"
);
long
kb
=
jar
(
"bin/h2client"
+
getJarSuffix
(),
files
,
"temp"
);
long
kb
=
jar
(
"bin/h2
-
client"
+
getJarSuffix
(),
files
,
"temp"
);
if
(
kb
<
350
||
kb
>
450
)
{
if
(
kb
<
350
||
kb
>
450
)
{
throw
new
RuntimeException
(
"Expected file size 350 - 450 KB, got: "
+
kb
);
throw
new
RuntimeException
(
"Expected file size 350 - 450 KB, got: "
+
kb
);
}
}
...
@@ -476,8 +475,9 @@ public class Build extends BuildBase {
...
@@ -476,8 +475,9 @@ public class Build extends BuildBase {
*/
*/
public
void
jarMVStore
()
{
public
void
jarMVStore
()
{
compileMVStore
(
true
);
compileMVStore
(
true
);
manifestMVStore
();
FileList
files
=
files
(
"temp"
);
FileList
files
=
files
(
"temp"
);
jar
(
"bin/h2mvstore"
+
getJarSuffix
(),
files
,
"temp"
);
jar
(
"bin/h2
-
mvstore"
+
getJarSuffix
(),
files
,
"temp"
);
}
}
/**
/**
...
@@ -599,8 +599,20 @@ public class Build extends BuildBase {
...
@@ -599,8 +599,20 @@ public class Build extends BuildBase {
writeFile
(
new
File
(
"temp/META-INF/MANIFEST.MF"
),
manifest
.
getBytes
());
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
,
"${buildJdk}"
,
getJavaSpecVersion
());
String
createdBy
=
System
.
getProperty
(
"java.runtime.version"
)
+
" ("
+
System
.
getProperty
(
"java.vm.vendor"
)
+
")"
;
manifest
=
replaceAll
(
manifest
,
"${createdBy}"
,
createdBy
);
mkdir
(
"temp/META-INF"
);
writeFile
(
new
File
(
"temp/META-INF/MANIFEST.MF"
),
manifest
.
getBytes
());
}
/**
/**
* This will build a release of the H2 .jar file and upload it to
* This will build a release of the H2 .jar file
s
and upload it to
* file:///data/h2database/m2-repo. This is only required when
* file:///data/h2database/m2-repo. This is only required when
* a new H2 version is made.
* a new H2 version is made.
*/
*/
...
@@ -663,6 +675,21 @@ public class Build extends BuildBase {
...
@@ -663,6 +675,21 @@ public class Build extends BuildBase {
"-DpomFile=bin/pom.xml"
,
"-DpomFile=bin/pom.xml"
,
"-DartifactId=h2"
,
"-DartifactId=h2"
,
"-DgroupId=com.h2database"
));
"-DgroupId=com.h2database"
));
// generate and deploy the h2-mvstore-*.jar file
jarMVStore
();
pom
=
new
String
(
readFile
(
new
File
(
"src/installer/pom-mvstore-template.xml"
)));
pom
=
replaceAll
(
pom
,
"@version@"
,
getVersion
());
writeFile
(
new
File
(
"bin/pom.xml"
),
pom
.
getBytes
());
execScript
(
"mvn"
,
args
(
"deploy:deploy-file"
,
"-Dfile=bin/h2-mvstore"
+
getJarSuffix
(),
"-Durl=file:///data/h2database/m2-repo"
,
"-Dpackaging=jar"
,
"-Dversion="
+
getVersion
(),
"-DpomFile=bin/pom.xml"
,
"-DartifactId=h2-mvstore"
,
"-DgroupId=com.h2database"
));
}
}
/**
/**
...
@@ -670,8 +697,22 @@ public class Build extends BuildBase {
...
@@ -670,8 +697,22 @@ public class Build extends BuildBase {
* Maven 2 repository.
* Maven 2 repository.
*/
*/
public
void
mavenInstallLocal
()
{
public
void
mavenInstallLocal
()
{
// MVStore
jarMVStore
();
String
pom
=
new
String
(
readFile
(
new
File
(
"src/installer/pom-mvstore-template.xml"
)));
pom
=
replaceAll
(
pom
,
"@version@"
,
"1.0-SNAPSHOT"
);
writeFile
(
new
File
(
"bin/pom.xml"
),
pom
.
getBytes
());
execScript
(
"mvn"
,
args
(
"install:install-file"
,
"-Dversion=1.0-SNAPSHOT"
,
"-Dfile=bin/h2-mvstore"
+
getJarSuffix
(),
"-Dpackaging=jar"
,
"-DpomFile=bin/pom.xml"
,
"-DartifactId=h2-mvstore"
,
"-DgroupId=com.h2database"
));
// database
jar
();
jar
();
String
pom
=
new
String
(
readFile
(
new
File
(
"src/installer/pom-template.xml"
)));
pom
=
new
String
(
readFile
(
new
File
(
"src/installer/pom-template.xml"
)));
pom
=
replaceAll
(
pom
,
"@version@"
,
"1.0-SNAPSHOT"
);
pom
=
replaceAll
(
pom
,
"@version@"
,
"1.0-SNAPSHOT"
);
writeFile
(
new
File
(
"bin/pom.xml"
),
pom
.
getBytes
());
writeFile
(
new
File
(
"bin/pom.xml"
),
pom
.
getBytes
());
execScript
(
"mvn"
,
args
(
execScript
(
"mvn"
,
args
(
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论