summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/launchers/help-pages-launcher/src/main/java
diff options
context:
space:
mode:
authormcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2009-06-20 09:21:18 +0000
committermcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2009-06-20 09:21:18 +0000
commitbcff4cbf661cef018a40729c733958de1b5155f7 (patch)
tree508b9b2661716c921f9655ef1f856fd3a4e703f8 /sandbox/travelsample/launchers/help-pages-launcher/src/main/java
parent522851be3939cf1e648c76cd94cc328b08d64cac (diff)
Added a launcher for the SCA Tours help pages
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@786775 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/launchers/help-pages-launcher/src/main/java')
-rw-r--r--sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java b/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java
new file mode 100644
index 0000000000..0b45920327
--- /dev/null
+++ b/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package scatours;
+
+import org.apache.tuscany.sca.node.SCAContribution;
+import org.apache.tuscany.sca.node.SCANode;
+import org.apache.tuscany.sca.node.SCANodeFactory;
+
+public class LaunchHelpPagesNode {
+
+ public static void main(String[] args) throws Exception {
+ SCAContribution helpContribution =
+ new SCAContribution("help-pages",
+ "../../contributions/help-pages-contribution/target/classes");
+
+ SCANode node = SCANodeFactory.newInstance().createSCANode(
+ "help-pages.composite",helpContribution);
+ node.start();
+
+ System.out.println("Node started - Press enter to shutdown.");
+ System.out.println();
+ System.out.println("To view the help pages, use your Web browser to view:");
+ System.out.println(" http://localhost:8085/help/index.html");
+ System.out.println();
+ System.in.read();
+ node.stop();
+ }
+}