You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2007/03/14 18:26:25 UTC
svn commit: r518226 - in /incubator/tuscany/java/sca/core-samples:
readme.html standalone/calculator/readme.html
Author: jboynes
Date: Wed Mar 14 10:26:24 2007
New Revision: 518226
URL: http://svn.apache.org/viewvc?view=rev&rev=518226
Log:
make readme for standalone calculator refer to standalone distribution
Modified:
incubator/tuscany/java/sca/core-samples/readme.html
incubator/tuscany/java/sca/core-samples/standalone/calculator/readme.html
Modified: incubator/tuscany/java/sca/core-samples/readme.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/readme.html?view=diff&rev=518226&r1=518225&r2=518226
==============================================================================
--- incubator/tuscany/java/sca/core-samples/readme.html (original)
+++ incubator/tuscany/java/sca/core-samples/readme.html Wed Mar 14 10:26:24 2007
@@ -44,7 +44,7 @@
<a href="http://tomcat.apache.org/download-55.cgi">Apache Tomcat 5.5</a>
</p>
-<h2>Getting Started</h2>
+<h2 id="GettingStarted">Getting Started</h2>
<p>
Many of the samples use pre-built SCA composites that implement the services they are using.
Modified: incubator/tuscany/java/sca/core-samples/standalone/calculator/readme.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/calculator/readme.html?view=diff&rev=518226&r1=518225&r2=518226
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/calculator/readme.html (original)
+++ incubator/tuscany/java/sca/core-samples/standalone/calculator/readme.html Wed Mar 14 10:26:24 2007
@@ -18,71 +18,52 @@
* under the License.
-->
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <meta http-equiv="Content-Type" content=
- "text/html; charset=us-ascii">
- <meta http-equiv="Content-Style-Type" content="text/css">
-
- <title>Tuscany Simple Calculator Sample</title>
- <!-- LINK rel="stylesheet" href="ait.css" type="text/css" -->
- <link rel="stylesheet" href="../../css/base.css" type="text/css">
+ <title>Apache Tuscany Calculator Sample Application</title>
+ <link rel="stylesheet" href="../../css/samples.css" type="text/css">
</head>
-
<body>
- <h3>Tuscany Simple Calculator Sample</h3>
-
- <h4>Overview</h4>
-
- <p>This sample illustrates the use of SCA to wire components together inside a composite.
-All connections between the components are local and are defined using Java interfaces.</p>
-
- <h4>Location</h4>
-
- <p>This sample is located in the
- samples\standalone\calculator directory. All the
- following commands should be issued while working in the sample
- directory.</p>
-
- <h4>Prerequisites</h4>
-
- <p>Obtain the following prerequisites and install according to
- their documentation.</p>
+<h1>Apache Tuscany Calculator Sample Application</h1>
- <ul>
- <li><a href="http://java.sun.com/javase/downloads/index.jsp"
- target="_blank">JDK 5.0</a></li>
+<p>
+ This sample illustrates the use of SCA to wire components together inside a composite.
+ All connections between the components are local and are defined using Java interfaces.
+</p>
- <li><a href="http://maven.apache.org/download.html" target=
- "_blank">Maven 2.0.4</a></li>
- </ul>
+<h2>Setup</h2>
+<p>
+ Please install Apache Maven and build the library composites as described in the
+ <a href="../../readme.html#GettingStarted">Getting Started</a> section of the root readme.
+</p>
- <h4>Building</h4>
+<h2>Building</h2>
- <p>To build the sample issue :</p>
- <pre>
-<code>mvn install<br></code>
+<p>To build the sample run:</p>
+ <pre class="command">
+$ mvn package
</pre>
+<p>
+ This will build and package the code that calls the calculator composite from a
+ command line client environment.
+</p>
- <h4>Setup</h4>
-
- <h4>Running</h4>
-
- <p>Boot the Tuscany standalone runtime environment using the
- following command:</p>
- <pre>
-<code>java -jar {path-to-launcher.jar} target/calc.jar {add|subtract|multiply|divide} {param} {param}<br></code>
+<h2>Running</h2>
+<p>
+ To run the client, use the <code>launcher</code> command from the standalone distribution:
+</p>
+<pre class="command">
+$ java -jar {tuscany.installDir}/bin/launcher target/calc.jar {add|subtract|multiply|divide} {param} {param}
</pre>
- <p>where {path-to-launcher.jar} is the path to the Tuscany launcher jar </p>
-
- <pre>
+<p>where <code>tuscany.installDir</code> is the path where you installed the standalone distribution.</p>
- <p>The sample when run should simply display to the standard
- output:<br>
-<samp>
-<br>result = {result}
-</samp>
+<p>
+ The sample when run will display to the standard output:
</p>
+<pre class="command">
+$ java -jar {tuscany.installDir}/bin/launcher target/calc.jar add 2 5
+result = 7.0
+</pre>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org