forked from joewalnes/idea-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
41 lines (34 loc) · 1.19 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<project name="IntelliJ IDEA Community Edition" default="all">
<property name="project.home" value="${basedir}"/>
<property name="out.dir" value="${project.home}/out"/>
<property name="gant.home" value="${project.home}/build/lib/gant"/>
<target name="cleanup">
<delete dir="${out.dir}" failonerror="false"/>
</target>
<target name="init">
<mkdir dir="${out.dir}"/>
</target>
<macrodef name="call_gant">
<attribute name="script" />
<sequential>
<java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
<jvmarg line="-Xms64m -Xmx512m"/>
<jvmarg line=""-Dgant.script=@{script}""/>
<classpath>
<fileset dir="${project.home}/lib/ant/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${gant.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
<arg value="-f"/>
<arg value="${project.home}/build/gant.xml"/>
</java>
</sequential>
</macrodef>
<target name="build" depends="init">
<call_gant script="${project.home}/build/scripts/dist.gant"/>
</target>
<target name="all" depends="cleanup,build"/>
</project>