-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-package.xml
80 lines (64 loc) · 2.93 KB
/
build-package.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
<project name="Idea Parser 3 language scripted build file" default="package"
basedir=".">
<!-- set global properties for this build -->
<property name="main-src" location="main/src"/>
<property name="main-resources" location="main/resources"/>
<property name="jreformator-src" location="jreformator/src"/>
<property name="idea-support-src" location="idea-support/src"/>
<property name="idea-errorreporting-client-src"
location="idea-errorreporting-client/src"/>
<property name="als-java-toolkit-src" location="als-java-toolkit/src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="parser.plugin.name" value="idea-parser3"/>
<property name="idea.community.build"
location="${user.home}/Projects/ideaIC-107.105/"/>
<taskdef name="javac2" classname="com.intellij.ant.Javac2">
<classpath>
<pathelement location="${idea.community.build}/redist/forms_rt.jar"/>
<pathelement location="${idea.community.build}/redist/javac2.jar"/>
<pathelement location="${idea.community.build}/redist/annotations.jar"/>
<fileset dir="${idea.community.build}" includes="**/*.jar"/>
</classpath>
</taskdef>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
<echo message="Using IDEA build from: ${idea.community.build}"/>
</target>
<target name="compile" depends="clean,init" description="compile the source ">
<javac2 destdir="${build}" includeantruntime="false">
<src path="${main-src}"/>
<src path="${jreformator-src}"/>
<src path="${idea-support-src}"/>
<src path="${idea-errorreporting-client-src}"/>
<src path="${als-java-toolkit-src}"/>
<classpath>
<fileset dir="${idea.community.build}" includes="**/*.jar"/>
</classpath>
<compilerarg value="-Xlint:deprecation"/>
</javac2>
</target>
<target name="package" depends="compile"
description="generate the distribution">
<mkdir dir="${build}/META-INF"/>
<copy file="META-INF/plugin.xml" todir="${build}/META-INF/plugin.xml"/>
<!-- Create the distribution archive -->
<jar jarfile="${dist}/${parser.plugin.name}.jar" update="false">
<fileset dir="${main-resources}" includes="**/*.*" excludes="**/*.htm"/>
<fileset dir="${build}" includes="**/*.*"/>
<fileset dir="${main-src}" excludes="**/*.java"/>
<fileset dir="${jreformator-src}" excludes="**/*.java"/>
<fileset dir="${idea-support-src}" excludes="**/*.java"/>
<fileset dir="${idea-errorreporting-client-src}" excludes="**/*.java"/>
<fileset dir="${als-java-toolkit-src}" excludes="**/*.java"/>
</jar>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
<delete file="${dist}/${parser.plugin.name}.jar"/>
</target>
</project>