diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-15 06:18:34 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-15 06:18:34 +0000 |
commit | 512771c8a42d2cde253f6df55ef552f7a0b4f792 (patch) | |
tree | 37c4f983c960be2136045ec8182442d19fd82828 /branches/sca-android/modules/runtime-standalone/src | |
parent | dc79a3d21e67c8560e2c35451f2b2c58b675f02a (diff) |
Starting to create reduced module set for the android port.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@695352 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
4 files changed, 0 insertions, 137 deletions
diff --git a/branches/sca-android/modules/runtime-standalone/src/main/java/org/apache/tuscany/sca/runtime/standalone/StandaloneLauncher.java b/branches/sca-android/modules/runtime-standalone/src/main/java/org/apache/tuscany/sca/runtime/standalone/StandaloneLauncher.java deleted file mode 100644 index ae05f0bd29..0000000000 --- a/branches/sca-android/modules/runtime-standalone/src/main/java/org/apache/tuscany/sca/runtime/standalone/StandaloneLauncher.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 org.apache.tuscany.sca.runtime.standalone; - -import java.io.File; - -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.CommandLineParser; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.PosixParser; -import org.apache.tuscany.sca.runtime.Launcher; - -/** - * Strawman for a J2SE standalone launcher - * Try it with: - * - * mvn -o - * mvn dependency:copy-dependencies -o - * java -Djava.ext.dirs=target/dependency -jar target\tuscany-sca.jar C:\MyTuscanyRepository - * - * where MyTuscanyRepository is a folder containing SCA contribution jars - */ -public class StandaloneLauncher { - - private Launcher launcher; - - public StandaloneLauncher(File repository) { - this.launcher = new Launcher(repository); - launcher.start(); - } - - public void stop() { - launcher.stop(); - } - - public static void main(String[] args) throws Exception { - - Options options = new Options(); - options.addOption("domain", true, "the url of the remote domain this node should connect to"); - CommandLineParser parser = new PosixParser(); - CommandLine cmd = parser.parse( options, args); - if (cmd.getArgs().length != 1) { - System.err.println("missing contributions folder parameter"); - System.exit(1); - } - File f = new File(cmd.getArgs()[0]); - if (!f.exists()) { - System.err.println("repository not found: " + cmd.getArgs()[0]); - System.exit(1); - } - - StandaloneLauncher launcher = new StandaloneLauncher(f); - - System.out.println("Press enter to exit..."); - System.in.read(); - - launcher.stop(); - - } - -} diff --git a/branches/sca-android/modules/runtime-standalone/src/test/java/org/apache/tuscany/sca/runtime/standalone/LauncherTestCase.java b/branches/sca-android/modules/runtime-standalone/src/test/java/org/apache/tuscany/sca/runtime/standalone/LauncherTestCase.java deleted file mode 100644 index d29d4a3851..0000000000 --- a/branches/sca-android/modules/runtime-standalone/src/test/java/org/apache/tuscany/sca/runtime/standalone/LauncherTestCase.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 org.apache.tuscany.sca.runtime.standalone; - -import java.io.File; -import java.net.MalformedURLException; -import java.net.URISyntaxException; -import java.net.URL; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.domain.DomainException; -import org.apache.tuscany.sca.node.NodeException; -import org.apache.tuscany.sca.runtime.Launcher; - -public class LauncherTestCase extends TestCase { - - private File repo; - private Launcher launcher; - - public void test1() throws NodeException, URISyntaxException, InterruptedException, DomainException, MalformedURLException { - launcher.start(); - } - - public void setUp() throws URISyntaxException { - URL propsURL = getClass().getClassLoader().getResource("repo/tuscany.properties"); - repo = new File(propsURL.toURI()).getParentFile(); - launcher = new Launcher(repo); - } - - public void tearDown() throws NodeException, URISyntaxException, InterruptedException, DomainException { - if (launcher != null) { - launcher.stop(); - } - } - -} diff --git a/branches/sca-android/modules/runtime-standalone/src/test/resources/repo/bla/helloworld-ws-js.jar b/branches/sca-android/modules/runtime-standalone/src/test/resources/repo/bla/helloworld-ws-js.jar Binary files differdeleted file mode 100644 index 6978bee727..0000000000 --- a/branches/sca-android/modules/runtime-standalone/src/test/resources/repo/bla/helloworld-ws-js.jar +++ /dev/null diff --git a/branches/sca-android/modules/runtime-standalone/src/test/resources/repo/tuscany.properties b/branches/sca-android/modules/runtime-standalone/src/test/resources/repo/tuscany.properties deleted file mode 100644 index 2735d130e8..0000000000 --- a/branches/sca-android/modules/runtime-standalone/src/test/resources/repo/tuscany.properties +++ /dev/null @@ -1,5 +0,0 @@ -nodeName=http://localhost:8080/myNode/ -#domainName=http://localhost:8777/tuscany/foo/ -#startManager=true -#hotDeployInterval=10000 -#useHotUpdate=true |