CPP-5210 Add "Accessors" to jetbrains dictionary
[idea/community.git] / build.xml
1 <!--
2  This build script compiles IntelliJ IDEA. Options include:
3     -Dout=/path/to/out/dir, defaults to ${basedir}/out
4     -Dbuild=123, defaults to SNAPSHOT
5     -Dtestpatterns=com.foo.*, defaults to empty string
6     -Dproduct=foo, defaults to idea
7  -->
8 <project name="IntelliJ IDEA Community Edition" default="all">
9   <property name="project.home" value="${basedir}"/>
10
11   <condition property="out.dir" value="${out}" else="${project.home}/out">
12     <isset property="out" />
13   </condition>
14
15   <condition property="build.number" value="${build}" else="SNAPSHOT">
16     <isset property="build" />
17   </condition>
18
19   <condition property="test.patterns" value="${testpatterns}" else="">
20     <isset property="testpatterns" />
21   </condition>
22
23   <condition property="product.name" value="${product}" else="idea">
24     <isset property="product" />
25   </condition>
26
27   <property name="tmp.dir" value="${out.dir}/tmp"/>
28
29   <target name="cleanup">
30     <delete dir="${out.dir}" failonerror="false"/>
31   </target>
32
33   <target name="init">
34     <mkdir dir="${out.dir}"/>
35     <mkdir dir="${tmp.dir}"/>
36     <java classname="org.apache.tools.ant.Main" fork="true" failonerror="true" dir="${project.home}">
37       <sysproperty key="gant.script" value="${project.home}/build/scripts/download_kotlin.gant"/>
38       <classpath>
39         <fileset dir="${project.home}/lib/ant/lib">
40           <include name="*.jar"/>
41         </fileset>
42       </classpath>
43       <arg value="-f"/>
44       <arg value="${project.home}/build/gant.xml"/>
45     </java>
46   </target>
47
48   <macrodef name="call_gant">
49     <attribute name="script" />
50     <sequential>
51       <java failonerror="true" jar="${project.home}/lib/ant/lib/ant-launcher.jar" fork="true">
52         <jvmarg line="-Xmx612m -XX:MaxPermSize=152m"/>
53         <sysproperty key="jna.nosys" value="true" />
54         <sysproperty key="out" value="${out.dir}" />
55         <sysproperty key="buildNumber" value="${build.number}" />
56         <sysproperty key="idea.test.patterns" value="${test.patterns}" />
57         <sysproperty key="product" value="${product.name}" />
58         <sysproperty key="java.awt.headless" value="true"/>
59         <sysproperty key="gant.script" value="@{script}"/>
60         <sysproperty key="teamcity.build.tempDir" value="${tmp.dir}"/>
61         <sysproperty key="idea.test.group" value="ALL_EXCLUDE_DEFINED"/>
62         <arg value="-f"/>
63         <arg value="${project.home}/build/gant.xml"/>
64       </java>
65     </sequential>
66   </macrodef>
67
68   <target name="build" depends="init">
69     <call_gant script="${project.home}/build/scripts/dist.gant"/>
70   </target>
71
72   <target name="test" depends="init">
73     <call_gant script="${project.home}/build/scripts/tests.gant"/>
74   </target>
75
76   <!-- The build task creates an updater.jar in ${out.dir}. This task bundles the updater and its dependencies into a single jar -->
77   <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="${project.home}/build/lib/jarjar-1.0.jar"/>
78   <target name="fullupdater" depends="build">
79     <jarjar jarfile="${out.dir}/updater-full.jar">
80       <zipfileset src="${out.dir}/updater.jar" />
81       <zipfileset src="lib/log4j.jar" />
82       <zipfileset src="lib/jna.jar" />
83       <zipfileset src="lib/jna-utils.jar" />
84     </jarjar>
85   </target>
86
87   <target name="all" depends="cleanup,build"/>
88 </project>