Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
23d193dc
提交
23d193dc
authored
15 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Create h2*-sources.jar and h2*-javadoc.jar
上级
bb424638
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
37 行增加
和
9 行删除
+37
-9
Build.java
h2/src/tools/org/h2/build/Build.java
+37
-9
没有找到文件。
h2/src/tools/org/h2/build/Build.java
浏览文件 @
23d193dc
...
@@ -302,14 +302,6 @@ public class Build extends BuildBase {
...
@@ -302,14 +302,6 @@ public class Build extends BuildBase {
filter
(
"src/installer/h2w.bat"
,
"bin/h2w.bat"
,
"h2.jar"
,
"h2"
+
getJarSuffix
());
filter
(
"src/installer/h2w.bat"
,
"bin/h2w.bat"
,
"h2.jar"
,
"h2"
+
getJarSuffix
());
}
}
/**
* Create a jar file that contains the source code.
*/
public
void
jarSources
()
{
FileList
files
=
files
(
"src/main"
).
keep
(
"*.java"
);
jar
(
"docs/h2-"
+
getVersion
()
+
"-sources.jar"
,
files
,
"src/main"
);
}
/**
/**
* Create the h2client.jar. This only contains the remote JDBC
* Create the h2client.jar. This only contains the remote JDBC
* implementation.
* implementation.
...
@@ -435,6 +427,43 @@ public class Build extends BuildBase {
...
@@ -435,6 +427,43 @@ public class Build extends BuildBase {
* a new H2 version is made.
* a new H2 version is made.
*/
*/
public
void
mavenDeployCentral
()
{
public
void
mavenDeployCentral
()
{
// generate and deploy h2*-sources.jar file
FileList
files
=
files
(
"src/main"
).
keep
(
"*.java"
);
jar
(
"docs/h2-"
+
getVersion
()
+
"-sources.jar"
,
files
,
"src/main"
);
// the option -DgeneratePom=false doesn't work with some versions of
// Maven because of bug http://jira.codehaus.org/browse/MDEPLOY-84
// as a workaround we generate the pom, but overwrite it later on
// (that's why the regular jar is created at the very end)
execScript
(
"mvn"
,
args
(
"deploy:deploy-file"
,
"-Dfile=docs/h2-"
+
getVersion
()
+
"-sources.jar"
,
"-Durl=file:///data/h2database/m2-repo"
,
"-Dpackaging=jar"
,
"-Dclassifier=sources"
,
"-Dversion="
+
getVersion
(),
"-DartifactId=h2"
,
"-DgroupId=com.h2database"
// ,"-DgeneratePom=false"
));
// generate and deploy the h2*-javadoc.jar file
javadocImpl
();
files
=
files
(
"docs/javadocImpl2"
);
jar
(
"docs/h2-"
+
getVersion
()
+
"-javadoc.jar"
,
files
,
"docs/javadocImpl2"
);
execScript
(
"mvn"
,
args
(
"deploy:deploy-file"
,
"-Dfile=docs/h2-"
+
getVersion
()
+
"-javadoc.jar"
,
"-Durl=file:///data/h2database/m2-repo"
,
"-Dpackaging=jar"
,
"-Dclassifier=javadoc"
,
"-Dversion="
+
getVersion
(),
"-DartifactId=h2"
,
"-DgroupId=com.h2database"
// ,"-DgeneratePom=false"
));
// generate and deploy the h2*.jar file
jar
();
jar
();
String
pom
=
new
String
(
readFile
(
new
File
(
"src/installer/pom-template.xml"
)));
String
pom
=
new
String
(
readFile
(
new
File
(
"src/installer/pom-template.xml"
)));
pom
=
replaceAll
(
pom
,
"@version@"
,
getVersion
());
pom
=
replaceAll
(
pom
,
"@version@"
,
getVersion
());
...
@@ -448,7 +477,6 @@ public class Build extends BuildBase {
...
@@ -448,7 +477,6 @@ public class Build extends BuildBase {
"-DpomFile=bin/pom.xml"
,
"-DpomFile=bin/pom.xml"
,
"-DartifactId=h2"
,
"-DartifactId=h2"
,
"-DgroupId=com.h2database"
));
"-DgroupId=com.h2database"
));
int
todoDeploySources
;
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论