You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by bj...@apache.org on 2007/11/12 22:15:58 UTC

svn commit: r594299 - in /incubator/tuscany/cpp/sca/samples: AlertAggregator/build.xml PythonCalculator/build.xml PythonWeatherForecast/build.xml RestCalculator/build.xml RestCustomer/build.xml RubyBigBank/build.xml RubyCalculator/build.xml

Author: bjohnson
Date: Mon Nov 12 13:15:57 2007
New Revision: 594299

URL: http://svn.apache.org/viewvc?rev=594299&view=rev
Log:
Adding Python and AlertAggregator sample build.xml files. Also fixed minor issue with script permissions

Modified:
    incubator/tuscany/cpp/sca/samples/AlertAggregator/build.xml
    incubator/tuscany/cpp/sca/samples/PythonCalculator/build.xml
    incubator/tuscany/cpp/sca/samples/PythonWeatherForecast/build.xml
    incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml
    incubator/tuscany/cpp/sca/samples/RestCustomer/build.xml
    incubator/tuscany/cpp/sca/samples/RubyBigBank/build.xml
    incubator/tuscany/cpp/sca/samples/RubyCalculator/build.xml

Modified: incubator/tuscany/cpp/sca/samples/AlertAggregator/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/AlertAggregator/build.xml?rev=594299&r1=594298&r2=594299&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/AlertAggregator/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/AlertAggregator/build.xml Mon Nov 12 13:15:57 2007
@@ -30,7 +30,22 @@
 
   <target name="init">
     <tstamp/>
-    <property name="this.dir" location="${basedir}/samples/AlertAggregator"/>
+    <property name="this.dir"                  location="${basedir}/samples/AlertAggregator"/>
+    <property name="sample.alerter.dir"        location="${this.dir}/sample.alerter"/>
+    <property name="sample.display.dir"        location="${this.dir}/sample.display"/>
+    <property name="sample.httpserver.dir"     location="${this.dir}/httpserver"/>
+    <property name="sample.httpserver.php.dir" location="${this.dir}/httpserver.php"/>
+
+    <property name="AlertAggregator.install.dir"
+              location="${tuscanySCA.install.dir}/samples/AlertAggregator"/>
+    <property name="sample.alerter.install.dir"
+              location="${AlertAggregator.install.dir}/sample.alerter"/>
+    <property name="sample.display.install.dir"
+              location="${AlertAggregator.install.dir}/sample.display"/>
+    <property name="sample.httpserver.install.dir"
+              location="${AlertAggregator.install.dir}/httpserver"/>
+    <property name="sample.httpserver.php.install.dir"
+              location="${AlertAggregator.install.dir}/httpserver.php"/>
   </target>
 
   <!--
@@ -38,32 +53,127 @@
   -->
   <target name="all"
           depends="init"
-          description="build and install the TuscanyScaNative AlertAggregator sample">
-    <antcall target="build"/>
+          description="install the TuscanyScaNative AlertAggregator sample">
     <antcall target="install"/>
   </target>
 
-  <target name="build"
-          depends="init"
-          description="build the TuscanyScaNative AlertAggregator sample">
-    <echo> The AlertAggregator sample ant build.xml file has not been implemented yet </echo>
-  </target>
-
   <target name="install"
           depends="init"
           description="Install the TuscanyScaNative AlertAggregator sample">
-    <echo> The AlertAggregator sample ant build.xml file has not been implemented yet </echo>
+
+    <cpp-install-files
+        files="*.composite"
+        srcdir="${this.dir}"
+        destdir="${AlertAggregator.install.dir}"/>
+    <cpp-install-files
+        files="config.xml"
+        srcdir="${this.dir}"
+        destdir="${AlertAggregator.install.dir}"/>
+
+       <!-- install sample.alerter files -->
+    <cpp-install-files
+        files="*.composite"
+        srcdir="${sample.alerter.dir}"
+        destdir="${sample.alerter.install.dir}"/>
+    <cpp-install-files
+        files="*.py"
+        srcdir="${sample.alerter.dir}"
+        destdir="${sample.alerter.install.dir}"/>
+    <cpp-install-files
+        files="*.rb"
+        srcdir="${sample.alerter.dir}"
+        destdir="${sample.alerter.install.dir}"/>
+    <cpp-install-files
+        files="*.xsd"
+        srcdir="${sample.alerter.dir}"
+        destdir="${sample.alerter.install.dir}"/>
+
+       <!-- install sample.display files -->
+    <cpp-install-files
+        files="*.composite"
+        srcdir="${sample.display.dir}"
+        destdir="${sample.display.install.dir}"/>
+    <cpp-install-files
+        files="*.py"
+        srcdir="${sample.display.dir}"
+        destdir="${sample.display.install.dir}"/>
+    <cpp-install-files
+        files="*.xsd"
+        srcdir="${sample.display.dir}"
+        destdir="${sample.display.install.dir}"/>
+
+       <!-- install httpserver files -->
+    <cpp-install-files
+        files="*${script.ext}"
+        srcdir="${sample.httpserver.dir}"
+        destdir="${sample.httpserver.install.dir}"
+        executable="true"/>
+    <cpp-install-files
+        files="*.types"
+        srcdir="${sample.httpserver.dir}/conf"
+        destdir="${sample.httpserver.install.dir}/conf"/>
+    <cpp-install-files
+        files="*.conf"
+        srcdir="${sample.httpserver.dir}/conf"
+        destdir="${sample.httpserver.install.dir}/conf"/>
+    <cpp-install-files
+        files="*.html"
+        srcdir="${sample.httpserver.dir}/htdocs"
+        destdir="${sample.httpserver.install.dir}/htdocs"/>
+    <cpp-install-files
+        files="*.css"
+        srcdir="${sample.httpserver.dir}/htdocs"
+        destdir="${sample.httpserver.install.dir}/htdocs"/>
+    <cpp-install-files
+        files="*.png"
+        srcdir="${sample.httpserver.dir}/htdocs"
+        destdir="${sample.httpserver.install.dir}/htdocs"/>
+
+       <!-- install httpserver.php files -->
+    <cpp-install-files
+        files="*${script.ext}"
+        srcdir="${sample.httpserver.php.dir}"
+        destdir="${sample.httpserver.php.install.dir}"
+        executable="true"/>
+    <cpp-install-files
+        files="*.types"
+        srcdir="${sample.httpserver.php.dir}/conf"
+        destdir="${sample.httpserver.php.install.dir}/conf"/>
+    <cpp-install-files
+        files="*.conf"
+        srcdir="${sample.httpserver.php.dir}/conf"
+        destdir="${sample.httpserver.php.install.dir}/conf"/>
+    <cpp-install-files
+        files="*.html"
+        srcdir="${sample.httpserver.php.dir}/htdocs"
+        destdir="${sample.httpserver.php.install.dir}/htdocs"/>
+    <cpp-install-files
+        files="*.css"
+        srcdir="${sample.httpserver.php.dir}/htdocs"
+        destdir="${sample.httpserver.php.install.dir}/htdocs"/>
+    <cpp-install-files
+        files="*.png"
+        srcdir="${sample.httpserver.php.dir}/htdocs"
+        destdir="${sample.httpserver.php.install.dir}/htdocs"/>
+    <cpp-install-files
+        files="*.php"
+        srcdir="${sample.httpserver.php.dir}/htdocs"
+        destdir="${sample.httpserver.php.install.dir}/htdocs"/>
+    <cpp-install-files
+        files="*.xsd"
+        srcdir="${sample.httpserver.php.dir}/htdocs"
+        destdir="${sample.httpserver.php.install.dir}/htdocs"/>
+    <cpp-install-files
+        files="*.xml"
+        srcdir="${sample.httpserver.php.dir}/htdocs"
+        destdir="${sample.httpserver.php.install.dir}/htdocs"/>
+
   </target>
 
   <target name="clean"
           depends="init"
           description="Clean the TuscanyScaNative AlertAggregator sample">
-    <echo> The AlertAggregator sample ant build.xml file has not been implemented yet </echo>
+    <delete dir="${AlertAggregator.install.dir}" quiet="true"/>
   </target>
-
-  <!--
-    Internal targets
-    They can still be called, they're just not described, so wont show up in "ant -p"
-  -->
 
 </project>

Modified: incubator/tuscany/cpp/sca/samples/PythonCalculator/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PythonCalculator/build.xml?rev=594299&r1=594298&r2=594299&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PythonCalculator/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/PythonCalculator/build.xml Mon Nov 12 13:15:57 2007
@@ -31,6 +31,15 @@
   <target name="init">
     <tstamp/>
     <property name="this.dir" location="${basedir}/samples/PythonCalculator"/>
+    <property name="sample.calculator.dir"         location="${this.dir}/sample.calculator"/>
+    <property name="sample.calculator.client.dir"  location="${this.dir}/sample.calculator.client"/>
+
+    <property name="PythonCalculator.install.dir"
+              location="${tuscanySCA.install.dir}/samples/PythonCalculator"/>
+    <property name="sample.calculator.install.dir"
+              location="${PythonCalculator.install.dir}/sample.calculator"/>
+    <property name="sample.calculator.client.install.dir"
+              location="${PythonCalculator.install.dir}/sample.calculator.client"/>
   </target>
 
   <!--
@@ -38,32 +47,45 @@
   -->
   <target name="all"
           depends="init"
-          description="build and install the TuscanyScaNative PythonCalculator sample">
-    <antcall target="build"/>
+          description="install the TuscanyScaNative PythonCalculator sample">
     <antcall target="install"/>
   </target>
 
-  <target name="build"
-          depends="init"
-          description="build the TuscanyScaNative PythonCalculator sample">
-    <echo> The PythonCalculator sample ant build.xml file has not been implemented yet </echo>
-  </target>
-
   <target name="install"
           depends="init"
           description="Install the TuscanyScaNative PythonCalculator sample">
-    <echo> The PythonCalculator sample ant build.xml file has not been implemented yet </echo>
+    <cpp-install-files
+        files="*.composite"
+        srcdir="${this.dir}"
+        destdir="${PythonCalculator.install.dir}"/>
+
+       <!-- install sample.calculator.files -->
+    <cpp-install-files
+        files="*.py"
+        srcdir="${sample.calculator.dir}"
+        destdir="${sample.calculator.install.dir}"/>
+    <cpp-install-files
+        files="*.composite"
+        srcdir="${sample.calculator.dir}"
+        destdir="${sample.calculator.install.dir}"/>
+
+       <!-- install sample.calculator.client files -->
+    <cpp-install-files
+        files="*.py"
+        srcdir="${sample.calculator.client.dir}"
+        destdir="${sample.calculator.client.install.dir}"/>
+    <cpp-install-files
+        files="*${script.ext}"
+        srcdir="${sample.calculator.client.dir}"
+        destdir="${sample.calculator.client.install.dir}"
+        executable="true"/>
+
   </target>
 
   <target name="clean"
           depends="init"
           description="Clean the TuscanyScaNative PythonCalculator sample">
-    <echo> The PythonCalculator sample ant build.xml file has not been implemented yet </echo>
+    <delete dir="${PythonCalculator.install.dir}" quiet="true"/>
   </target>
-
-  <!--
-    Internal targets
-    They can still be called, they're just not described, so wont show up in "ant -p"
-  -->
 
 </project>

Modified: incubator/tuscany/cpp/sca/samples/PythonWeatherForecast/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/PythonWeatherForecast/build.xml?rev=594299&r1=594298&r2=594299&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/PythonWeatherForecast/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/PythonWeatherForecast/build.xml Mon Nov 12 13:15:57 2007
@@ -31,6 +31,15 @@
   <target name="init">
     <tstamp/>
     <property name="this.dir" location="${basedir}/samples/PythonWeatherForecast"/>
+    <property name="sample.weather.dir"         location="${this.dir}/sample.weather"/>
+    <property name="sample.weather.client.dir"  location="${this.dir}/sample.weather.client"/>
+
+    <property name="PythonWeather.install.dir"
+              location="${tuscanySCA.install.dir}/samples/PythonWeatherForecast"/>
+    <property name="sample.weather.install.dir"
+              location="${PythonWeather.install.dir}/sample.weather"/>
+    <property name="sample.weather.client.install.dir"
+              location="${PythonWeather.install.dir}/sample.weather.client"/>
   </target>
 
   <!--
@@ -38,32 +47,49 @@
   -->
   <target name="all"
           depends="init"
-          description="build and install the TuscanyScaNative PythonWeatherForecast sample">
-    <antcall target="build"/>
+          description="install the TuscanyScaNative PythonWeatherForecast sample">
     <antcall target="install"/>
   </target>
 
-  <target name="build"
-          depends="init"
-          description="build the TuscanyScaNative PythonWeatherForecast sample">
-    <echo> The PythonWeatherForecast sample ant build.xml file has not been implemented yet </echo>
-  </target>
-
   <target name="install"
           depends="init"
           description="Install the TuscanyScaNative PythonWeatherForecast sample">
-    <echo> The PythonWeatherForecast sample ant build.xml file has not been implemented yet </echo>
+    <cpp-install-files
+        files="*.composite"
+        srcdir="${this.dir}"
+        destdir="${PythonWeather.install.dir}"/>
+
+       <!-- install sample.weather.files -->
+    <cpp-install-files
+        files="*.py"
+        srcdir="${sample.weather.dir}"
+        destdir="${sample.weather.install.dir}"/>
+    <cpp-install-files
+        files="*.composite"
+        srcdir="${sample.weather.dir}"
+        destdir="${sample.weather.install.dir}"/>
+    <cpp-install-files
+        files="*.wsdl"
+        srcdir="${sample.weather.dir}"
+        destdir="${sample.weather.install.dir}"/>
+
+       <!-- install sample.weather.client files -->
+    <cpp-install-files
+        files="*.py"
+        srcdir="${sample.weather.client.dir}"
+        destdir="${sample.weather.client.install.dir}"/>
+    <cpp-install-files
+        files="*${script.ext}"
+        srcdir="${sample.weather.client.dir}"
+        destdir="${sample.weather.client.install.dir}"
+        executable="true"/>
+
   </target>
 
   <target name="clean"
           depends="init"
           description="Clean the TuscanyScaNative PythonWeatherForecast sample">
-    <echo> The PythonWeatherForecast sample ant build.xml file has not been implemented yet </echo>
+    <delete dir="${PythonWeather.install.dir}" quiet="true"/>
   </target>
-
-  <!--
-    Internal targets
-    They can still be called, they're just not described, so wont show up in "ant -p"
-  -->
 
 </project>

Modified: incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml?rev=594299&r1=594298&r2=594299&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml Mon Nov 12 13:15:57 2007
@@ -92,7 +92,8 @@
     <cpp-install-files
         files="*${script.ext}"
         srcdir="${sample.httpserver.dir}"
-        destdir="${sample.httpserver.install.dir}"/>
+        destdir="${sample.httpserver.install.dir}"
+        executable="true"/>
     <cpp-install-files
         files="*.types"
         srcdir="${sample.httpserver.dir}/conf"

Modified: incubator/tuscany/cpp/sca/samples/RestCustomer/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RestCustomer/build.xml?rev=594299&r1=594298&r2=594299&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RestCustomer/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/RestCustomer/build.xml Mon Nov 12 13:15:57 2007
@@ -104,7 +104,8 @@
     <cpp-install-files
         files="*${script.ext}"
         srcdir="${sample.httpserver.dir}"
-        destdir="${sample.httpserver.install.dir}"/>
+        destdir="${sample.httpserver.install.dir}"
+        executable="true"/>
     <cpp-install-files
         files="*.types"
         srcdir="${sample.httpserver.dir}/conf"

Modified: incubator/tuscany/cpp/sca/samples/RubyBigBank/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RubyBigBank/build.xml?rev=594299&r1=594298&r2=594299&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RubyBigBank/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/RubyBigBank/build.xml Mon Nov 12 13:15:57 2007
@@ -82,7 +82,8 @@
     <cpp-install-files
         files="*${script.ext}"
         srcdir="${bigbank.account.dir}"
-        destdir="${bigbank.account.install.dir}"/>
+        destdir="${bigbank.account.install.dir}"
+        executable="true"/>
 
        <!-- install bigbank.account.client files -->
     <cpp-install-files
@@ -92,7 +93,8 @@
     <cpp-install-files
         files="*${script.ext}"
         srcdir="${bigbank.account.client.dir}"
-        destdir="${bigbank.account.client.install.dir}"/>
+        destdir="${bigbank.account.client.install.dir}"
+        executable="true"/>
 
        <!-- install bigbank.account.wsclient files -->
     <cpp-install-files
@@ -102,7 +104,8 @@
     <cpp-install-files
         files="*${script.ext}"
         srcdir="${bigbank.account.wsclient.dir}"
-        destdir="${bigbank.account.wsclient.install.dir}"/>
+        destdir="${bigbank.account.wsclient.install.dir}"
+        executable="true"/>
     <cpp-install-files
         files="*.composite"
         srcdir="${bigbank.account.wsclient.dir}"

Modified: incubator/tuscany/cpp/sca/samples/RubyCalculator/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RubyCalculator/build.xml?rev=594299&r1=594298&r2=594299&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RubyCalculator/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/RubyCalculator/build.xml Mon Nov 12 13:15:57 2007
@@ -81,7 +81,8 @@
     <cpp-install-files
         files="*${script.ext}"
         srcdir="${sample.calculator.client.dir}"
-        destdir="${sample.calculator.client.install.dir}"/>
+        destdir="${sample.calculator.client.install.dir}"
+        executable="true"/>
 
   </target>
 



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