From 54158d9b017dae6a75d813a96463d05e1153ae31 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Wed, 17 Sep 2008 06:59:35 +0000 Subject: Starting to clean up android branch, creating subsets of samples, demos, tutorials that can be ported to android. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@696177 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca-android/itest/build-was-integration.xml | 68 --- branches/sca-android/itest/pom.xml | 656 --------------------- branches/sca-android/itest/wasAdmin.py | 91 --- 3 files changed, 815 deletions(-) delete mode 100644 branches/sca-android/itest/build-was-integration.xml delete mode 100644 branches/sca-android/itest/wasAdmin.py (limited to 'branches/sca-android/itest') diff --git a/branches/sca-android/itest/build-was-integration.xml b/branches/sca-android/itest/build-was-integration.xml deleted file mode 100644 index 03de4c050f..0000000000 --- a/branches/sca-android/itest/build-was-integration.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - Installing war ${application.war} on ${application.server} using name ${application.name} and context root ${application.contextRoot} - - - - - Starting application ${application.name} on ${application.server} - - - - - - - Uninstalling ${application.name} - - - - - - - diff --git a/branches/sca-android/itest/pom.xml b/branches/sca-android/itest/pom.xml index b2af34b305..f18ce5f455 100644 --- a/branches/sca-android/itest/pom.xml +++ b/branches/sca-android/itest/pom.xml @@ -45,12 +45,6 @@ - - ${basedir}/build-was-integration.xml - ${basedir}/wasAdmin.py - - - default @@ -58,658 +52,8 @@ true - bpel - builder - callablereferences - callablereferences-ws - callback-api - callback-basic - callback-complex-type - callback-id - callback-multiple-wires - callback-separatethread - callback-set-callback - callback-set-conversation - component-type - contribution - contribution-multiple - contribution-import-export - contribution-classloader - conversations - corba - conversations-ws - databindings - - exceptions - exceptions-cross-binding - exceptions-cross-binding-ws - exceptions-simple-ws - extended-api - interfaces - - jms - jms-args - jms-callbacks - jms-definitions - jms-selectors - large-sdo-ws - late-reference-resolution - oneway - operation-overloading - osgi-implementation - osgi-contribution - policy - policy-security - policy-security-basicauth - policy-security-jsr250 - properties - recursive - recursive-multi-level - recursive-ws - references - serialization - services - spring - scopes - transaction - validation - wires - wsdl - wsdlless - wsdl2java - wsdl-multiple - ws-void-args-return - - - - webapp - - false - - - - - - org.apache.tuscany.sca - tuscany-host-webapp - 1.4-SNAPSHOT - runtime - - - org.apache.tuscany.sca - tuscany-host-webapp-junit - 1.4-SNAPSHOT - runtime - - - javax.servlet - servlet-api - 2.3 - provided - - - - - callback-api - callback-basic - - callback-id - callback-multiple-wires - callback-set-callback - callback-set-conversation - - conversations - exceptions - exceptions-cross-binding - extended-api - oneway - operation-overloading - - references - services - component-type - interfaces - wires - scopes - large-sdo-ws - - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.3.1 - - true - - - - - - - - - - - - - org.apache.tuscany.sca - tuscany-maven-web-junit - 1.4-SNAPSHOT - - - generate-web-xml - process-resources - - generate - - - - - - - - org.apache.maven.plugins - maven-war-plugin - 2.0.2 - - false - - WEB-INF/lib/tuscany-host-tomcat-*.jar,WEB-INF/lib/tuscany-host-jetty-*.jar,servlet-api-*.jar, WEB-INF/lib/catalina*.jar,WEB-INF/classes/META-INF/sca-contribution*.xml - - - - - - ${project.build.directory}/test-classes - WEB-INF/classes - - - - ${project.build.directory}/classes/META-INF - - sca-contribution*.xml - - META-INF - - - - - ${settings.localRepository}/junit/junit/4.2 - - junit-4.2.jar - - WEB-INF/lib - - - - - - - package - - war - - - - - - - - - - tomcat - - false - - - - 8085 - http://127.0.0.1:${http.port} - ${env.CATALINA_HOME} - - - - - - org.apache.tuscany.sca - tuscany-maven-web-junit - 1.4-SNAPSHOT - - - generate-web-xml - process-resources - - generate - - - - web-junit-test - - ${http.base}/${project.build.finalName}/junit?op=runAll - - integration-test - - test - - - - - - org.codehaus.cargo - cargo-maven2-plugin - - - start-container - pre-integration-test - - start - - - - stop-container - post-integration-test - - stop - - - - - - tomcat5x - installed - ${tomcat.home} - - - org.apache.commons.logging.impl.SimpleLog - - - - false - - - ${http.port} - - - - ${project.build.directory}/${project.build.finalName}.war - ${http.base}/${project.build.finalName}/junit?op=list - war - - - ${project.build.directory}/cargo-tomcat - - - - - - - - - - - jetty - - false - - - - 8085 - http://127.0.0.1:${http.port} - ${env.JETTY_HOME} - - - - - - org.apache.tuscany.sca - tuscany-maven-web-junit - 1.4-SNAPSHOT - - - generate-web-xml - process-resources - - generate - - - - web-junit-test - - ${http.base}/${project.build.finalName}/junit?op=runAll - - integration-test - - test - - - - - - org.codehaus.cargo - cargo-maven2-plugin - - - start-container - pre-integration-test - - start - - - - stop-container - post-integration-test - - stop - - - - - - jetty6x - embedded - ${jetty.home} - - - org.apache.commons.logging.impl.SimpleLog - - - - false - - - ${http.port} - - - - ${project.build.directory}/${project.build.finalName}.war - ${http.base}/${project.build.finalName}/junit?op=list - war - - - ${project.build.directory}/cargo-jetty - - - - - - - - - geronimo - - false - - - - 8080 - http://127.0.0.1:${http.port} - ${env.GERONIMO_HOME} - - - - - - - org.apache.tuscany.sca - tuscany-maven-web-junit - 1.4-SNAPSHOT - - - generate-web-xml - - true - - process-resources - - generate - - - - web-junit-test - - ${http.base}/${project.build.finalName}/junit?op=runAll - - integration-test - - test - - - - - - - org.apache.geronimo.plugins - geronimo-maven-plugin - 2.1.1 - - ${geronimo.home} - - - - start-container - pre-integration-test - - start - - - true - - - - deploy-war - pre-integration-test - - deploy - - - ${project.build.directory}/${project.build.finalName}.war - - - - undeploy-war - post-integration-test - - undeploy - - - ${groupId}/${artifactId}/${version}/war - - - - stop-container - post-integration-test - - stop - - - system - manager - - - - - - - - - - websphere - - false - - - 8080 - http://127.0.0.1:${http.port} - ${env.WAS_HOME} - - - - - - - org.apache.tuscany.sca - tuscany-maven-web-junit - 1.4-SNAPSHOT - - - generate-web-xml - process-resources - - generate - - - - web-junit-test - integration-test - - test - - - ${http.base}/${project.build.finalName}/junit?op=runAll - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.1 - - - - start-container - pre-integration-test - - run - - - - - - - - - - deploy-war - pre-integration-test - - run - - - - - - - - - - - - - - - - undeploy-war - post-integration-test - - run - - - - - - - - - - - - - stop-container - post-integration-test - - run - - - - - - - - - - - - - - - diff --git a/branches/sca-android/itest/wasAdmin.py b/branches/sca-android/itest/wasAdmin.py deleted file mode 100644 index 2be2b1eff7..0000000000 --- a/branches/sca-android/itest/wasAdmin.py +++ /dev/null @@ -1,91 +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. -""" -import sys - -def getCellName(): - """Return the name of the cell connected to""" - return AdminControl.getCell() - -def getNodeName(): - """Return the name of the node connected to""" - return AdminControl.getNode() - -def startApplicationOnServer(appName,serverName): - """Start the named application on one server""" - print "startApplicationOnServer: Entry. appname=%s servername=%s" % ( appName,serverName ) - cellName = getCellName() - nodeName = getNodeName() - # Get the application manager - appManager = AdminControl.queryNames('cell=%s,node=%s,type=ApplicationManager,process=%s,*' %(cellName,nodeName,serverName)) - print "startApplicationOnServer: appManager=%s" % ( repr(appManager) ) - # start it - rc = AdminControl.invoke(appManager, 'startApplication', appName) - print "startApplicationOnServer: Exit. rc=%s" % ( repr(rc) ) - -def stopApplicationOnServer(appName,serverName): - """Stop the named application on one server""" - print "stopApplicationOnServer: Entry. appname=%s servername=%s" % ( appName,serverName ) - cellName = getCellName() - nodeName = getNodeName() - # Get the application manager - appManager = AdminControl.queryNames('cell=%s,node=%s,type=ApplicationManager,process=%s,*' %(cellName,nodeName,serverName)) - print "stopApplicationOnServer: appManager=%s" % ( repr(appManager) ) - # start it - rc = AdminControl.invoke(appManager, 'stopApplication', appName) - print "stopApplicationOnServer: Exit. rc=%s" % ( repr(rc) ) - -def installApplicationOnServer( fileName, appName, contextRoot, serverName ): - """Install given application on the named server using given context root""" - print "installApplicationOnServer: fileName=%s appName=%s contextRoot=%s ServerName=%s" % ( fileName, appName,contextRoot,serverName ) - AdminApp.install(fileName,'[-appname ' + appName + ' -contextroot ' + contextRoot + ' -server ' + serverName + ' -usedefaultbindings ]') - AdminConfig.save() - """modify classloader model for application""" - deploymentID = AdminConfig.getid('/Deployment:' + appName + '/') - deploymentObject = AdminConfig.showAttribute(deploymentID, 'deployedObject') - classldr = AdminConfig.showAttribute(deploymentObject, 'classloader') - print AdminConfig.showall(classldr) - AdminConfig.modify(classldr, [['mode', 'PARENT_LAST']]) - """Modify WAR class loader model""" - AdminConfig.show(deploymentObject, 'warClassLoaderPolicy') - AdminConfig.modify(deploymentObject, [['warClassLoaderPolicy', 'SINGLE']]) - AdminConfig.save() - -def uninstallApplicationOnServer( appName ): - """Delete the named application from the cell""" - AdminApp.uninstall( appName ) - AdminConfig.save() - - - -"""----------------------------------------------------------- - Phyton script to interface with WAS Admin/Management Tools ------------------------------------------------------------""" - -if len(sys.argv) < 1: - print "wasAdmin.py : need parameters : functionName [args]" - sys.exit(0) -if(sys.argv[0] == 'installApplicationOnServer'): - installApplicationOnServer(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4]) -elif(sys.argv[0] == 'startApplicationOnServer'): - startApplicationOnServer(sys.argv[1], sys.argv[2]) -elif(sys.argv[0] == 'uninstallApplicationOnServer'): - uninstallApplicationOnServer(sys.argv[1]) -else: - print "Exiting without doing anything" - -- cgit v1.2.3