annotate build/ant.build.xml @ 1045:71d765469b2d

fixed function name
author victory.bedrosova
date Tue, 19 Jan 2021 22:53:01 +0100
parents 7bf4d943d5bb
children
rev   line source
732
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
1 <!--
976
7bf4d943d5bb Update copyright
pavel.sher
parents: 732
diff changeset
2 ~ Copyright 2000-2018 JetBrains s.r.o.
732
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
3 ~
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
5 ~ you may not use this file except in compliance with the License.
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
6 ~ You may obtain a copy of the License at
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
7 ~
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
8 ~ http://www.apache.org/licenses/LICENSE-2.0
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
9 ~
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
10 ~ Unless required by applicable law or agreed to in writing, software
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
13 ~ See the License for the specific language governing permissions and
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
14 ~ limitations under the License.
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
15 -->
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 616
diff changeset
16
490
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
17 <project name="build hooks" default="replace-tokens-in-teamcity-plugin-xml" basedir=".">
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
18
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
19 <target name="replace-tokens-in-teamcity-plugin-xml">
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
20 <property name="home" value="${artifact.output.path}"/>
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
21
616
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
22 <tstamp>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
23 <format property="timestamp" pattern="yyyyMMddhhmmss"/>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
24 </tstamp>
490
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
25
616
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
26 <property name="snapshot.build.number" value="SNAPSHOT-${timestamp}"/>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
27
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
28 <condition property="plugin.version" value="${snapshot.build.number}" else="${build.number}">
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
29 <or>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
30 <not>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
31 <isset property="build.number"/>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
32 </not>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
33 <matches pattern="snapshot-.*" string="${build.number}" casesensitive="false"/>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
34 </or>
490
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
35 </condition>
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
36
616
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
37 <echo message="replacing tokens in teamcity-plugin.xml file under ${home}"/>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
38 <echo message="Setting version to: ${plugin.version}"/>
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
39
490
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
40 <!-- update all references in teamcity-plugin.xml files -->
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
41 <replace dir="${home}" summary="true">
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
42 <include name="**/teamcity-plugin.xml"/>
616
7a4ecffe34a9 fix plugin version
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 490
diff changeset
43 <replacefilter token="@version@" value="${plugin.version}"/>
490
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
44 </replace>
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
45 </target>
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
46
f77000a89e97 Add idea artifacts
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents:
diff changeset
47 </project>