Merge branch 'master' of git@git.labs.intellij.net:idea/community
[fedora-idea.git] / build / update.xml
bloba397ee03a0d36c5725e34315cbf306e29993995a
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"/>
22   <macrodef name="run">
23     <attribute name="script"/>
24     <attribute name="deploy"/>
25     <sequential>
26       <java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
27         <jvmarg line="-Xms64m -Xmx512m"/>
28         <jvmarg line="&quot;-Ddeploy=@{deploy}&quot;"/>
29         <jvmarg line="&quot;-Dmodules.output=${modules.output}&quot;"/>
30         <jvmarg line="&quot;-Dgant.script=@{script}&quot;"/>
32         <classpath>
33           <fileset dir="${project.home}/lib/ant/lib">
34             <include name="*.jar"/>
35           </fileset>
36           <pathelement location="../build/lib/gant_patches.jar"/>
37           <fileset dir="${gant.home}/lib">
38             <include name="*.jar"/>
39           </fileset>
40         </classpath>
42         <arg value="-f"/>
43         <arg value="gant.xml"/>
44       </java>
46       <java classname="com.intellij.util.io.zip.ReorderJarsMain" fork="true">
47         <arg value="${build}/order.txt"/>
48         <arg value="@{deploy}"/>
49         <arg value="@{deploy}"/>
50         <arg value="${project.home}/lib"/>
51         <classpath>
52           <pathelement location="${modules.output}/production/util"/>
53         </classpath>
54       </java>
56     </sequential>
57   </macrodef>
59   <target name="layout">
60     <run script="${project.home}/build/scripts/layouts.gant"
61              deploy="${project.home}/out/deploy"/>
62   </target>
63 </project>