typo
[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="deploy"/>
25
26     <sequential>
27       <java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
28         <jvmarg line="-Xms64m -Xmx512m"/>
29         <jvmarg line="&quot;-Ddeploy=@{deploy}&quot;"/>
30         <jvmarg line="&quot;-Dmodules.output=${modules.output}&quot;"/>
31         <jvmarg line="&quot;-Dgant.script=@{script}&quot;"/>
32
33         <classpath>
34           <fileset dir="${project.home}/lib/ant/lib">
35             <include name="*.jar"/>
36           </fileset>
37           <fileset dir="${gant.home}/lib">
38             <include name="*.jar"/>
39           </fileset>
40         </classpath>
41
42         <arg value="-f"/>
43         <arg value="gant.xml"/>
44       </java>
45
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           <pathelement location="${project.home}/lib/jna.jar"/>
54         </classpath>
55       </java>
56     </sequential>
57   </macrodef>
58
59   <target name="layout">
60     <run script="${project.home}/build/scripts/layouts.gant"
61          deploy="${project.home}/out/deploy"/>
62   </target>
63 </project>