Updates to Examples Before you Begin and Simple Web server to improve path from Getting Started.
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/a2ae7d76 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/a2ae7d76 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/a2ae7d76 Branch: refs/heads/0.5.0 Commit: a2ae7d76e1706142dafe41627c3bd20ab1f6b207 Parents: 293c105 Author: David Toy <[email protected]> Authored: Thu Apr 18 18:03:04 2013 +0100 Committer: David Toy <[email protected]> Committed: Mon Apr 22 12:52:48 2013 +0100 ---------------------------------------------------------------------- docs/use/examples/before-begin.include.md | 12 +++++++++--- docs/use/examples/webcluster/webcluster.include.md | 9 +++++---- 2 files changed, 14 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/a2ae7d76/docs/use/examples/before-begin.include.md ---------------------------------------------------------------------- diff --git a/docs/use/examples/before-begin.include.md b/docs/use/examples/before-begin.include.md index 547c57a..b153548 100644 --- a/docs/use/examples/before-begin.include.md +++ b/docs/use/examples/before-begin.include.md @@ -1,8 +1,12 @@ +{% include fields.md %} + ## Before You Begin To use the examples, you'll need ``curl``, ``git``, ``java`` (1.6+), and ``maven`` (v3) installed. -{% include fields.md %} +### Installing Brooklyn + +(If you followed the [Getting Started](/use/guide/quickstart/index.html) instructions, you can skip to Installing the Examples.) {% if SNAPSHOT %} @@ -20,7 +24,7 @@ and export `BROOKLYN_HOME`: {% else %} -First, grab a copy of the Brooklyn distribution and set up `BROOKLYN_HOME`: +Grab a copy of the Brooklyn distribution and set up `BROOKLYN_HOME`: {% highlight bash %} % curl -LO {{ this_dist_url_tgz }} @@ -30,8 +34,9 @@ First, grab a copy of the Brooklyn distribution and set up `BROOKLYN_HOME`: {% endif %} +### Installing the Examples -Then, grab a copy of the brooklyn-examples source code and build with Maven: +Grab a copy of the brooklyn-examples source code and build with Maven: {% highlight bash %} % git clone https://github.com/brooklyncentral/brooklyn-examples.git @@ -45,6 +50,7 @@ Please note, these instructions are for a SNAPSHOT release of Brooklyn, so proceed with caution. For the latest stable version, go [here](/meta/versions.html). {% endif %} + For more information on ways to download Brooklyn please see the [download page]({{site.url}}/start/download.html). For more information on the Brooklyn CLI and launching apps, http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/a2ae7d76/docs/use/examples/webcluster/webcluster.include.md ---------------------------------------------------------------------- diff --git a/docs/use/examples/webcluster/webcluster.include.md b/docs/use/examples/webcluster/webcluster.include.md index 1318514..0de16cd 100644 --- a/docs/use/examples/webcluster/webcluster.include.md +++ b/docs/use/examples/webcluster/webcluster.include.md @@ -1,8 +1,9 @@ - - + {% readj ../before-begin.include.md %} -Now, go to this particular example's directory: +## Simple Web Server + +Go to this particular example's directory: {% highlight bash %} % cd simple-web-cluster @@ -18,7 +19,7 @@ the ``BROOKLYN_CLASSPATH`` environment variable in the following way: The project ``simple-web-cluster`` includes several deployment descriptors for rolling out a web application, under ``src/main/java``. -## Simple Web Server + The simplest of these, ``SingleWebServerExample``, starts JBoss on a single machine with a "Hello World" war deployed, with a single line:
