move calculator contributor result on the top of SE results
[idea/community.git] / build / gant.xml
1 <project name="Test gant invocation from Ant script" default="doGant">
2   <dirname property="build.dir" file="${ant.file}"/>
3   <property name="project.home" value="${build.dir}/.."/>
4   <property name="idea.lib" value="${project.home}/lib"/>
5   <property environment="env"/>
6
7   <condition property="gant.target" value="default">
8     <not>
9       <isset property="gant.target"/>
10     </not>
11   </condition>
12
13   <target name="init">
14     <property name="gradle.home" value="${project.home}/build/dependencies"/>
15     <condition property="gradle.daemon" value="--daemon" else="--no-daemon">
16       <and>
17         <isset property="intellij.build.use.gradle.daemon"/>
18         <equals arg1="${intellij.build.use.gradle.daemon}" arg2="true"/>
19       </and>
20     </condition>
21     <condition property="gradle.args" value="${intellij.gradle.jdk.build.parameters}" else="--stacktrace">
22       <and>
23         <isset property="intellij.gradle.jdk.build.parameters"/>
24         <not>
25           <equals arg1="${intellij.gradle.jdk.build.parameters}" arg2=""/>
26         </not>
27       </and>
28     </condition>
29     <condition property="gradlew" value="gradlew.bat" else="gradlew">
30       <os family="windows"/>
31     </condition>
32     <condition property="java.path" value="${env.JDK_18_x64}" else="${java.home}">
33       <isset property="env.JDK_18_x64"/>
34     </condition>
35     <exec executable="${gradle.home}/${gradlew}" dir="${gradle.home}" failonerror="true">
36       <env key="JAVA_HOME" value="${java.path}"/>
37       <arg value="${gradle.daemon}"/>
38       <arg value="-Djava.io.tmpdir=${java.io.tmpdir}"/>
39       <arg line="${gradle.args}"/>
40       <arg value="setupBuildScriptsDeps"/>
41     </exec>
42   </target>
43
44   <target name="doGant" depends="init">
45     <path id="gant.classpath">
46       <pathelement path="${project.home}/platform/build-scripts/groovy"/>
47       <pathelement path="${project.home}/build/groovy"/>
48       <fileset dir="${project.home}/build/dependencies/build/build-scripts-deps">
49         <include name="*.jar"/>
50       </fileset>
51     </path>
52
53     <taskdef name="gant" classname="org.jetbrains.jps.gant.GantWithClasspathTask">
54       <classpath refid="gant.classpath"/>
55     </taskdef>
56
57     <gant file="${gant.script}" target="${gant.target}"/>
58   </target>
59 </project>