diff options
author | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
---|---|---|
committer | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
commit | bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a (patch) | |
tree | 38a92061c0793434c4be189f1d70c3458b6bc41d /cpp/sca/samples/RubyCalculator/build.xml |
Move Tuscany from Incubator to top level.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/sca/samples/RubyCalculator/build.xml')
-rw-r--r-- | cpp/sca/samples/RubyCalculator/build.xml | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/cpp/sca/samples/RubyCalculator/build.xml b/cpp/sca/samples/RubyCalculator/build.xml new file mode 100644 index 0000000000..2d7eef386e --- /dev/null +++ b/cpp/sca/samples/RubyCalculator/build.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<project name="TuscanyScaNative_Sample_RubyCalculator" default="all" basedir="../.."> + + <import file="${basedir}/antscripts/system.xml"/> + <import file="${basedir}/antscripts/compile-targets.xml"/> + + <!-- + Notice that the basedir for this project is set to the TuscanySCA root dir + This makes path setting in system.xml much simpler, but we'll just have to + set a property here to this directory. + --> + + <target name="init"> + <tstamp/> + <property name="this.dir" location="${basedir}/samples/RubyCalculator"/> + <property name="sample.calculator.dir" location="${this.dir}/sample.calculator"/> + <property name="sample.calculator.client.dir" location="${this.dir}/sample.calculator.client"/> + + <property name="RubyCalculator.install.dir" + location="${tuscanySCA.install.dir}/samples/RubyCalculator"/> + <property name="sample.calculator.install.dir" + location="${RubyCalculator.install.dir}/sample.calculator"/> + <property name="sample.calculator.client.install.dir" + location="${RubyCalculator.install.dir}/sample.calculator.client"/> + </target> + + <!-- + Public targets + --> + <target name="all" + depends="init" + description="install the TuscanyScaNative RubyCalculator sample"> + <antcall target="install"/> + </target> + + <target name="install" + depends="init" + description="Install the TuscanyScaNative RubyCalculator sample"> + <cpp-install-files + files="*.composite" + srcdir="${this.dir}" + destdir="${RubyCalculator.install.dir}"/> + + <!-- install sample.calculator.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}"/> + <cpp-install-files + files="*.wsdl" + srcdir="${sample.calculator.dir}" + destdir="${sample.calculator.install.dir}"/> + + <!-- install sample.calculator.client files --> + <cpp-install-files + files="*.rb" + 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 RubyCalculator sample"> + <delete dir="${RubyCalculator.install.dir}" quiet="true"/> + </target> + +</project> |