Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
56200089
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
56200089
编写于
10月 01, 2013
作者:
K
ksrini
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8025342: NLS: unsupported translation format in jar/pack/DriverResource.java
Reviewed-by: naoto, mfang
上级
71fa5f8b
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
90 addition
and
101 deletion
+90
-101
src/share/classes/com/sun/java/util/jar/pack/Driver.java
src/share/classes/com/sun/java/util/jar/pack/Driver.java
+2
-2
src/share/classes/com/sun/java/util/jar/pack/DriverResource.java
...re/classes/com/sun/java/util/jar/pack/DriverResource.java
+88
-99
未找到文件。
src/share/classes/com/sun/java/util/jar/pack/Driver.java
浏览文件 @
56200089
/*
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -303,7 +303,7 @@ class Driver {
...
@@ -303,7 +303,7 @@ class Driver {
}
else
{
}
else
{
if
(!
packfile
.
toLowerCase
().
endsWith
(
".pack"
)
&&
if
(!
packfile
.
toLowerCase
().
endsWith
(
".pack"
)
&&
!
packfile
.
toLowerCase
().
endsWith
(
".pac"
))
{
!
packfile
.
toLowerCase
().
endsWith
(
".pac"
))
{
System
.
err
.
println
(
MessageFormat
.
format
(
RESOURCE
.
getString
(
DriverResource
.
W
IR
TE_PACKGZ_FILE
),
packfile
));
System
.
err
.
println
(
MessageFormat
.
format
(
RESOURCE
.
getString
(
DriverResource
.
W
RI
TE_PACKGZ_FILE
),
packfile
));
printUsage
(
doPack
,
false
,
System
.
err
);
printUsage
(
doPack
,
false
,
System
.
err
);
System
.
exit
(
2
);
System
.
exit
(
2
);
}
}
...
...
src/share/classes/com/sun/java/util/jar/pack/DriverResource.java
浏览文件 @
56200089
/*
/*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -22,50 +22,42 @@
...
@@ -22,50 +22,42 @@
* or visit www.oracle.com if you need additional information or have any
* or visit www.oracle.com if you need additional information or have any
* questions.
* questions.
*/
*/
package
com.sun.java.util.jar.pack
;
package
com.sun.java.util.jar.pack
;
import
java.util.ListResourceBundle
;
import
java.util.ListResourceBundle
;
public
class
DriverResource
extends
ListResourceBundle
{
public
class
DriverResource
extends
ListResourceBundle
{
public
static
final
String
VERSION
=
"VERSION"
;
public
static
final
String
BAD_ARGUMENT
=
"BAD_ARGUMENT"
;
public
static
final
String
VERSION
=
"VERSION"
;
public
static
final
String
BAD_OPTION
=
"BAD_OPTION"
;
public
static
final
String
BAD_ARGUMENT
=
"BAD_ARGUMENT"
;
public
static
final
String
BAD_REPACK_OUTPUT
=
"BAD_REPACK_OUTPUT"
;
public
static
final
String
BAD_OPTION
=
"BAD_OPTION"
;
public
static
final
String
DETECTED_ZIP_COMMENT
=
"DETECTED_ZIP_COMMENT"
;
public
static
final
String
BAD_REPACK_OUTPUT
=
"BAD_REPACK_OUTPUT"
;
public
static
final
String
SKIP_FOR_REPACKED
=
"SKIP_FOR_REPACKED"
;
public
static
final
String
DETECTED_ZIP_COMMENT
=
"DETECTED_ZIP_COMMENT"
;
public
static
final
String
WRITE_PACK_FILE
=
"WRITE_PACK_FILE"
;
public
static
final
String
SKIP_FOR_REPACKED
=
"SKIP_FOR_REPACKED"
;
public
static
final
String
WIRTE_PACKGZ_FILE
=
"WIRTE_PACKGZ_FILE"
;
public
static
final
String
WRITE_PACK_FILE
=
"WRITE_PACK_FILE"
;
public
static
final
String
SKIP_FOR_MOVE_FAILED
=
"SKIP_FOR_MOVE_FAILED"
;
public
static
final
String
WRITE_PACKGZ_FILE
=
"WRITE_PACKGZ_FILE"
;
public
static
final
String
PACK_HELP
=
"PACK_HELP"
;
public
static
final
String
SKIP_FOR_MOVE_FAILED
=
"SKIP_FOR_MOVE_FAILED"
;
public
static
final
String
UNPACK_HELP
=
"UNPACK_HELP"
;
public
static
final
String
PACK_HELP
=
"PACK_HELP"
;
public
static
final
String
UNPACK_HELP
=
"UNPACK_HELP"
;
public
static
final
String
MORE_INFO
=
"MORE_INFO"
;
public
static
final
String
MORE_INFO
=
"MORE_INFO"
;
public
static
final
String
DUPLICATE_OPTION
=
"DUPLICATE_OPTION"
;
public
static
final
String
DUPLICATE_OPTION
=
"DUPLICATE_OPTION"
;
public
static
final
String
BAD_SPEC
=
"BAD_SPEC"
;
public
static
final
String
BAD_SPEC
=
"BAD_SPEC"
;
//The following string is duplicate in PACK and UNPACK comment,which was draw out to ruduce translation work.
/*
private
static
final
String
PARAMETER_V
=
" -v, --verbose increase program verbosity"
;
* The following are the output of 'pack200' and 'unpack200' commands.
private
static
final
String
PARAMETER_Q
=
" -q, --quiet set verbosity to lowest level"
;
* Do not translate command arguments and words with a prefix of '-' or '--'.
private
static
final
String
PARAMETER_LF
=
" -l{F}, --log-file={F} output to the given log file, or '-' for System.out"
;
*/
private
static
final
String
PARAMETER_H
=
" -?, -h, --help print this message"
;
private
static
final
Object
[][]
resource
=
{
private
static
final
String
PARAMETER_VER
=
" -V, --version print program version"
;
{
VERSION
,
"{0} version {1}"
},
// parameter 0:class name;parameter 1: version value
private
static
final
String
PARAMETER_J
=
" -J{X} pass option X to underlying Java VM"
;
{
BAD_ARGUMENT
,
"Bad argument: {0}"
},
{
BAD_OPTION
,
"Bad option: {0}={1}"
},
// parameter 0:option name;parameter 1:option value
{
BAD_REPACK_OUTPUT
,
"Bad --repack output: {0}"
},
// parameter 0:filename
//The following are outputs of command 'pack200' and 'unpack200'.
{
DETECTED_ZIP_COMMENT
,
"Detected ZIP comment: {0}"
},
// parameter 0:comment
//Don't translate command arguments ,words with a prefix of '-' or '--'.
{
SKIP_FOR_REPACKED
,
"Skipping because already repacked: {0}"
},
// parameter 0:filename
//
{
WRITE_PACK_FILE
,
"To write a *.pack file, specify --no-gzip: {0}"
},
// parameter 0:filename
private
static
final
Object
[][]
resource
=
{
{
WRITE_PACKGZ_FILE
,
"To write a *.pack.gz file, specify --gzip: {0}"
},
// parameter 0:filename
{
VERSION
,
"{0} version {1}"
},
//parameter 0:class name;parameter 1: version value
{
SKIP_FOR_MOVE_FAILED
,
"Skipping unpack because move failed: {0}"
},
// parameter 0:filename
{
BAD_ARGUMENT
,
"Bad argument: {0}"
},
{
PACK_HELP
,
new
String
[]
{
{
BAD_OPTION
,
"Bad option: {0}={1}"
},
//parameter 0:option name;parameter 1:option value
{
BAD_REPACK_OUTPUT
,
"Bad --repack output: {0}"
},
//parameter 0:filename
{
DETECTED_ZIP_COMMENT
,
"Detected ZIP comment: {0}"
},
//parameter 0:comment
{
SKIP_FOR_REPACKED
,
"Skipping because already repacked: {0}"
},
//parameter 0:filename
{
WRITE_PACK_FILE
,
"To write a *.pack file, specify --no-gzip: {0}"
},
//parameter 0:filename
{
WIRTE_PACKGZ_FILE
,
"To write a *.pack.gz file, specify --gzip: {0}"
},
//parameter 0:filename
{
SKIP_FOR_MOVE_FAILED
,
"Skipping unpack because move failed: {0}"
},
//parameter 0:filename
{
PACK_HELP
,
new
String
[]{
"Usage: pack200 [-opt... | --option=value]... x.pack[.gz] y.jar"
,
"Usage: pack200 [-opt... | --option=value]... x.pack[.gz] y.jar"
,
""
,
""
,
"Packing Options"
,
"Packing Options"
,
...
@@ -85,12 +77,12 @@ public class DriverResource extends ListResourceBundle {
...
@@ -85,12 +77,12 @@ public class DriverResource extends ListResourceBundle {
" -M{N}={L}, --method-attribute={N}={L} (user-defined attribute)"
,
" -M{N}={L}, --method-attribute={N}={L} (user-defined attribute)"
,
" -D{N}={L}, --code-attribute={N}={L} (user-defined attribute)"
,
" -D{N}={L}, --code-attribute={N}={L} (user-defined attribute)"
,
" -f{F}, --config-file={F} read file F for Pack200.Packer properties"
,
" -f{F}, --config-file={F} read file F for Pack200.Packer properties"
,
PARAMETER_V
,
" -v, --verbose increase program verbosity"
,
PARAMETER_Q
,
" -q, --quiet set verbosity to lowest level"
,
PARAMETER_LF
,
" -l{F}, --log-file={F} output to the given log file, or '-' for System.out"
,
PARAMETER_H
,
" -?, -h, --help print this message"
,
PARAMETER_VER
,
" -V, --version print program version"
,
PARAMETER_J
,
" -J{X} pass option X to underlying Java VM"
,
""
,
""
,
"Notes:"
,
"Notes:"
,
" The -P, -C, -F, -M, and -D options accumulate."
,
" The -P, -C, -F, -M, and -D options accumulate."
,
...
@@ -103,29 +95,26 @@ public class DriverResource extends ListResourceBundle {
...
@@ -103,29 +95,26 @@ public class DriverResource extends ListResourceBundle {
" pack200 [-r|--repack] [-opt | --option=value]... [repackedy.jar] y.jar\n"
" pack200 [-r|--repack] [-opt | --option=value]... [repackedy.jar] y.jar\n"
}
}
},
},
{
UNPACK_HELP
,
new
String
[]
{
{
UNPACK_HELP
,
new
String
[]
{
"Usage: unpack200 [-opt... | --option=value]... x.pack[.gz] y.jar\n"
,
"Usage: unpack200 [-opt... | --option=value]... x.pack[.gz] y.jar\n"
,
""
,
""
,
"Unpacking Options"
,
"Unpacking Options"
,
" -H{h}, --deflate-hint={h} override transmitted deflate hint: true, false, or keep (default)"
,
" -H{h}, --deflate-hint={h} override transmitted deflate hint: true, false, or keep (default)"
,
" -r, --remove-pack-file remove input file after unpacking"
,
" -r, --remove-pack-file remove input file after unpacking"
,
PARAMETER_V
,
" -v, --verbose increase program verbosity"
,
PARAMETER_Q
,
" -q, --quiet set verbosity to lowest level"
,
PARAMETER_LF
,
" -l{F}, --log-file={F} output to the given log file, or '-' for System.out"
,
PARAMETER_H
,
" -?, -h, --help print this message"
,
PARAMETER_VER
,
" -V, --version print program version"
,
PARAMETER_J
,
" -J{X} pass option X to underlying Java VM"
}
}
},
},
{
MORE_INFO
,
"(For more information, run {0} --help .)"
},
// parameter 0:command name
{
MORE_INFO
,
"(For more information, run {0} --help .)"
},
//parameter 0:command name
{
DUPLICATE_OPTION
,
"duplicate option: {0}"
},
// parameter 0:option
{
DUPLICATE_OPTION
,
"duplicate option: {0}"
},
//parameter 0:option
{
BAD_SPEC
,
"bad spec for {0}: {1}"
},
// parameter 0:option;parameter 1:specifier
{
BAD_SPEC
,
"bad spec for {0}: {1}"
},
//parameter 0:option;parameter 1:specifier
};
};
protected
Object
[][]
getContents
()
{
protected
Object
[][]
getContents
()
{
return
resource
;
return
resource
;
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录