Live Templates: remove never used ability to reformat custom range in template
[idea/community.git] / build / update.xml
1 <!--
2   ~ Copyright 2000-2010 JetBrains s.r.o.
3   ~
4   ~ Licensed under the Apache License, Version 2.0 (the "License");
5   ~ you may not use this file except in compliance with the License.
6   ~ You may obtain a copy of the License at
7   ~
8   ~ http://www.apache.org/licenses/LICENSE-2.0
9   ~
10   ~ Unless required by applicable law or agreed to in writing, software
11   ~ distributed under the License is distributed on an "AS IS" BASIS,
12   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   ~ See the License for the specific language governing permissions and
14   ~ limitations under the License.
15   -->
16 <project name="IntelliJ IDEA CE build file" default="layout">
17   <dirname property="build" file="${ant.file}"/>
18   <property name="project.home" value="${build}/../"/>
19   <property name="gant.home" value="${project.home}/build/lib/gant"/>
20   <property name="modules.output" value="${project.home}/out"/>
21
22   <macrodef name="run">
23     <attribute name="script"/>
24     <attribute name="target" default="default"/>
25     <attribute name="deploy"/>
26
27     <sequential>
28       <java classname="org.apache.tools.ant.Main" fork="true" failonerror="true" dir="${project.home}">
29         <sysproperty key="workIdeaHome" value="${work.idea.home}"/>
30         <sysproperty key="modulesOutput" value="${modules.output}"/>
31         <sysproperty key="gant.script" value="${project.home}/build/scripts/download_kotlin.gant"/>
32         <sysproperty key="include.kotlin.jars.to.classpath" value="false"/>
33         <classpath>
34           <fileset dir="${project.home}/lib/ant/lib">
35             <include name="*.jar"/>
36           </fileset>
37         </classpath>
38         <arg value="-f"/>
39         <arg value="${project.home}/build/gant.xml"/>
40       </java>
41       <java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
42         <jvmarg line="-Xms64m -Xmx512m"/>
43         <jvmarg line="&quot;-Ddeploy=@{deploy}&quot;"/>
44         <jvmarg line="&quot;-Dmodules.output=${modules.output}&quot;"/>
45         <jvmarg line="&quot;-Dgant.script=@{script}&quot;"/>
46         <jvmarg line="&quot;-Dgant.target=@{target}&quot;"/>
47         <jvmarg line="-DmaySkipAndroidPlugin=true"/>
48
49         <classpath>
50           <fileset dir="${project.home}/lib/ant/lib">
51             <include name="*.jar"/>
52           </fileset>
53         </classpath>
54
55         <arg value="-f"/>
56         <arg value="gant.xml"/>
57       </java>
58     </sequential>
59   </macrodef>
60
61   <target name="layout">
62     <run script="${project.home}/build/scripts/dist.gant"
63          target="update-from-sources"
64          deploy="${project.home}/out/deploy"/>
65   </target>
66
67   <target name="build-jars">
68     <run script="${project.home}/build/scripts/dist.gant"
69          target="build-dist-jars"
70          deploy="${project.home}/out/deploy"/>
71   </target>
72 </project>