Author: bjohnson
Date: Fri Nov 9 14:37:57 2007
New Revision: 593677
URL: http://svn.apache.org/viewvc?rev=593677&view=rev
Log:
Complete sample build.xml for RestCalculator, RestCustomer, and RestYahoo
Modified:
incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml
incubator/tuscany/cpp/sca/samples/RestCustomer/build.xml
incubator/tuscany/cpp/sca/samples/RestYahoo/build.xml
Modified: incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml?rev=593677&r1=593676&r2=593677&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/RestCalculator/build.xml Fri Nov 9
14:37:57 2007
@@ -30,7 +30,19 @@
<target name="init">
<tstamp/>
- <property name="this.dir" location="${basedir}/samples/RestCalculator"/>
+ <property name="this.dir"
location="${basedir}/samples/RestCalculator"/>
+ <property name="sample.calculator.dir"
location="${this.dir}/sample.calculator"/>
+ <property name="sample.calculator.client.dir"
location="${this.dir}/sample.calculator.restclient"/>
+ <property name="sample.httpserver.dir"
location="${this.dir}/httpserver"/>
+
+ <property name="RestCalculator.install.dir"
+ location="${tuscanySCA.install.dir}/samples/RestCalculator"/>
+ <property name="sample.calculator.install.dir"
+ location="${RestCalculator.install.dir}/sample.calculator"/>
+ <property name="sample.calculator.client.install.dir"
+
location="${RestCalculator.install.dir}/sample.calculator.restclient"/>
+ <property name="sample.httpserver.install.dir"
+ location="${RestCalculator.install.dir}/httpserver"/>
</target>
<!--
@@ -38,32 +50,67 @@
-->
<target name="all"
depends="init"
- description="build and install the TuscanyScaNative RestCalculator
sample">
- <antcall target="build"/>
+ description="install the TuscanyScaNative RestCalculator sample (no
build necessary)">
<antcall target="install"/>
</target>
- <target name="build"
- depends="init"
- description="build the TuscanyScaNative RestCalculator sample">
- <echo> The RestCalculator sample ant build.xml file has not been
implemented yet </echo>
- </target>
+ <!-- This sample does not require building, just installation -->
<target name="install"
depends="init"
description="Install the TuscanyScaNative RestCalculator sample">
- <echo> The RestCalculator sample ant build.xml file has not been
implemented yet </echo>
+ <cpp-install-files
+ files="*.composite"
+ srcdir="${this.dir}"
+ destdir="${RestCalculator.install.dir}"/>
+
+ <!-- install sample.calculatur files -->
+ <cpp-install-files
+ files="*.rb"
+ 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.calculatur.restclient files -->
+ <cpp-install-file
+ srcfile="CalculatorRestClient.rb"
+ srcdir="${sample.calculator.client.dir}"
+ destdir="${sample.calculator.client.install.dir}"/>
+ <cpp-install-file
+ srcfile="sample.calculator.restclient.composite"
+ srcdir="${sample.calculator.client.dir}"
+ destdir="${sample.calculator.client.install.dir}"/>
+ <cpp-install-file
+ srcfile="runrestclient${script.ext}"
+ srcdir="${sample.calculator.client.dir}"
+ destdir="${sample.calculator.client.install.dir}"/>
+
+ <!-- install httpserver files -->
+ <cpp-install-files
+ files="*${script.ext}"
+ srcdir="${sample.httpserver.dir}"
+ destdir="${sample.httpserver.install.dir}"/>
+ <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"/>
</target>
<target name="clean"
depends="init"
description="Clean the TuscanyScaNative RestCalculator sample">
- <echo> The RestCalculator sample ant build.xml file has not been
implemented yet </echo>
+ <delete dir="${RestCalculator.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/RestCustomer/build.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RestCustomer/build.xml?rev=593677&r1=593676&r2=593677&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RestCustomer/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/RestCustomer/build.xml Fri Nov 9
14:37:57 2007
@@ -31,6 +31,18 @@
<target name="init">
<tstamp/>
<property name="this.dir" location="${basedir}/samples/RestCustomer"/>
+ <property name="sample.customer.dir"
location="${this.dir}/sample.customer"/>
+ <property name="sample.customer.client.dir"
location="${this.dir}/sample.customer.restclient"/>
+ <property name="sample.httpserver.dir"
location="${this.dir}/httpserver"/>
+
+ <property name="RestCustomer.install.dir"
+ location="${tuscanySCA.install.dir}/samples/RestCustomer"/>
+ <property name="sample.customer.install.dir"
+ location="${RestCustomer.install.dir}/sample.customer"/>
+ <property name="sample.customer.client.install.dir"
+
location="${RestCustomer.install.dir}/sample.customer.restclient"/>
+ <property name="sample.httpserver.install.dir"
+ location="${RestCustomer.install.dir}/httpserver"/>
</target>
<!--
@@ -38,32 +50,79 @@
-->
<target name="all"
depends="init"
- description="build and install the TuscanyScaNative RestCustomer
sample">
- <antcall target="build"/>
+ description="install the TuscanyScaNative RestCustomer sample (no
build necessary)">
<antcall target="install"/>
</target>
- <target name="build"
- depends="init"
- description="build the TuscanyScaNative RestCustomer sample">
- <echo> The RestCustomer sample ant build.xml file has not been implemented
yet </echo>
- </target>
+ <!-- This sample does not require building, just installation -->
<target name="install"
depends="init"
description="Install the TuscanyScaNative RestCustomer sample">
- <echo> The RestCustomer sample ant build.xml file has not been implemented
yet </echo>
+ <cpp-install-files
+ files="*.composite"
+ srcdir="${this.dir}"
+ destdir="${RestCustomer.install.dir}"/>
+
+ <!-- install sample.customer files -->
+ <cpp-install-files
+ files="*.py"
+ srcdir="${sample.customer.dir}"
+ destdir="${sample.customer.install.dir}"/>
+ <cpp-install-files
+ files="*.xsd"
+ srcdir="${sample.customer.dir}"
+ destdir="${sample.customer.install.dir}"/>
+ <cpp-install-files
+ files="*.composite"
+ srcdir="${sample.customer.dir}"
+ destdir="${sample.customer.install.dir}"/>
+ <cpp-install-file
+ srcfile="2345.xml"
+ srcdir="${sample.customer.dir}"
+ destdir="${sample.customer.install.dir}"/>
+
+ <!-- install sample.customer.restclient files -->
+ <cpp-install-files
+ files="*.py"
+ srcdir="${sample.customer.client.dir}"
+ destdir="${sample.customer.client.install.dir}"/>
+ <cpp-install-files
+ files="*.xsd"
+ srcdir="${sample.customer.client.dir}"
+ destdir="${sample.customer.client.install.dir}"/>
+ <cpp-install-files
+ files="*.composite"
+ srcdir="${sample.customer.client.dir}"
+ destdir="${sample.customer.client.install.dir}"/>
+ <cpp-install-file
+ srcfile="runrestclient${script.ext}"
+ srcdir="${sample.customer.client.dir}"
+ destdir="${sample.customer.client.install.dir}"/>
+
+ <!-- install httpserver files -->
+ <cpp-install-files
+ files="*${script.ext}"
+ srcdir="${sample.httpserver.dir}"
+ destdir="${sample.httpserver.install.dir}"/>
+ <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"/>
</target>
<target name="clean"
depends="init"
description="Clean the TuscanyScaNative RestCustomer sample">
- <echo> The RestCustomer sample ant build.xml file has not been implemented
yet </echo>
+ <delete dir="${RestCustomer.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/RestYahoo/build.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/samples/RestYahoo/build.xml?rev=593677&r1=593676&r2=593677&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/samples/RestYahoo/build.xml (original)
+++ incubator/tuscany/cpp/sca/samples/RestYahoo/build.xml Fri Nov 9 14:37:57
2007
@@ -30,7 +30,16 @@
<target name="init">
<tstamp/>
- <property name="this.dir" location="${basedir}/samples/RestYahoo"/>
+ <property name="this.dir"
location="${basedir}/samples/RestYahoo"/>
+ <property name="sample.yahoo.dir"
location="${this.dir}/sample.yahoo"/>
+ <property name="sample.yahoo.client.dir"
location="${this.dir}/sample.yahoo.client"/>
+
+ <property name="RestYahoo.install.dir"
+ location="${tuscanySCA.install.dir}/samples/RestYahoo"/>
+ <property name="sample.yahoo.install.dir"
+ location="${RestYahoo.install.dir}/sample.yahoo"/>
+ <property name="sample.yahoo.client.install.dir"
+ location="${RestYahoo.install.dir}/sample.yahoo.client"/>
</target>
<!--
@@ -39,31 +48,49 @@
<target name="all"
depends="init"
description="build and install the TuscanyScaNative RestYahoo
sample">
- <antcall target="build"/>
<antcall target="install"/>
</target>
- <target name="build"
- depends="init"
- description="build the TuscanyScaNative RestYahoo sample">
- <echo> The RestYahoo sample ant build.xml file has not been implemented
yet </echo>
- </target>
+ <!-- This sample does not require building, just installation -->
<target name="install"
depends="init"
description="Install the TuscanyScaNative RestYahoo sample">
- <echo> The RestYahoo sample ant build.xml file has not been implemented
yet </echo>
+ <cpp-install-files
+ files="*.composite"
+ srcdir="${this.dir}"
+ destdir="${RestYahoo.install.dir}"/>
+
+ <!-- install sample.yahoo files -->
+ <cpp-install-files
+ files="*.py"
+ srcdir="${sample.yahoo.dir}"
+ destdir="${sample.yahoo.install.dir}"/>
+ <cpp-install-files
+ files="*.composite"
+ srcdir="${sample.yahoo.dir}"
+ destdir="${sample.yahoo.install.dir}"/>
+ <cpp-install-files
+ files="*.xsd"
+ srcdir="${sample.yahoo.dir}"
+ destdir="${sample.yahoo.install.dir}"/>
+
+ <!-- install sample.yahoo.client files -->
+ <cpp-install-files
+ files="*.rb"
+ srcdir="${sample.yahoo.client.dir}"
+ destdir="${sample.yahoo.client.install.dir}"/>
+ <cpp-install-file
+ srcfile="runclient${script.ext}"
+ srcdir="${sample.yahoo.client.dir}"
+ destdir="${sample.yahoo.client.install.dir}"/>
+
</target>
<target name="clean"
depends="init"
description="Clean the TuscanyScaNative RestYahoo sample">
- <echo> The RestYahoo sample ant build.xml file has not been implemented
yet </echo>
+ <delete dir="${RestYahoo.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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]