Author: ebourg
Date: Wed Jul 7 14:39:27 2010
New Revision: 961393
URL: http://svn.apache.org/viewvc?rev=961393&view=rev
Log:
Changed the links to the javadoc from the site documentation, the target
directory is now independent from the version
Modified:
commons/proper/cli/trunk/src/site/xdoc/introduction.xml
commons/proper/cli/trunk/src/site/xdoc/properties.xml
commons/proper/cli/trunk/src/site/xdoc/usage.xml
Modified: commons/proper/cli/trunk/src/site/xdoc/introduction.xml
URL:
http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/site/xdoc/introduction.xml?rev=961393&r1=961392&r2=961393&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/site/xdoc/introduction.xml (original)
+++ commons/proper/cli/trunk/src/site/xdoc/introduction.xml Wed Jul 7 14:39:27
2010
@@ -39,9 +39,9 @@
to define the interface to the application.
</p>
<p>
- CLI uses the <a href="api-1.2/org/apache/commons/cli/Options.html">
+ CLI uses the <a href="api-release/org/apache/commons/cli/Options.html">
Options</a> class, as a container for
- <a href="api-1.2/org/apache/commons/cli/Option.html">
+ <a href="api-release/org/apache/commons/cli/Option.html">
Option</a> instances. There are two ways to create
<code>Option</code>s in CLI. One of them is via the constructors,
the other way is via the factory methods defined in
@@ -66,11 +66,11 @@
</p>
<p>
The <code>parse</code> method defined on
- <a href="api-1.2/org/apache/commons/cli/CommandLineParser.html">
+ <a href="api-release/org/apache/commons/cli/CommandLineParser.html">
CommandLineParser</a> takes an <code>Options</code>
instance and a <code>String[]</code> of arguments and
returns a
- <a href="api-1.2/org/apache/commons/cli/CommandLine.html">
+ <a href="api-release/org/apache/commons/cli/CommandLine.html">
CommandLine</a>.
</p>
<p>
Modified: commons/proper/cli/trunk/src/site/xdoc/properties.xml
URL:
http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/site/xdoc/properties.xml?rev=961393&r1=961392&r2=961393&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/site/xdoc/properties.xml (original)
+++ commons/proper/cli/trunk/src/site/xdoc/properties.xml Wed Jul 7 14:39:27
2010
@@ -28,10 +28,10 @@
<section name="Option Properties">
<p>
The following are the properties that each
- <a href="api-1.2/org/apache/commons/cli/Option.html">Option</a> has.
All of these
+ <a href="api-release/org/apache/commons/cli/Option.html">Option</a>
has. All of these
can be set using the accessors or using the methods
defined in the
- <a
href="api-1.2/org/apache/commons/cli/OptionBuilder.html">OptionBuilder</a>.
+ <a
href="api-release/org/apache/commons/cli/OptionBuilder.html">OptionBuilder</a>.
</p>
<table>
<tr>
Modified: commons/proper/cli/trunk/src/site/xdoc/usage.xml
URL:
http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/site/xdoc/usage.xml?rev=961393&r1=961392&r2=961393&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/site/xdoc/usage.xml (original)
+++ commons/proper/cli/trunk/src/site/xdoc/usage.xml Wed Jul 7 14:39:27 2010
@@ -45,7 +45,7 @@
</subsection>
<subsection name="Create the Options">
<p>
- An <a href="api-1.2/org/apache/commons/cli/Options.html">
+ An <a href="api-release/org/apache/commons/cli/Options.html">
Options</a> object must be created and the <code>Option</code> must
be
added to it.
</p>
@@ -78,7 +78,7 @@ CommandLine cmd = parser.parse( options,
<p>
Now we need to check if the <code>t</code> option is present. To do
this we will interrogate the
- <a href="api-1.2/org/apache/commons/cli/CommandLine.html">CommandLine
+ <a
href="api-release/org/apache/commons/cli/CommandLine.html">CommandLine
</a> object. The <code>hasOption</code> method takes a
<code>java.lang.String</code> parameter and returns
<code>true</code> if the option
represented by the <code>java.lang.String</code> is present,
otherwise
@@ -212,11 +212,11 @@ Option find = OptionBuilder.withArg
<subsection name="Create the Options">
<p>
Now that we have created each
- <a href="api-1.2/org/apache/commons/cli/Option.html">Option</a> we
need
+ <a href="api-release/org/apache/commons/cli/Option.html">Option</a>
we need
to create the
- <a href="api-1.2/org/apache/commons/cli/Options.html">Options</a>
+ <a href="api-release/org/apache/commons/cli/Options.html">Options</a>
instance. This is achieved using the
- <a
href="api-1.2/org/apache/commons/cli/CommandLine.html#addOption(org.apache.commons.cli.Option)">addOption</a>
+ <a
href="api-release/org/apache/commons/cli/CommandLine.html#addOption(org.apache.commons.cli.Option)">addOption</a>
method of <code>Options</code>.
</p>
<source>Options options = new Options();
@@ -243,7 +243,7 @@ options.addOption( property );</source>
<p>
We now need to create a <code>CommandLineParser</code>. This will
parse the command
line arguments, using the rules specified by the
<code>Options</code> and
- return an instance of <a
href="api-1.2/org/apache/commons/cli/CommandLine.html">CommandLine</a>.
+ return an instance of <a
href="api-release/org/apache/commons/cli/CommandLine.html">CommandLine</a>.
</p>
<source>public static void main( String[] args ) {
// create the parser
@@ -274,7 +274,7 @@ if( line.hasOption( "buildfile" ) ) {
<p>
CLI also provides the means to automatically generate usage
and help information. This is achieved with the
- <a
href="api-1.2/org/apache/commons/cli/HelpFormatter.html">HelpFormatter</a>
+ <a
href="api-release/org/apache/commons/cli/HelpFormatter.html">HelpFormatter</a>
class.
</p>
<source>// automatically generate the help statement
@@ -328,7 +328,7 @@ Sort entries alphabetically if none of -
-C list entries by columns</source>
<p>
The following is the code that is used to create the
- <a href="api-1.2/org/apache/commons/cli/Options.html">Options</a> for
this example.
+ <a href="api-release/org/apache/commons/cli/Options.html">Options</a>
for this example.
</p>
<source>// create the command line parser
CommandLineParser parser = new DefaultParser();