You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by mc...@apache.org on 2009/06/20 11:21:19 UTC

svn commit: r786775 - in /tuscany/sandbox/travelsample/launchers/help-pages-launcher: ./ pom.xml src/ src/main/ src/main/java/ src/main/java/scatours/ src/main/java/scatours/LaunchHelpPagesNode.java src/test/

Author: mcombellack
Date: Sat Jun 20 09:21:18 2009
New Revision: 786775

URL: http://svn.apache.org/viewvc?rev=786775&view=rev
Log:
Added a launcher for the SCA Tours help pages

Added:
    tuscany/sandbox/travelsample/launchers/help-pages-launcher/   (with props)
    tuscany/sandbox/travelsample/launchers/help-pages-launcher/pom.xml
    tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/
    tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/main/
    tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/
    tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/
    tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java
    tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/test/

Propchange: tuscany/sandbox/travelsample/launchers/help-pages-launcher/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Jun 20 09:21:18 2009
@@ -0,0 +1,8 @@
+.classpath
+.project
+.settings
+target
+maven-eclipse.xml
+.externalToolBuilders
+.settings
+work

Added: tuscany/sandbox/travelsample/launchers/help-pages-launcher/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/help-pages-launcher/pom.xml?rev=786775&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/help-pages-launcher/pom.xml (added)
+++ tuscany/sandbox/travelsample/launchers/help-pages-launcher/pom.xml Sat Jun 20 09:21:18 2009
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * 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.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-sca</artifactId>
+        <version>1.5</version>
+        <!--relativePath>../../pom.xml</relativePath-->
+    </parent><version>1.0-SNAPSHOT</version>
+    <artifactId>scatours-help-pages-launcher</artifactId>
+    <name>Apache Tuscany SCA Tours Help Pages Launcher</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-node-api</artifactId>
+            <version>1.5</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-node-runtime</artifactId>
+            <version>1.5</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-resource-runtime</artifactId>
+            <version>1.6-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-http-runtime</artifactId>
+            <version>1.6-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-tomcat</artifactId>
+            <version>1.6-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.5</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+    
+    <build>
+       <finalName>${artifactId}</finalName>
+    </build>
+</project>

Added: tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java?rev=786775&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java (added)
+++ tuscany/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java Sat Jun 20 09:21:18 2009
@@ -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();
+    }
+}