summaryrefslogtreecommitdiffstats
path: root/java/sca/otest/current/build.xml
blob: 1ebfe83b6640f8aa4d616779752d753f79223c86 (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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!--
 * 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="copy-files-from-svn"> 
    <target name="copySourceDir"> 
        <sync todir="${to.dir}" verbose="true">
            <fileset dir="${from.dir}">
                <include name="**/*.java"/>
                <exclude name="**/.svn/**/*"/>
            </fileset>
        </sync>
    </target>

    <target name="copyResourceDir"> 
        <sync todir="${to.dir}" verbose="true">
            <fileset dir="${from.dir}">
                <exclude name="**/*.java"/>
                <exclude name="**/.svn/**/*"/>
            </fileset>
        </sync>
    </target>


    <target name="copyFile"> 
        <copy file="${from.file}"
              tofile="${to.file}"/>
    </target>

    <target name="fixUpContributions"> 
        <antcall target="fixUpContribution"><param name="contrib" value="General"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="General_Java"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_4002"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_4003"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_4004"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_4005"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_4007"/></antcall>

        <antcall target="fixUpContribution"><param name="contrib" value="ASM_5004"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_5005"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_5007"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_5009"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_5023"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_5024"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_5027"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_5030"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_5035"/></antcall>

        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6001"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6002"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6003"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6005"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6006"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6008"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6012"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6021"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6022"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6025"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6028"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6029"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6031"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6032"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_6033"/></antcall>

        <antcall target="fixUpContribution"><param name="contrib" value="ASM_7001"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_7007"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_7008"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_7009"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_7010"/></antcall>

        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8001"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8001_Java"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8003"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8004"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8005"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8010"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8011"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8012"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8017"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_8019"/></antcall>

        <antcall target="fixUpContribution"><param name="contrib" value="ASM_9002"/></antcall>

        <antcall target="fixUpContribution"><param name="contrib" value="ASM_10001"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_10003"/></antcall>

        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12001"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12002"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12003"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12005"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12007"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12008"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12009"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12010"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12012"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_12013"/></antcall>

        <antcall target="fixUpContribution"><param name="contrib" value="ASM_13001"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_13002"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_13003"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_13004"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_13005"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_13006"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_13007"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="ASM_13008"/></antcall>

        <antcall target="fixUpContribution"><param name="contrib" value="Contribution1"/></antcall>
        <antcall target="fixUpContribution"><param name="contrib" value="Contribution2"/></antcall>
    </target>


    <target name="fixUpContribution"> 

       <!-- copy in pom -->
       <antcall target="copyTemplatePom">
           <param name="from.file" value="./template-pom.xml"/>
           <param name="to.file" value="${contrib}/pom.xml"/>
       </antcall>

    </target>

    <target name="copyTemplatePom"> 
        <delete file="${to.file}" quiet="true"/>
        <copy file="${from.file}"
              tofile="${to.file}">
           <filterchain>
                <replacetokens>
                    <token key="ASM" value="${contrib}"/>
                </replacetokens>
            </filterchain>
        </copy>
    </target>
</project>