Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
2409c63b
提交
2409c63b
authored
5月 20, 2009
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
0dca9d2e
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
18 行增加
和
24 行删除
+18
-24
buildRelease.bat
h2/src/installer/buildRelease.bat
+1
-1
buildRelease.sh
h2/src/installer/buildRelease.sh
+2
-2
CheckJavadoc.java
h2/src/tools/org/h2/build/code/CheckJavadoc.java
+2
-3
CheckTextFiles.java
h2/src/tools/org/h2/build/code/CheckTextFiles.java
+7
-9
SwitchSource.java
h2/src/tools/org/h2/build/code/SwitchSource.java
+6
-9
没有找到文件。
h2/src/installer/buildRelease.bat
浏览文件 @
2409c63b
...
@@ -10,7 +10,7 @@ mkdir ..\h2web
...
@@ -10,7 +10,7 @@ mkdir ..\h2web
rmdir /s /q bin 2>nul
rmdir /s /q bin 2>nul
rmdir /s /q temp 2>nul
rmdir /s /q temp 2>nul
call java1
4
>nul 2>nul
call java1
5
>nul 2>nul
call build -quiet
call build -quiet
call java16 >nul 2>nul
call java16 >nul 2>nul
...
...
h2/src/installer/buildRelease.sh
浏览文件 @
2409c63b
...
@@ -6,8 +6,8 @@ mkdir ../h2web
...
@@ -6,8 +6,8 @@ mkdir ../h2web
rm
-rf
bin
rm
-rf
bin
rm
-rf
temp
rm
-rf
temp
JAVA_HOME
=
$JAVA1
4
JAVA_HOME
=
$JAVA1
5
PATH
=
$JAVA1
4
/bin:
$PATH
PATH
=
$JAVA1
5
/bin:
$PATH
./build.sh
-quiet
./build.sh
-quiet
JAVA_HOME
=
$JAVA16
JAVA_HOME
=
$JAVA16
...
...
h2/src/tools/org/h2/build/code/CheckJavadoc.java
浏览文件 @
2409c63b
...
@@ -44,10 +44,9 @@ public class CheckJavadoc {
...
@@ -44,10 +44,9 @@ public class CheckJavadoc {
if
(
name
.
equals
(
"CVS"
)
||
name
.
equals
(
".svn"
))
{
if
(
name
.
equals
(
"CVS"
)
||
name
.
equals
(
".svn"
))
{
return
0
;
return
0
;
}
}
File
[]
list
=
file
.
listFiles
();
boolean
foundPackageHtml
=
false
,
foundJava
=
false
;
boolean
foundPackageHtml
=
false
,
foundJava
=
false
;
for
(
int
i
=
0
;
i
<
list
.
length
;
i
++
)
{
for
(
File
f
:
file
.
listFiles
()
)
{
int
type
=
check
(
list
[
i
]
);
int
type
=
check
(
f
);
if
(
type
==
1
)
{
if
(
type
==
1
)
{
foundJava
=
true
;
foundJava
=
true
;
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
2
)
{
...
...
h2/src/tools/org/h2/build/code/CheckTextFiles.java
浏览文件 @
2409c63b
...
@@ -60,9 +60,8 @@ public class CheckTextFiles {
...
@@ -60,9 +60,8 @@ public class CheckTextFiles {
if
(
name
.
equals
(
"CVS"
)
||
name
.
equals
(
".svn"
))
{
if
(
name
.
equals
(
"CVS"
)
||
name
.
equals
(
".svn"
))
{
return
;
return
;
}
}
File
[]
list
=
file
.
listFiles
();
for
(
File
f
:
file
.
listFiles
())
{
for
(
int
i
=
0
;
i
<
list
.
length
;
i
++)
{
check
(
f
);
check
(
list
[
i
]);
}
}
}
else
{
}
else
{
String
suffix
=
""
;
String
suffix
=
""
;
...
@@ -71,8 +70,8 @@ public class CheckTextFiles {
...
@@ -71,8 +70,8 @@ public class CheckTextFiles {
suffix
=
name
.
substring
(
lastDot
+
1
);
suffix
=
name
.
substring
(
lastDot
+
1
);
}
}
boolean
check
=
false
,
ignore
=
false
;
boolean
check
=
false
,
ignore
=
false
;
for
(
int
i
=
0
;
i
<
SUFFIX_CHECK
.
length
;
i
++
)
{
for
(
String
s
:
SUFFIX_CHECK
)
{
if
(
suffix
.
equals
(
SUFFIX_CHECK
[
i
]
))
{
if
(
suffix
.
equals
(
s
))
{
check
=
true
;
check
=
true
;
}
}
}
}
...
@@ -86,14 +85,13 @@ public class CheckTextFiles {
...
@@ -86,14 +85,13 @@ public class CheckTextFiles {
check
=
false
;
check
=
false
;
ignore
=
true
;
ignore
=
true
;
}
}
for
(
int
i
=
0
;
i
<
SUFFIX_IGNORE
.
length
;
i
++
)
{
for
(
String
s
:
SUFFIX_IGNORE
)
{
if
(
suffix
.
equals
(
SUFFIX_IGNORE
[
i
]
))
{
if
(
suffix
.
equals
(
s
))
{
ignore
=
true
;
ignore
=
true
;
}
}
}
}
boolean
checkLicense
=
true
;
boolean
checkLicense
=
true
;
for
(
int
i
=
0
;
i
<
suffixIgnoreLicense
.
length
;
i
++)
{
for
(
String
ig
:
suffixIgnoreLicense
)
{
String
ig
=
suffixIgnoreLicense
[
i
];
if
(
suffix
.
equals
(
ig
)
||
name
.
endsWith
(
ig
))
{
if
(
suffix
.
equals
(
ig
)
||
name
.
endsWith
(
ig
))
{
checkLicense
=
false
;
checkLicense
=
false
;
break
;
break
;
...
...
h2/src/tools/org/h2/build/code/SwitchSource.java
浏览文件 @
2409c63b
...
@@ -18,8 +18,8 @@ import java.util.ArrayList;
...
@@ -18,8 +18,8 @@ import java.util.ArrayList;
*/
*/
public
class
SwitchSource
{
public
class
SwitchSource
{
private
ArrayList
enable
=
new
ArrayList
();
private
ArrayList
<
String
>
enable
=
new
ArrayList
<
String
>
();
private
ArrayList
disable
=
new
ArrayList
();
private
ArrayList
<
String
>
disable
=
new
ArrayList
<
String
>
();
/**
/**
* This method is called when executing this application from the command
* This method is called when executing this application from the command
...
@@ -101,9 +101,8 @@ public class SwitchSource {
...
@@ -101,9 +101,8 @@ public class SwitchSource {
}
else
if
(
name
.
endsWith
(
".java"
))
{
}
else
if
(
name
.
endsWith
(
".java"
))
{
processFile
(
f
);
processFile
(
f
);
}
else
if
(
f
.
isDirectory
())
{
}
else
if
(
f
.
isDirectory
())
{
File
[]
files
=
f
.
listFiles
();
for
(
File
file
:
f
.
listFiles
())
{
for
(
int
i
=
0
;
i
<
files
.
length
;
i
++)
{
process
(
file
);
process
(
files
[
i
]);
}
}
}
}
}
}
...
@@ -135,13 +134,11 @@ public class SwitchSource {
...
@@ -135,13 +134,11 @@ public class SwitchSource {
String
source
=
new
String
(
buffer
);
String
source
=
new
String
(
buffer
);
String
target
=
source
;
String
target
=
source
;
target
=
replaceAll
(
target
,
"//##"
,
"//##"
);
target
=
replaceAll
(
target
,
"//##"
,
"//##"
);
for
(
int
i
=
0
;
i
<
enable
.
size
();
i
++)
{
for
(
String
x
:
enable
)
{
String
x
=
(
String
)
enable
.
get
(
i
);
target
=
replaceAll
(
target
,
"/*## "
+
x
+
" begin ##"
,
"//## "
+
x
+
" begin ##"
);
target
=
replaceAll
(
target
,
"/*## "
+
x
+
" begin ##"
,
"//## "
+
x
+
" begin ##"
);
target
=
replaceAll
(
target
,
"## "
+
x
+
" end ##*/"
,
"//## "
+
x
+
" end ##"
);
target
=
replaceAll
(
target
,
"## "
+
x
+
" end ##*/"
,
"//## "
+
x
+
" end ##"
);
}
}
for
(
int
i
=
0
;
i
<
disable
.
size
();
i
++)
{
for
(
String
x
:
disable
)
{
String
x
=
(
String
)
disable
.
get
(
i
);
target
=
replaceAll
(
target
,
"//## "
+
x
+
" begin ##"
,
"/*## "
+
x
+
" begin ##"
);
target
=
replaceAll
(
target
,
"//## "
+
x
+
" begin ##"
,
"/*## "
+
x
+
" begin ##"
);
target
=
replaceAll
(
target
,
"//## "
+
x
+
" end ##"
,
"## "
+
x
+
" end ##*/"
);
target
=
replaceAll
(
target
,
"//## "
+
x
+
" end ##"
,
"## "
+
x
+
" end ##*/"
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论