tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajbor...@apache.org
Subject svn commit: r454692 - in /incubator/tuscany/cpp/sca/samples: PythonCalculator/deploy.cmd RubyBank/deploy.cmd RubyCalculator/deploy.cmd
Date Tue, 10 Oct 2006 10:53:54 GMT
Author: ajborley
Date: Tue Oct 10 03:53:53 2006
New Revision: 454692

URL: http://svn.apache.org/viewvc?view=rev&rev=454692
Log:
Changed windows Python & Ruby sample deploy scripts to deploy to $TUSCANY_SCACPP/samples
rather than the current dir

Modified:
    incubator/tuscany/cpp/sca/samples/PythonCalculator/deploy.cmd
    incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd
    incubator/tuscany/cpp/sca/samples/RubyCalculator/deploy.cmd

Modified: incubator/tuscany/cpp/sca/samples/PythonCalculator/deploy.cmd
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PythonCalculator/deploy.cmd?view=diff&rev=454692&r1=454691&r2=454692
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PythonCalculator/deploy.cmd (original)
+++ incubator/tuscany/cpp/sca/samples/PythonCalculator/deploy.cmd Tue Oct 10 03:53:53 2006
@@ -22,13 +22,19 @@
 set currentPath=%~d0%~p0
 set sourcePath=%currentPath%
 
-if . == %2. (
-set destinationPath=%sourcePath%\deploy
+set deploydir=%TUSCANY_SCACPP%
+set samplesdir=%deploydir%\samples
+set calcdir=%samplesdir%\PythonCalculator
+
+if . == %1. (
+set destinationPath=%calcdir%\deploy
 ) ELSE (
-set destinationPath=%2
+set destinationPath=%1
 )
 
-if not exist %destinationPath%                          mkdir %destinationPath%
+if not exist %samplesdir%                        mkdir %samplesdir%
+if not exist %calcdir%                           mkdir %calcdir%
+if not exist %destinationPath%                   mkdir %destinationPath%
 if not exist %destinationPath%\sample.calculator mkdir %destinationPath%\sample.calculator
 copy %sourcePath%\sample.calculator\*.componentType %destinationPath%\sample.calculator
 copy %sourcePath%\sample.calculator\*.composite     %destinationPath%\sample.calculator

Modified: incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd?view=diff&rev=454692&r1=454691&r2=454692
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd (original)
+++ incubator/tuscany/cpp/sca/samples/RubyBank/deploy.cmd Tue Oct 10 03:53:53 2006
@@ -22,13 +22,20 @@
 set currentPath=%~d0%~p0
 set sourcePath=%currentPath%
 
-if . == %2. (
-set destinationPath=%sourcePath%\deploy
+set deploydir=%TUSCANY_SCACPP%
+set samplesdir=%deploydir%\samples
+set bbdir=%samplesdir%\RubyBank
+
+
+if . == %1. (
+set destinationPath=%bbdir%\deploy
 ) ELSE (
-set destinationPath=%2
+set destinationPath=%1
 )
 
-if not exist %destinationPath%                          mkdir %destinationPath%
+if not exist %samplesdir%                      mkdir %samplesdir%
+if not exist %bbdir%                           mkdir %bbdir%
+if not exist %destinationPath%                 mkdir %destinationPath%
 if not exist %destinationPath%\bigbank.account mkdir %destinationPath%\bigbank.account
 if not exist %destinationPath%\bigbank.client  mkdir %destinationPath%\bigbank.client
 

Modified: incubator/tuscany/cpp/sca/samples/RubyCalculator/deploy.cmd
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RubyCalculator/deploy.cmd?view=diff&rev=454692&r1=454691&r2=454692
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RubyCalculator/deploy.cmd (original)
+++ incubator/tuscany/cpp/sca/samples/RubyCalculator/deploy.cmd Tue Oct 10 03:53:53 2006
@@ -22,12 +22,18 @@
 set currentPath=%~d0%~p0
 set sourcePath=%currentPath%
 
-if . == %2. (
-set destinationPath=%sourcePath%\deploy
+set deploydir=%TUSCANY_SCACPP%
+set samplesdir=%deploydir%\samples
+set calcdir=%samplesdir%\RubyCalculator
+
+if . == %1. (
+set destinationPath=%calcdir%\deploy
 ) ELSE (
-set destinationPath=%2
+set destinationPath=%1
 )
 
+if not exist %samplesdir%                        mkdir %samplesdir%
+if not exist %calcdir%                           mkdir %calcdir%
 if not exist %destinationPath%                   mkdir %destinationPath%
 if not exist %destinationPath%\sample.calculator mkdir %destinationPath%\sample.calculator
 copy %sourcePath%\sample.calculator\*.composite     %destinationPath%\sample.calculator



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


Mime
View raw message