Skip to content

Commit 9922274

Browse files
committed
Changed the links to the javadoc from the site documentation, the target directory is now independent from the version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@961393 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0004b27 commit 9922274

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/site/xdoc/introduction.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
to define the interface to the application.
4040
</p>
4141
<p>
42-
CLI uses the <a href="api-1.2/org/apache/commons/cli/Options.html">
42+
CLI uses the <a href="api-release/org/apache/commons/cli/Options.html">
4343
Options</a> class, as a container for
44-
<a href="api-1.2/org/apache/commons/cli/Option.html">
44+
<a href="api-release/org/apache/commons/cli/Option.html">
4545
Option</a> instances. There are two ways to create
4646
<code>Option</code>s in CLI. One of them is via the constructors,
4747
the other way is via the factory methods defined in
@@ -66,11 +66,11 @@
6666
</p>
6767
<p>
6868
The <code>parse</code> method defined on
69-
<a href="api-1.2/org/apache/commons/cli/CommandLineParser.html">
69+
<a href="api-release/org/apache/commons/cli/CommandLineParser.html">
7070
CommandLineParser</a> takes an <code>Options</code>
7171
instance and a <code>String[]</code> of arguments and
7272
returns a
73-
<a href="api-1.2/org/apache/commons/cli/CommandLine.html">
73+
<a href="api-release/org/apache/commons/cli/CommandLine.html">
7474
CommandLine</a>.
7575
</p>
7676
<p>

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="Option Properties">
2929
<p>
3030
The following are the properties that each
31-
<a href="api-1.2/org/apache/commons/cli/Option.html">Option</a> has. All of these
31+
<a href="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-1.2/org/apache/commons/cli/OptionBuilder.html">OptionBuilder</a>.
34+
<a href="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="Create the Options">
4747
<p>
48-
An <a href="api-1.2/org/apache/commons/cli/Options.html">
48+
An <a href="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-1.2/org/apache/commons/cli/CommandLine.html">CommandLine
81+
<a href="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
@@ -212,11 +212,11 @@ Option find = OptionBuilder.withArgName( "file" )
212212
<subsection name="Create the Options">
213213
<p>
214214
Now that we have created each
215-
<a href="api-1.2/org/apache/commons/cli/Option.html">Option</a> we need
215+
<a href="api-release/org/apache/commons/cli/Option.html">Option</a> we need
216216
to create the
217-
<a href="api-1.2/org/apache/commons/cli/Options.html">Options</a>
217+
<a href="api-release/org/apache/commons/cli/Options.html">Options</a>
218218
instance. This is achieved using the
219-
<a href="api-1.2/org/apache/commons/cli/CommandLine.html#addOption(org.apache.commons.cli.Option)">addOption</a>
219+
<a href="api-release/org/apache/commons/cli/CommandLine.html#addOption(org.apache.commons.cli.Option)">addOption</a>
220220
method of <code>Options</code>.
221221
</p>
222222
<source>Options options = new Options();
@@ -243,7 +243,7 @@ options.addOption( property );</source>
243243
<p>
244244
We now need to create a <code>CommandLineParser</code>. This will parse the command
245245
line arguments, using the rules specified by the <code>Options</code> and
246-
return an instance of <a href="api-1.2/org/apache/commons/cli/CommandLine.html">CommandLine</a>.
246+
return an instance of <a href="api-release/org/apache/commons/cli/CommandLine.html">CommandLine</a>.
247247
</p>
248248
<source>public static void main( String[] args ) {
249249
// create the parser
@@ -274,7 +274,7 @@ if( line.hasOption( "buildfile" ) ) {
274274
<p>
275275
CLI also provides the means to automatically generate usage
276276
and help information. This is achieved with the
277-
<a href="api-1.2/org/apache/commons/cli/HelpFormatter.html">HelpFormatter</a>
277+
<a href="api-release/org/apache/commons/cli/HelpFormatter.html">HelpFormatter</a>
278278
class.
279279
</p>
280280
<source>// automatically generate the help statement
@@ -328,7 +328,7 @@ Sort entries alphabetically if none of -cftuSUX nor --sort.
328328
-C list entries by columns</source>
329329
<p>
330330
The following is the code that is used to create the
331-
<a href="api-1.2/org/apache/commons/cli/Options.html">Options</a> for this example.
331+
<a href="api-release/org/apache/commons/cli/Options.html">Options</a> for this example.
332332
</p>
333333
<source>// create the command line parser
334334
CommandLineParser parser = new DefaultParser();

0 commit comments

Comments
 (0)