From 9d483666f17e13515e55e26a43d8e875c77569ae Mon Sep 17 00:00:00 2001 From: nash Date: Tue, 15 Sep 2009 19:16:29 +0000 Subject: Apply new naming convention to contributions/help-pages and launchers/help-pages git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@815456 13f79535-47bb-0310-9956-ffa450edef68 --- .../travelsample/launchers/help-pages/build.xml | 48 ++++++++++++++ sandbox/travelsample/launchers/help-pages/pom.xml | 77 ++++++++++++++++++++++ .../src/main/java/scatours/HelpPagesLauncher.java | 45 +++++++++++++ 3 files changed, 170 insertions(+) create mode 100644 sandbox/travelsample/launchers/help-pages/build.xml create mode 100644 sandbox/travelsample/launchers/help-pages/pom.xml create mode 100644 sandbox/travelsample/launchers/help-pages/src/main/java/scatours/HelpPagesLauncher.java (limited to 'sandbox/travelsample/launchers/help-pages') diff --git a/sandbox/travelsample/launchers/help-pages/build.xml b/sandbox/travelsample/launchers/help-pages/build.xml new file mode 100644 index 0000000000..2bbb462dca --- /dev/null +++ b/sandbox/travelsample/launchers/help-pages/build.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/launchers/help-pages/pom.xml b/sandbox/travelsample/launchers/help-pages/pom.xml new file mode 100644 index 0000000000..b4b2233e25 --- /dev/null +++ b/sandbox/travelsample/launchers/help-pages/pom.xml @@ -0,0 +1,77 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5 + + 1.0-SNAPSHOT + scatours-launcher-help-pages + Apache Tuscany SCA Tours Help Pages Launcher + + + + org.apache.tuscany.sca + tuscany-node-api + 1.5 + + + + org.apache.tuscany.sca + tuscany-implementation-node-runtime + 1.5 + test + + + + org.apache.tuscany.sca + tuscany-implementation-resource-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-http-runtime + 1.6-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.6-SNAPSHOT + runtime + + + + junit + junit + 4.5 + test + + + + + ${artifactId} + + diff --git a/sandbox/travelsample/launchers/help-pages/src/main/java/scatours/HelpPagesLauncher.java b/sandbox/travelsample/launchers/help-pages/src/main/java/scatours/HelpPagesLauncher.java new file mode 100644 index 0000000000..b363748a63 --- /dev/null +++ b/sandbox/travelsample/launchers/help-pages/src/main/java/scatours/HelpPagesLauncher.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 HelpPagesLauncher { + + public static void main(String[] args) throws Exception { + SCAContribution helpContribution = + new SCAContribution("help-pages", + "../../contributions/help-pages/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(); + } +} -- cgit v1.2.3