summaryrefslogtreecommitdiffstats
path: root/cpp/sca/samples/RubyBigBank/build.xml
blob: 886c00e0191a9cc5081cab64e3e6232a2cc6839b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?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_RubyBigBank" 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/RubyBigBank"/>
    <property name="bigbank.account.dir"           location="${this.dir}/bigbank.account"/>
    <property name="bigbank.account.client.dir"    location="${this.dir}/bigbank.client"/>
    <property name="bigbank.account.wsclient.dir"  location="${this.dir}/bigbank.wsclient"/>

    <property name="RubyBigBank.install.dir"
              location="${tuscanySCA.install.dir}/samples/RubyBigBank"/>
    <property name="bigbank.account.install.dir"
              location="${RubyBigBank.install.dir}/bigbank.account"/>
    <property name="bigbank.account.client.install.dir"
              location="${RubyBigBank.install.dir}/bigbank.client"/>
    <property name="bigbank.account.wsclient.install.dir"
              location="${RubyBigBank.install.dir}/bigbank.wsclient"/>
  </target>

  <!--
    Public targets
  -->
  <target name="all"
          depends="init"
          description="install the TuscanyScaNative RubyBigBank sample">
    <antcall target="install"/>
  </target>

  <target name="install"
          depends="init"
          description="Install the TuscanyScaNative RubyBigBank sample">
    <cpp-install-files
        files="*.composite"
        srcdir="${this.dir}"
        destdir="${RubyBigBank.install.dir}"/>

       <!-- install bigbank.account.files -->
    <cpp-install-files
        files="*.rb"
        srcdir="${bigbank.account.dir}"
        destdir="${bigbank.account.install.dir}"/>
    <cpp-install-files
        files="*.composite"
        srcdir="${bigbank.account.dir}"
        destdir="${bigbank.account.install.dir}"/>
    <cpp-install-files
        files="*.wsdl"
        srcdir="${bigbank.account.dir}"
        destdir="${bigbank.account.install.dir}"/>
    <cpp-install-files
        files="*.xsd"
        srcdir="${bigbank.account.dir}"
        destdir="${bigbank.account.install.dir}"/>
    <cpp-install-files
        files="*${script.ext}"
        srcdir="${bigbank.account.dir}"
        destdir="${bigbank.account.install.dir}"
        executable="true"/>

       <!-- install bigbank.account.client files -->
    <cpp-install-files
        files="*.rb"
        srcdir="${bigbank.account.client.dir}"
        destdir="${bigbank.account.client.install.dir}"/>
    <cpp-install-files
        files="*${script.ext}"
        srcdir="${bigbank.account.client.dir}"
        destdir="${bigbank.account.client.install.dir}"
        executable="true"/>

       <!-- install bigbank.account.wsclient files -->
    <cpp-install-files
        files="*.rb"
        srcdir="${bigbank.account.wsclient.dir}"
        destdir="${bigbank.account.wsclient.install.dir}"/>
    <cpp-install-files
        files="*${script.ext}"
        srcdir="${bigbank.account.wsclient.dir}"
        destdir="${bigbank.account.wsclient.install.dir}"
        executable="true"/>
    <cpp-install-files
        files="*.composite"
        srcdir="${bigbank.account.wsclient.dir}"
        destdir="${bigbank.account.wsclient.install.dir}"/>
    <cpp-install-files
        files="*.wsdl"
        srcdir="${bigbank.account.wsclient.dir}"
        destdir="${bigbank.account.wsclient.install.dir}"/>

  </target>

  <target name="clean"
          depends="init"
          description="Clean the TuscanyScaNative RubyBigBank sample">
    <delete dir="${RubyBigBank.install.dir}" quiet="true"/>
  </target>

</project>