You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by aj...@apache.org on 2006/12/08 00:22:53 UTC

svn commit: r483731 - in /incubator/tuscany/cpp/sca/samples/RestCalculator: deploy.bat httpserver/startserver.bat sample.calculator.restclient/runrestclient.bat

Author: ajborley
Date: Thu Dec  7 15:22:52 2006
New Revision: 483731

URL: http://svn.apache.org/viewvc?view=rev&rev=483731
Log:
Added deploy/run scripts for RestCalculator sample on Windows

Added:
    incubator/tuscany/cpp/sca/samples/RestCalculator/httpserver/startserver.bat   (with props)
Modified:
    incubator/tuscany/cpp/sca/samples/RestCalculator/deploy.bat
    incubator/tuscany/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.bat

Modified: incubator/tuscany/cpp/sca/samples/RestCalculator/deploy.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RestCalculator/deploy.bat?view=diff&rev=483731&r1=483730&r2=483731
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RestCalculator/deploy.bat (original)
+++ incubator/tuscany/cpp/sca/samples/RestCalculator/deploy.bat Thu Dec  7 15:22:52 2006
@@ -35,12 +35,24 @@
 if not exist %samplesdir%                        mkdir %samplesdir%
 if not exist %calcdir%                           mkdir %calcdir%
 if not exist %destinationPath%                   mkdir %destinationPath%
+if not exist %destinationPath%\httpserver        mkdir %destinationPath%\httpserver
+if not exist %destinationPath%\httpserver\conf   mkdir %destinationPath%\httpserver\conf
+if not exist %destinationPath%\httpserver\htdocs mkdir %destinationPath%\httpserver\htdocs
+
+if not exist %destinationPath%\sample.calculator mkdir %destinationPath%\sample.calculator
+copy %sourcePath%\sample.calculator\*.rb        %destinationPath%\sample.calculator
+copy %sourcePath%\sample.calculator\*.composite %destinationPath%\sample.calculator
 
 if not exist %destinationPath%\sample.calculator.restclient mkdir %destinationPath%\sample.calculator.restclient
-copy %sourcePath%\sample.calculator.restclient\CalculatorRestClient.rb               %destinationPath%\sample.calculator.restclient
+copy %sourcePath%\sample.calculator.restclient\CalculatorRestClient.rb                %destinationPath%\sample.calculator.restclient
 copy %sourcePath%\sample.calculator.restclient\sample.calculator.restclient.composite %destinationPath%\sample.calculator.restclient
-copy %sourcePath%\sample.calculator.wsclient\runrestclient.bat %destinationPath%\sample.calculator.restclient
+copy %sourcePath%\sample.calculator.restclient\runrestclient.bat                      %destinationPath%\sample.calculator.restclient
 
 copy %sourcePath%\*.composite %destinationPath%
+
+copy %sourcePath%\httpserver\*.bat         %destinationPath%\httpserver
+copy %sourcePath%\httpserver\conf\*.types  %destinationPath%\httpserver\conf
+copy %sourcePath%\httpserver\conf\*.conf   %destinationPath%\httpserver\conf
+copy %sourcePath%\httpserver\htdocs\*.html %destinationPath%\httpserver\htdocs
 
 endlocal

Added: incubator/tuscany/cpp/sca/samples/RestCalculator/httpserver/startserver.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RestCalculator/httpserver/startserver.bat?view=auto&rev=483731
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RestCalculator/httpserver/startserver.bat (added)
+++ incubator/tuscany/cpp/sca/samples/RestCalculator/httpserver/startserver.bat Thu Dec  7 15:22:52 2006
@@ -0,0 +1,65 @@
+@echo off
+
+@REM  Licensed to the Apache Software Foundation (ASF) under one
+@REM  or more contributor license agreements.  See the NOTICE file
+@REM  distributed with this work for additional information
+@REM  regarding copyright ownership.  The ASF licenses this file
+@REM  to you under the Apache License, Version 2.0 (the
+@REM  "License"); you may not use this file except in compliance
+@REM  with the License.  You may obtain a copy of the License at
+@REM  
+@REM    http://www.apache.org/licenses/LICENSE-2.0
+@REM    
+@REM  Unless required by applicable law or agreed to in writing,
+@REM  software distributed under the License is distributed on an
+@REM  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM  KIND, either express or implied.  See the License for the
+@REM  specific language governing permissions and limitations
+@REM  under the License.
+
+setlocal
+
+set APFULLDIR=%~d0%~p0
+echo Running from %APFULLDIR%
+
+if "%TUSCANY_SCACPP%" == "" (
+echo "TUSCANY_SCACPP not set"
+goto end
+)
+echo Using SCA installed at %TUSCANY_SCACPP%
+
+if "%TUSCANY_SDOCPP%" == "" (
+echo "TUSCANY_SDOCPP not set"
+goto end
+)
+echo Using SDO installed at %TUSCANY_SDOCPP%
+
+if "%AXIS2C_HOME%" == "" (
+echo "AXIS2C_HOME not set"
+goto end
+)
+echo Using Axis2C installed at %AXIS2C_HOME%
+
+set PATH=%TUSCANY_SCACPP%\extensions\ruby\bin;%TUSCANY_SCACPP%\extensions\rest\interface\bin;%TUSCANY_SCACPP%\extensions\rest\service\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%PATH%
+
+set TUSCANY_SCACPP_ROOT=%APFULLDIR%\..\
+
+@REM Generate the mod_axis2 configuration
+if not exist %APFULLDIR%\conf\tuscany_sca_mod_rest.conf (
+  echo LoadModule sca_rest_module %TUSCANY_SCACPP%/extensions/rest\service/bin/tuscany_sca_mod_rest.dll > %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+  echo TuscanyHome %TUSCANY_SCACPP% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+  echo ^<Location /rest^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+  echo        SetHandler sca_rest_module >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+  echo        TuscanyRoot %TUSCANY_SCACPP_ROOT% >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+  echo ^</Location^> >> %APFULLDIR%\conf\tuscany_sca_mod_rest.conf
+)
+
+@REM Create logs directory
+if not exist %APFULLDIR%\logs mkdir %APFULLDIR%\logs
+set TUSCANY_SCACPP_LOG=%APFULLDIR%\logs\tuscany-server.log
+set TUSCANY_SCACPP_LOGGING=9
+
+@REM Start the HTTP server
+echo Starting Apache httpd
+httpd -d %APFULLDIR%
+

Propchange: incubator/tuscany/cpp/sca/samples/RestCalculator/httpserver/startserver.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/samples/RestCalculator/httpserver/startserver.bat
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.bat?view=diff&rev=483731&r1=483730&r2=483731
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.bat (original)
+++ incubator/tuscany/cpp/sca/samples/RestCalculator/sample.calculator.restclient/runrestclient.bat Thu Dec  7 15:22:52 2006
@@ -20,24 +20,24 @@
 setlocal
 
 if "%TUSCANY_SCACPP%" == "" (
-echo "TUSCANY_SCACPP not set"
+echo TUSCANY_SCACPP not set
 goto end
 )
 echo using SCA installed at %TUSCANY_SCACPP%
 
 if "%TUSCANY_SDOCPP%" == "" (
-echo "TUSCANY_SDOCPP not set"
+echo TUSCANY_SDOCPP not set
 goto end
 )
 echo using SDO installed at %TUSCANY_SDOCPP%
 
-if "%AXIS2C_HOME%" == "" (
-echo "AXIS2C_HOME not set"
+if "%LIBCURL_HOME%" == "" (
+echo LIBCURL_HOME not set
 goto end
 )
-echo using Axis2C installed at %AXIS2C_HOME%
+echo using Libcurl installed at %LIBCURL_HOME%
 
-set PATH=%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%AXIS2C_HOME%\lib;%PATH%
+set PATH=%HTTPD_HOME%\bin;%LIBCURL_HOME%\lib;%TUSCANY_SCACPP%\extensions\rest\interface\bin;%TUSCANY_SCACPP%\extensions\rest\reference\bin;%TUSCANY_SCACPP%\extensions\rest\service\bin;%TUSCANY_SCACPP%\bin;%TUSCANY_SDOCPP%\bin;%PATH%
 
 set TUSCANY_SCACPP_ROOT=%~d0%~p0\..\
 set TUSCANY_SCACPP_COMPONENT=sample.calculator.CalculatorRestClientComponent



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org