diff options
Diffstat (limited to 'sandbox/travelsample/launchers')
-rw-r--r-- | sandbox/travelsample/launchers/help-pages/build.xml | 48 | ||||
-rw-r--r-- | sandbox/travelsample/launchers/help-pages/pom.xml (renamed from sandbox/travelsample/launchers/help-pages-launcher/pom.xml) | 2 | ||||
-rw-r--r-- | sandbox/travelsample/launchers/help-pages/src/main/java/scatours/HelpPagesLauncher.java (renamed from sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java) | 6 | ||||
-rw-r--r-- | sandbox/travelsample/launchers/pom.xml | 2 |
4 files changed, 53 insertions, 5 deletions
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 @@ +<!--
+ * 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 name="scatours-launcher-help-pages" default="compile">
+ <property environment="env"/>
+
+ <target name="compile">
+ <mkdir dir="target/classes"/>
+ <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
+ <src path="src/main/java"/>
+ <classpath>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="run">
+ <java classname="scatours.HelpPagesLauncher" fork="true">
+ <classpath>
+ <pathelement location="target/classes"/>
+ <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+ </classpath>
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete includeemptydirs="true">
+ <fileset dir="target"/>
+ </delete>
+ </target>
+
+</project>
diff --git a/sandbox/travelsample/launchers/help-pages-launcher/pom.xml b/sandbox/travelsample/launchers/help-pages/pom.xml index e6e824674a..b4b2233e25 100644 --- a/sandbox/travelsample/launchers/help-pages-launcher/pom.xml +++ b/sandbox/travelsample/launchers/help-pages/pom.xml @@ -25,7 +25,7 @@ <version>1.5</version>
<!--relativePath>../../pom.xml</relativePath-->
</parent><version>1.0-SNAPSHOT</version>
- <artifactId>scatours-help-pages-launcher</artifactId>
+ <artifactId>scatours-launcher-help-pages</artifactId>
<name>Apache Tuscany SCA Tours Help Pages Launcher</name>
<dependencies>
diff --git a/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java b/sandbox/travelsample/launchers/help-pages/src/main/java/scatours/HelpPagesLauncher.java index 0b45920327..b363748a63 100644 --- a/sandbox/travelsample/launchers/help-pages-launcher/src/main/java/scatours/LaunchHelpPagesNode.java +++ b/sandbox/travelsample/launchers/help-pages/src/main/java/scatours/HelpPagesLauncher.java @@ -23,15 +23,15 @@ 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 class HelpPagesLauncher {
public static void main(String[] args) throws Exception {
SCAContribution helpContribution =
new SCAContribution("help-pages",
- "../../contributions/help-pages-contribution/target/classes");
+ "../../contributions/help-pages/target/classes");
SCANode node = SCANodeFactory.newInstance().createSCANode(
- "help-pages.composite",helpContribution);
+ "help-pages.composite", helpContribution);
node.start();
System.out.println("Node started - Press enter to shutdown.");
diff --git a/sandbox/travelsample/launchers/pom.xml b/sandbox/travelsample/launchers/pom.xml index a9b4ca8b61..3ffe665142 100644 --- a/sandbox/travelsample/launchers/pom.xml +++ b/sandbox/travelsample/launchers/pom.xml @@ -53,7 +53,7 @@ <module>fullapp</module> <module>fullapp-domain</module> <module>fullapp-nodes</module> - <module>help-pages-launcher</module> + <module>help-pages</module> <module>notification-ws-launcher</module> <module>notification-corba-launcher</module> <module>notification-ejb-launcher</module> |