Skip to content

Commit 6f70dfa

Browse files
authored
fix javadoc pathing (apache#280)
1 parent 0958245 commit 6f70dfa

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/site/xdoc/properties.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
<section name="Defining Option Properties">
2929
<p>
3030
The following are the properties that each
31-
<a href="api-release/org/apache/commons/cli/Option.html">Option</a> has. All of these
31+
<a href="javadocs/api-release/org/apache/commons/cli/Option.html">Option</a> has. All of these
3232
can be set using the accessors or using the methods
3333
defined in the
34-
<a href="api-release/org/apache/commons/cli/OptionBuilder.html">OptionBuilder</a>.
34+
<a href="javadocs/api-release/org/apache/commons/cli/OptionBuilder.html">OptionBuilder</a>.
3535
</p>
3636
<table>
3737
<tr>

src/site/xdoc/usage.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</subsection>
4646
<subsection name="Creating the Options">
4747
<p>
48-
An <a href="api-release/org/apache/commons/cli/Options.html">
48+
An <a href="javadocs/api-release/org/apache/commons/cli/Options.html">
4949
Options</a> object must be created and the <code>Option</code> must be
5050
added to it.
5151
</p>
@@ -78,7 +78,7 @@ CommandLine cmd = parser.parse(options, args);</source>
7878
<p>
7979
Now we need to check if the <code>t</code> option is present. To do
8080
this we will interrogate the
81-
<a href="api-release/org/apache/commons/cli/CommandLine.html">CommandLine
81+
<a href="javadocs/api-release/org/apache/commons/cli/CommandLine.html">CommandLine
8282
</a> object. The <code>hasOption</code> method takes a
8383
<code>java.lang.String</code> parameter and returns <code>true</code> if the option
8484
represented by the <code>java.lang.String</code> is present, otherwise
@@ -229,11 +229,11 @@ Option find = Option.builder("find")
229229
<subsection name="Creating the Options">
230230
<p>
231231
Now that we have created each
232-
<a href="api-release/org/apache/commons/cli/Option.html">Option</a> we need
232+
<a href="javadocs/api-release/org/apache/commons/cli/Option.html">Option</a> we need
233233
to create the
234-
<a href="api-release/org/apache/commons/cli/Options.html">Options</a>
234+
<a href="javadocs/api-release/org/apache/commons/cli/Options.html">Options</a>
235235
instance. This is achieved using the
236-
<a href="api-release/org/apache/commons/cli/CommandLine.html#addOption(org.apache.commons.cli.Option)">addOption</a>
236+
<a href="javadocs/api-release/org/apache/commons/cli/CommandLine.html#addOption(org.apache.commons.cli.Option)">addOption</a>
237237
method of <code>Options</code>.
238238
</p>
239239
<source>Options options = new Options();
@@ -260,7 +260,7 @@ options.addOption(property);</source>
260260
<p>
261261
We now need to create a <code>CommandLineParser</code>. This will parse the command
262262
line arguments, using the rules specified by the <code>Options</code> and
263-
return an instance of <a href="api-release/org/apache/commons/cli/CommandLine.html">CommandLine</a>.
263+
return an instance of <a href="javadocs/api-release/org/apache/commons/cli/CommandLine.html">CommandLine</a>.
264264
</p>
265265
<source>public static void main(String[] args) {
266266
// create the parser
@@ -291,7 +291,7 @@ if (line.hasOption("buildfile")) {
291291
<p>
292292
CLI also provides the means to automatically generate usage
293293
and help information. This is achieved with the
294-
<a href="api-release/org/apache/commons/cli/HelpFormatter.html">HelpFormatter</a>
294+
<a href="javadocs/api-release/org/apache/commons/cli/HelpFormatter.html">HelpFormatter</a>
295295
class.
296296
</p>
297297
<source>// automatically generate the help statement
@@ -345,7 +345,7 @@ Sort entries alphabetically if none of -cftuSUX nor --sort.
345345
-C list entries by columns</source>
346346
<p>
347347
The following is the code that is used to create the
348-
<a href="api-release/org/apache/commons/cli/Options.html">Options</a> for this example.
348+
<a href="javadocs/api-release/org/apache/commons/cli/Options.html">Options</a> for this example.
349349
</p>
350350
<source>// create the command line parser
351351
CommandLineParser parser = new DefaultParser();

0 commit comments

Comments
 (0)