airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1410571 - in /airavata/sandbox/client-api-demo: copy.sh deploy.sh init.sh
Date Fri, 16 Nov 2012 21:10:47 GMT
Author: heshan
Date: Fri Nov 16 21:10:46 2012
New Revision: 1410571

URL: http://svn.apache.org/viewvc?rev=1410571&view=rev
Log:
Updating the scripts.

Added:
    airavata/sandbox/client-api-demo/copy.sh   (with props)
    airavata/sandbox/client-api-demo/init.sh
Modified:
    airavata/sandbox/client-api-demo/deploy.sh

Added: airavata/sandbox/client-api-demo/copy.sh
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/copy.sh?rev=1410571&view=auto
==============================================================================
--- airavata/sandbox/client-api-demo/copy.sh (added)
+++ airavata/sandbox/client-api-demo/copy.sh Fri Nov 16 21:10:46 2012
@@ -0,0 +1,16 @@
+#!/bin/bash 
+echo "Copying artifacts."
+
+echo "Removing the old airavata-rest-services ..."
+rm -r -f /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/ airavata-rest-services*
+echo "Copying the airavata-rest-services.war to webapps"
+cp /home/heshan/Dev/apache/trunk/airavata/trunk/modules/rest/service/target/airavata-rest-services.war
/home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps
+
+echo "Removing the old client-api-demo war ..."
+rm -r -f /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo*
+echo "Copying the client-api-demo war to webapps"
+cp target/client-api-demo.war /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps
+
+echo "Copying mysql jar to airavata-rest-services module"
+cp ~/Downloads/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar ~/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/airavata-rest-services/WEB-INF/lib/
+

Propchange: airavata/sandbox/client-api-demo/copy.sh
------------------------------------------------------------------------------
    svn:executable = *

Modified: airavata/sandbox/client-api-demo/deploy.sh
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/deploy.sh?rev=1410571&r1=1410570&r2=1410571&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/deploy.sh (original)
+++ airavata/sandbox/client-api-demo/deploy.sh Fri Nov 16 21:10:46 2012
@@ -2,27 +2,26 @@
 echo "Building the source."
 mvn clean install -Dmaven.test.skip=true -o
 
-echo "Removing the old airavata-registry-rest-services ..."
-rm -r -f /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo*
-echo "Copying the airavata-registry-rest-services.war to webapps"
-cp /home/heshan/Dev/apache/trunk/airavata/sandbox/airavata-registry-rest/target/airavata-registry-rest-services.war
/home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps
+echo "Removing the old airavata-rest-services ..."
+rm -r -f /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/ airavata-rest-services*
+echo "Copying the airavata-rest-services.war to webapps"
+cp /home/heshan/Dev/apache/trunk/airavata/trunk/modules/rest/service/target/airavata-rest-services.war
/home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps
 
 echo "Removing the old client-api-demo war ..."
 rm -r -f /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo*
 echo "Copying the client-api-demo war to webapps"
 cp target/client-api-demo.war /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps
 
-#cp /home/heshan/Dev/IdeaProjects/RESTfulExample/target/RESTfulExample.war /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps
+echo "Copying mysql jar to airavata-rest-services module"
+cp ~/Downloads/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar ~/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/airavata-rest-services/WEB-INF/lib/
 
 sleep 10
-echo "Copying the repository.properties to webapp ..."
-cp /home/heshan/Dev/sc12/demo1/repository.properties /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo/WEB-INF/classes/
-v
-echo "Copying the deployment.properties to webapp ..."
-cp /home/heshan/Dev/sc12/demo1/deployment.properties /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo/
-v
-echo "Copying the deployment.properties to webapp ... again to classes TODO : Fix this"
-cp /home/heshan/Dev/sc12/demo1/deployment.properties /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo/WEB-INF/classes/
-
-echo "Copying jars from airavata/lib to webapps.../lib"
-cp /home/heshan/Dev/apache/trunk/airavata/trunk/modules/distribution/target/apache-airavata-0.5-SNAPSHOT/standalone-server/lib/*.jar
/home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo/WEB-INF/lib
+#echo "Copying the repository.properties to webapp ..."
+#cp /home/heshan/Dev/sc12/demo1/repository.properties /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo/WEB-INF/classes/
-v
+#echo "Copying the deployment.properties to webapp ..."
+#cp /home/heshan/Dev/sc12/demo1/deployment.properties /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo/
-v
+#echo "Copying the deployment.properties to webapp ... again to classes TODO : Fix this"
+#cp /home/heshan/Dev/sc12/demo1/deployment.properties /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo/WEB-INF/classes/
 
-#chromium-browser http://localhost:7080/client-api-demo/x_host_descriptor_save.html
+#echo "Copying jars from airavata/lib to webapps.../lib"
+#cp /home/heshan/Dev/apache/trunk/airavata/trunk/modules/distribution/target/apache-airavata-0.5-SNAPSHOT/standalone-server/lib/*.jar
/home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/webapps/client-api-demo/WEB-INF/lib

Added: airavata/sandbox/client-api-demo/init.sh
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/init.sh?rev=1410571&view=auto
==============================================================================
--- airavata/sandbox/client-api-demo/init.sh (added)
+++ airavata/sandbox/client-api-demo/init.sh Fri Nov 16 21:10:46 2012
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+echo "Removing previous Tomcat ..."
+rm -rf /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/
+
+echo "Copying Tomcat ..."
+cd /home/heshan/Dev/sc12/demo1/
+cp ~/Downloads/apache-tomcat-7.0.28.zip /home/heshan/Dev/sc12/demo1/ -v
+unzip /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28.zip
+cp /home/heshan/Dev/apache/trunk/airavata/sandbox/client-api-demo/src/main/resources/server.xml
/home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/conf
+chmod a+x /home/heshan/Dev/sc12/demo1/apache-tomcat-7.0.28/bin/*.sh



Mime
View raw message