-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
117 lines (100 loc) · 4.18 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="Windows-1251"?>
<project name="ideah" default="build">
<description>IDEA Haskell plugin</description>
<property file="build.properties"/>
<property name="project.version" value="0.2.12"/>
<property name="src.dir" location="src/java"/>
<property name="hs.dir" location="src/haskell/ask_ghc"/>
<property name="classes.dir" location="out/production/ideah"/>
<property name="distr.dir" location="distr"/>
<path id="project.classpath">
<fileset dir="${lib.dir}">
<include name="guava*.jar"/>
</fileset>
<pathelement path="${lib.dir}/annotations.jar"/>
<pathelement path="${lib.dir}/jdom.jar"/>
<pathelement path="${lib.dir}/openapi.jar"/>
<pathelement path="${lib.dir}/extensions.jar"/>
<pathelement path="${lib.dir}/util.jar"/>
<pathelement path="${lib.dir}/idea.jar"/>
<pathelement path="${lib.dir}/velocity.jar"/>
</path>
<path id="javac2.classpath">
<pathelement location="${lib.dir}/javac2.jar"/>
<pathelement location="${lib.dir}/jdom.jar"/>
<pathelement location="${lib.dir}/asm.jar"/>
<pathelement location="${lib.dir}/asm-commons.jar"/>
<pathelement location="${lib.dir}/asm4-all.jar"/>
<pathelement location="${lib.dir}/jgoodies-forms.jar"/>
</path>
<path id="idea.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<echo message="Building ${ant.project.name} with JDK ${java.version}"/>
<!-- Create the time stamp -->
<tstamp/>
<mkdir dir="${classes.dir}"/>
<mkdir dir="${distr.dir}"/>
</target>
<target name="clean">
<delete dir="${classes.dir}"/>
<delete dir="${distr.dir}"/>
</target>
<target name="pack_hs" depends="init">
<zip destfile="${classes.dir}/ask_ghc.jar" basedir="${hs.dir}" includes="**/*.hs"/>
</target>
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
<target name="compile" depends="init">
<unjar src="${lib.dir}/forms_rt.jar" dest="${classes.dir}">
<patternset>
<include name="**/*.class"/>
</patternset>
</unjar>
<javac2 srcdir="${src.dir}" destdir="${classes.dir}" debug="true" includeantruntime="false">
<classpath refid="project.classpath"/>
<compilerarg line="${javac.options}"/>
</javac2>
</target>
<target name="src">
<zip destfile="ideah-src-${project.version}.zip" basedir="."
includes="src/java/**,
src/haskell/**/*.hs,
build.xml,
build.properties,
META-INF/**,
.idea/**,
ideah.iml"/>
</target>
<target name="build" depends="compile, pack_hs, src">
<copy todir="${classes.dir}/META-INF">
<fileset dir="./META-INF"/>
</copy>
<replace file="${classes.dir}/META-INF/plugin.xml" token="VERSION" value="${project.version}"/>
<copy todir="${classes.dir}">
<fileset dir="${src.dir}" includes="**/*.png"/>
</copy>
<mkdir dir="${distr.dir}/ideah/lib"/>
<jar destfile="${distr.dir}/ideah/lib/ideah.jar">
<fileset dir="${classes.dir}"/>
</jar>
<zip destfile="ideah-bin-${project.version}.zip" basedir="${distr.dir}"/>
</target>
<target name="send">
<delete file="ideah_send.zip"/>
<zip destfile="ideah_send.zip">
<fileset dir=".">
<include name="*.*"/>
<include name="src/**"/>
<include name="META-INF/**"/>
<include name=".idea/**"/>
<exclude name="src/haskell/**/*.exe"/>
<exclude name="src/haskell/**/*.o"/>
<exclude name="src/haskell/**/*.hi"/>
<exclude name="*.zip"/>
</fileset>
</zip>
</target>
</project>