Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
41f0fb87
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
41f0fb87
编写于
5月 02, 2011
作者:
B
bpatel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6553182: Need to modify javadoc doclet for GPL
Reviewed-by: jjg
上级
5d8abc71
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
281 addition
and
27 deletion
+281
-27
src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java
...com/sun/tools/doclets/formats/html/ConfigurationImpl.java
+19
-2
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
.../com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
+52
-18
src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java
.../com/sun/tools/doclets/formats/html/TagletWriterImpl.java
+5
-2
src/share/classes/com/sun/tools/doclets/formats/html/resources/standard.properties
.../tools/doclets/formats/html/resources/standard.properties
+1
-0
test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java
test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java
+101
-0
test/com/sun/javadoc/testDocRootLink/pkg1/C1.java
test/com/sun/javadoc/testDocRootLink/pkg1/C1.java
+31
-0
test/com/sun/javadoc/testDocRootLink/pkg1/package.html
test/com/sun/javadoc/testDocRootLink/pkg1/package.html
+18
-0
test/com/sun/javadoc/testDocRootLink/pkg2/C2.java
test/com/sun/javadoc/testDocRootLink/pkg2/C2.java
+31
-0
test/com/sun/javadoc/testDocRootLink/pkg2/package.html
test/com/sun/javadoc/testDocRootLink/pkg2/package.html
+18
-0
test/com/sun/javadoc/testHelpOption/TestHelpOption.java
test/com/sun/javadoc/testHelpOption/TestHelpOption.java
+5
-5
未找到文件。
src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java
浏览文件 @
41f0fb87
/*
/*
* Copyright (c) 1998, 20
09
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 20
11
, 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
...
@@ -31,6 +31,7 @@ import com.sun.tools.doclets.internal.toolkit.util.*;
...
@@ -31,6 +31,7 @@ import com.sun.tools.doclets.internal.toolkit.util.*;
import
com.sun.javadoc.*
;
import
com.sun.javadoc.*
;
import
java.util.*
;
import
java.util.*
;
import
java.io.*
;
import
java.io.*
;
import
java.net.*
;
/**
/**
* Configure the output based on the command line options.
* Configure the output based on the command line options.
...
@@ -48,6 +49,7 @@ import java.io.*;
...
@@ -48,6 +49,7 @@ import java.io.*;
* @author Robert Field.
* @author Robert Field.
* @author Atul Dambalkar.
* @author Atul Dambalkar.
* @author Jamie Ho
* @author Jamie Ho
* @author Bhavesh Patel (Modified)
*/
*/
public
class
ConfigurationImpl
extends
Configuration
{
public
class
ConfigurationImpl
extends
Configuration
{
...
@@ -109,6 +111,11 @@ public class ConfigurationImpl extends Configuration {
...
@@ -109,6 +111,11 @@ public class ConfigurationImpl extends Configuration {
*/
*/
public
String
stylesheetfile
=
""
;
public
String
stylesheetfile
=
""
;
/**
* Argument for command line option "-Xdocrootparent".
*/
public
String
docrootparent
=
""
;
/**
/**
* True if command line option "-nohelp" is used. Default value is false.
* True if command line option "-nohelp" is used. Default value is false.
*/
*/
...
@@ -239,6 +246,8 @@ public class ConfigurationImpl extends Configuration {
...
@@ -239,6 +246,8 @@ public class ConfigurationImpl extends Configuration {
stylesheetfile
=
os
[
1
];
stylesheetfile
=
os
[
1
];
}
else
if
(
opt
.
equals
(
"-charset"
))
{
}
else
if
(
opt
.
equals
(
"-charset"
))
{
charset
=
os
[
1
];
charset
=
os
[
1
];
}
else
if
(
opt
.
equals
(
"-xdocrootparent"
))
{
docrootparent
=
os
[
1
];
}
else
if
(
opt
.
equals
(
"-nohelp"
))
{
}
else
if
(
opt
.
equals
(
"-nohelp"
))
{
nohelp
=
true
;
nohelp
=
true
;
}
else
if
(
opt
.
equals
(
"-splitindex"
))
{
}
else
if
(
opt
.
equals
(
"-splitindex"
))
{
...
@@ -322,7 +331,8 @@ public class ConfigurationImpl extends Configuration {
...
@@ -322,7 +331,8 @@ public class ConfigurationImpl extends Configuration {
option
.
equals
(
"-helpfile"
)
||
option
.
equals
(
"-helpfile"
)
||
option
.
equals
(
"-stylesheetfile"
)
||
option
.
equals
(
"-stylesheetfile"
)
||
option
.
equals
(
"-charset"
)
||
option
.
equals
(
"-charset"
)
||
option
.
equals
(
"-overview"
))
{
option
.
equals
(
"-overview"
)
||
option
.
equals
(
"-xdocrootparent"
))
{
return
2
;
return
2
;
}
else
{
}
else
{
return
0
;
return
0
;
...
@@ -372,6 +382,13 @@ public class ConfigurationImpl extends Configuration {
...
@@ -372,6 +382,13 @@ public class ConfigurationImpl extends Configuration {
return
false
;
return
false
;
}
}
nohelp
=
true
;
nohelp
=
true
;
}
else
if
(
opt
.
equals
(
"-xdocrootparent"
))
{
try
{
new
URL
(
os
[
1
]);
}
catch
(
MalformedURLException
e
)
{
reporter
.
printError
(
getText
(
"doclet.MalformedURL"
,
os
[
1
]));
return
false
;
}
}
else
if
(
opt
.
equals
(
"-overview"
))
{
}
else
if
(
opt
.
equals
(
"-overview"
))
{
if
(
nooverview
==
true
)
{
if
(
nooverview
==
true
)
{
reporter
.
printError
(
getText
(
"doclet.Option_conflict"
,
reporter
.
printError
(
getText
(
"doclet.Option_conflict"
,
...
...
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
浏览文件 @
41f0fb87
...
@@ -159,22 +159,42 @@ public class HtmlDocletWriter extends HtmlDocWriter {
...
@@ -159,22 +159,42 @@ public class HtmlDocletWriter extends HtmlDocWriter {
StringBuilder
buf
=
new
StringBuilder
();
StringBuilder
buf
=
new
StringBuilder
();
int
previndex
=
0
;
int
previndex
=
0
;
while
(
true
)
{
while
(
true
)
{
// Search for lowercase version of {@docRoot}
if
(
configuration
.
docrootparent
.
length
()
>
0
)
{
index
=
lowerHtml
.
indexOf
(
"{@docroot}"
,
previndex
);
// Search for lowercase version of {@docRoot}/..
// If next {@docRoot} tag not found, append rest of htmlstr and exit loop
index
=
lowerHtml
.
indexOf
(
"{@docroot}/.."
,
previndex
);
if
(
index
<
0
)
{
// If next {@docRoot}/.. pattern not found, append rest of htmlstr and exit loop
buf
.
append
(
htmlstr
.
substring
(
previndex
));
if
(
index
<
0
)
{
break
;
buf
.
append
(
htmlstr
.
substring
(
previndex
));
}
break
;
// If next {@docroot} tag found, append htmlstr up to start of tag
}
buf
.
append
(
htmlstr
.
substring
(
previndex
,
index
));
// If next {@docroot}/.. pattern found, append htmlstr up to start of tag
previndex
=
index
+
10
;
// length for {@docroot} string
buf
.
append
(
htmlstr
.
substring
(
previndex
,
index
));
// Insert relative path where {@docRoot} was located
previndex
=
index
+
13
;
// length for {@docroot}/.. string
buf
.
append
(
relativepathNoSlash
);
// Insert docrootparent absolute path where {@docRoot}/.. was located
// Append slash if next character is not a slash
if
(
relativepathNoSlash
.
length
()
>
0
&&
previndex
<
htmlstr
.
length
()
buf
.
append
(
configuration
.
docrootparent
);
&&
htmlstr
.
charAt
(
previndex
)
!=
'/'
)
{
// Append slash if next character is not a slash
buf
.
append
(
DirectoryManager
.
URL_FILE_SEPARATOR
);
if
(
previndex
<
htmlstr
.
length
()
&&
htmlstr
.
charAt
(
previndex
)
!=
'/'
)
{
buf
.
append
(
DirectoryManager
.
URL_FILE_SEPARATOR
);
}
}
else
{
// Search for lowercase version of {@docRoot}
index
=
lowerHtml
.
indexOf
(
"{@docroot}"
,
previndex
);
// If next {@docRoot} tag not found, append rest of htmlstr and exit loop
if
(
index
<
0
)
{
buf
.
append
(
htmlstr
.
substring
(
previndex
));
break
;
}
// If next {@docroot} tag found, append htmlstr up to start of tag
buf
.
append
(
htmlstr
.
substring
(
previndex
,
index
));
previndex
=
index
+
10
;
// length for {@docroot} string
// Insert relative path where {@docRoot} was located
buf
.
append
(
relativepathNoSlash
);
// Append slash if next character is not a slash
if
(
relativepathNoSlash
.
length
()
>
0
&&
previndex
<
htmlstr
.
length
()
&&
htmlstr
.
charAt
(
previndex
)
!=
'/'
)
{
buf
.
append
(
DirectoryManager
.
URL_FILE_SEPARATOR
);
}
}
}
}
}
return
buf
.
toString
();
return
buf
.
toString
();
...
@@ -2318,6 +2338,7 @@ public class HtmlDocletWriter extends HtmlDocWriter {
...
@@ -2318,6 +2338,7 @@ public class HtmlDocletWriter extends HtmlDocWriter {
public
String
commentTagsToString
(
Tag
holderTag
,
Doc
doc
,
Tag
[]
tags
,
public
String
commentTagsToString
(
Tag
holderTag
,
Doc
doc
,
Tag
[]
tags
,
boolean
isFirstSentence
)
{
boolean
isFirstSentence
)
{
StringBuilder
result
=
new
StringBuilder
();
StringBuilder
result
=
new
StringBuilder
();
boolean
textTagChange
=
false
;
// Array of all possible inline tags for this javadoc run
// Array of all possible inline tags for this javadoc run
configuration
.
tagletManager
.
checkTags
(
doc
,
tags
,
true
);
configuration
.
tagletManager
.
checkTags
(
doc
,
tags
,
true
);
for
(
int
i
=
0
;
i
<
tags
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
tags
.
length
;
i
++)
{
...
@@ -2333,13 +2354,26 @@ public class HtmlDocletWriter extends HtmlDocWriter {
...
@@ -2333,13 +2354,26 @@ public class HtmlDocletWriter extends HtmlDocWriter {
result
.
append
(
output
==
null
?
""
:
output
.
toString
());
result
.
append
(
output
==
null
?
""
:
output
.
toString
());
if
(
originalLength
==
0
&&
isFirstSentence
&&
tagelem
.
name
().
equals
(
"@inheritDoc"
)
&&
result
.
length
()
>
0
)
{
if
(
originalLength
==
0
&&
isFirstSentence
&&
tagelem
.
name
().
equals
(
"@inheritDoc"
)
&&
result
.
length
()
>
0
)
{
break
;
break
;
}
else
if
(
configuration
.
docrootparent
.
length
()
>
0
&&
tagelem
.
name
().
equals
(
"@docRoot"
)
&&
((
tags
[
i
+
1
]).
text
()).
startsWith
(
"/.."
))
{
//If Xdocrootparent switch ON, set the flag to remove the /.. occurance after
//{@docRoot} tag in the very next Text tag.
textTagChange
=
true
;
continue
;
}
else
{
}
else
{
continue
;
continue
;
}
}
}
else
{
}
else
{
String
text
=
tagelem
.
text
();
//If Xdocrootparent switch ON, remove the /.. occurance after {@docRoot} tag.
if
(
textTagChange
)
{
text
=
text
.
replaceFirst
(
"/.."
,
""
);
textTagChange
=
false
;
}
//This is just a regular text tag. The text may contain html links (<a>)
//This is just a regular text tag. The text may contain html links (<a>)
//or inline tag {@docRoot}, which will be handled as special cases.
//or inline tag {@docRoot}, which will be handled as special cases.
String
text
=
redirectRelativeLinks
(
tagelem
.
holder
(),
tagelem
.
text
()
);
text
=
redirectRelativeLinks
(
tagelem
.
holder
(),
text
);
// Replace @docRoot only if not represented by an instance of DocRootTaglet,
// Replace @docRoot only if not represented by an instance of DocRootTaglet,
// that is, only if it was not present in a source file doc comment.
// that is, only if it was not present in a source file doc comment.
...
...
src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java
浏览文件 @
41f0fb87
/*
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
1
, 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
...
@@ -59,7 +59,10 @@ public class TagletWriterImpl extends TagletWriter {
...
@@ -59,7 +59,10 @@ public class TagletWriterImpl extends TagletWriter {
* {@inheritDoc}
* {@inheritDoc}
*/
*/
public
TagletOutput
getDocRootOutput
()
{
public
TagletOutput
getDocRootOutput
()
{
return
new
TagletOutputImpl
(
htmlWriter
.
relativepathNoSlash
);
if
(
htmlWriter
.
configuration
.
docrootparent
.
length
()
>
0
)
return
new
TagletOutputImpl
(
htmlWriter
.
configuration
.
docrootparent
);
else
return
new
TagletOutputImpl
(
htmlWriter
.
relativepathNoSlash
);
}
}
/**
/**
...
...
src/share/classes/com/sun/tools/doclets/formats/html/resources/standard.properties
浏览文件 @
41f0fb87
...
@@ -247,6 +247,7 @@ doclet.usage=Provided by Standard doclet:\n\
...
@@ -247,6 +247,7 @@ doclet.usage=Provided by Standard doclet:\n\
-tag <name>:<locations>:<header> Specify single argument custom tags
\n\
-tag <name>:<locations>:<header> Specify single argument custom tags
\n\
-taglet The fully qualified name of Taglet to register
\n\
-taglet The fully qualified name of Taglet to register
\n\
-tagletpath The path to Taglets
\n\
-tagletpath The path to Taglets
\n\
-Xdocrootparent <url> Replaces all appearances of @docRoot followed by /.. in doc comments with <url>
\n\
-charset <charset> Charset for cross-platform viewing of generated documentation.
\n\
-charset <charset> Charset for cross-platform viewing of generated documentation.
\n\
-helpfile <file> Include file that help link links to
\n\
-helpfile <file> Include file that help link links to
\n\
-linksource Generate source in HTML
\n\
-linksource Generate source in HTML
\n\
...
...
test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java
0 → 100644
浏览文件 @
41f0fb87
/*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6553182
* @summary This test verifies the -Xdocrootparent option.
* @author Bhavesh Patel
* @library ../lib/
* @build JavadocTester TestDocRootLink
* @run main TestDocRootLink
*/
public
class
TestDocRootLink
extends
JavadocTester
{
private
static
final
String
BUG_ID
=
"6553182"
;
private
static
final
String
[][]
TEST1
=
{
{
BUG_ID
+
FS
+
"pkg1"
+
FS
+
"C1.html"
,
"<a href=\"../../technotes/guides/index.html\">"
},
{
BUG_ID
+
FS
+
"pkg1"
+
FS
+
"package-summary.html"
,
"<a href=\"../../technotes/guides/index.html\">"
}
};
private
static
final
String
[][]
NEGATED_TEST1
=
{
{
BUG_ID
+
FS
+
"pkg1"
+
FS
+
"C1.html"
,
"<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">"
},
{
BUG_ID
+
FS
+
"pkg1"
+
FS
+
"package-summary.html"
,
"<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">"
}
};
private
static
final
String
[][]
TEST2
=
{
{
BUG_ID
+
FS
+
"pkg2"
+
FS
+
"C2.html"
,
"<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">"
},
{
BUG_ID
+
FS
+
"pkg2"
+
FS
+
"package-summary.html"
,
"<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">"
}
};
private
static
final
String
[][]
NEGATED_TEST2
=
{
{
BUG_ID
+
FS
+
"pkg2"
+
FS
+
"C2.html"
,
"<a href=\"../../technotes/guides/index.html\">"
},
{
BUG_ID
+
FS
+
"pkg2"
+
FS
+
"package-summary.html"
,
"<a href=\"../../technotes/guides/index.html\">"
}
};
private
static
final
String
[]
ARGS1
=
new
String
[]{
"-d"
,
BUG_ID
,
"-sourcepath"
,
SRC_DIR
,
"pkg1"
};
private
static
final
String
[]
ARGS2
=
new
String
[]{
"-d"
,
BUG_ID
,
"-Xdocrootparent"
,
"http://download.oracle.com/javase/7/docs"
,
"-sourcepath"
,
SRC_DIR
,
"pkg2"
};
/**
* The entry point of the test.
* @param args the array of command line arguments.
*/
public
static
void
main
(
String
[]
args
)
{
TestDocRootLink
tester
=
new
TestDocRootLink
();
run
(
tester
,
ARGS1
,
TEST1
,
NEGATED_TEST1
);
run
(
tester
,
ARGS2
,
TEST2
,
NEGATED_TEST2
);
tester
.
printSummary
();
}
/**
* {@inheritDoc}
*/
public
String
getBugId
()
{
return
BUG_ID
;
}
/**
* {@inheritDoc}
*/
public
String
getBugName
()
{
return
getClass
().
getName
();
}
}
test/com/sun/javadoc/testDocRootLink/pkg1/C1.java
0 → 100644
浏览文件 @
41f0fb87
/*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package
pkg1
;
/**
* Class 1. This is a test.
* Refer <a href="{@docRoot}/../technotes/guides/index.html">Here</a>. Lets see if this works
* or not.
*/
public
class
C1
{}
test/com/sun/javadoc/testDocRootLink/pkg1/package.html
0 → 100644
浏览文件 @
41f0fb87
<html>
<head>
<title>
javax.management package
</title>
</head>
<body
bgcolor=
"white"
>
This is a test.
<p
id=
"spec"
>
@see
<a
href=
"{@docRoot}/../technotes/guides/index.html"
>
Test document 1
</a>
in particular the
<a
href=
"{@docRoot}/../technotes/guides/index.html"
>
Test document 2.
</a>
@since 1.5
</body>
</html>
test/com/sun/javadoc/testDocRootLink/pkg2/C2.java
0 → 100644
浏览文件 @
41f0fb87
/*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package
pkg2
;
/**
* Class 1. This is a test.
* Refer <a href="{@docRoot}/../technotes/guides/index.html">Here</a>. Lets see if this works
* or not.
*/
public
class
C2
{}
test/com/sun/javadoc/testDocRootLink/pkg2/package.html
0 → 100644
浏览文件 @
41f0fb87
<html>
<head>
<title>
javax.management package
</title>
</head>
<body
bgcolor=
"white"
>
This is a test.
<p
id=
"spec"
>
@see
<a
href=
"{@docRoot}/../technotes/guides/index.html"
>
Test document 1
</a>
in particular the
<a
href=
"{@docRoot}/../technotes/guides/index.html"
>
Test document 2.
</a>
@since 1.5
</body>
</html>
test/com/sun/javadoc/testHelpOption/TestHelpOption.java
浏览文件 @
41f0fb87
/*
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
1
, 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
...
@@ -23,20 +23,19 @@
...
@@ -23,20 +23,19 @@
/*
/*
* @test
* @test
* @bug 4934778 4777599
* @bug 4934778 4777599
6553182
* @summary Make sure that the -help option works properly. Make sure
* @summary Make sure that the -help option works properly. Make sure
* the help link appears in the documentation.
* the help link appears in the documentation.
* @author jamieh
* @author jamieh
* @library ../lib/
* @library ../lib/
* @build JavadocTester
* @build JavadocTester TestHelpOption
* @build TestHelpOption
* @run main TestHelpOption
* @run main TestHelpOption
*/
*/
public
class
TestHelpOption
extends
JavadocTester
{
public
class
TestHelpOption
extends
JavadocTester
{
//Test information.
//Test information.
private
static
final
String
BUG_ID
=
"4934778-4777599"
;
private
static
final
String
BUG_ID
=
"4934778-4777599
-6553182
"
;
//Javadoc arguments.
//Javadoc arguments.
private
static
final
String
[]
ARGS
=
new
String
[]
{
private
static
final
String
[]
ARGS
=
new
String
[]
{
...
@@ -79,6 +78,7 @@ public class TestHelpOption extends JavadocTester {
...
@@ -79,6 +78,7 @@ public class TestHelpOption extends JavadocTester {
{
STANDARD_OUTPUT
,
"-tag "
},
{
STANDARD_OUTPUT
,
"-tag "
},
{
STANDARD_OUTPUT
,
"-taglet "
},
{
STANDARD_OUTPUT
,
"-taglet "
},
{
STANDARD_OUTPUT
,
"-tagletpath "
},
{
STANDARD_OUTPUT
,
"-tagletpath "
},
{
STANDARD_OUTPUT
,
"-Xdocrootparent "
},
{
STANDARD_OUTPUT
,
"-charset "
},
{
STANDARD_OUTPUT
,
"-charset "
},
{
STANDARD_OUTPUT
,
"-helpfile "
},
{
STANDARD_OUTPUT
,
"-helpfile "
},
{
STANDARD_OUTPUT
,
"-linksource "
},
{
STANDARD_OUTPUT
,
"-linksource "
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录