forked from brandonkearby/intellij-pig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
219 lines (189 loc) · 9.38 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?xml version="1.0" encoding="UTF-8"?>
<project name="intellij-pig" default="all">
<property file="build.properties"/>
<!-- This should point ot the intellij community edition sources -->
<property name="idea.sources" value="../idea"/>
<!-- Uncomment the following property if no tests compilation is needed -->
<!--
<property name="skip.tests" value="true"/>
-->
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value=""/>
<property name="compiler.max.memory" value="128m"/>
<patternset id="ignored.files">
<exclude name="**/CVS/**"/>
<exclude name="**/SCCS/**"/>
<exclude name="**/RCS/**"/>
<exclude name="**/.DS_Store/**"/>
<exclude name="**/.svn/**"/>
<exclude name="**/.pyc/**"/>
<exclude name="**/.pyo/**"/>
<exclude name="**/*.pyc/**"/>
<exclude name="**/*.pyo/**"/>
<exclude name="**/.git/**"/>
<exclude name="**/*.hprof/**"/>
<exclude name="**/_svn/**"/>
<exclude name="**/.hg/**"/>
<exclude name="**/*.lib/**"/>
<exclude name="**/*~/**"/>
<exclude name="**/__pycache__/**"/>
<exclude name="**/.bundle/**"/>
<exclude name="**/*.orig/**"/>
<exclude name="**/*.rbc/**"/>
</patternset>
<patternset id="library.patterns">
<include name="*.war"/>
<include name="*.ear"/>
<include name="*.apk"/>
<include name="*.zip"/>
<include name="*.swc"/>
<include name="*.ane"/>
<include name="*.egg"/>
<include name="*.jar"/>
</patternset>
<patternset id="compiler.resources">
<include name="**/?*.properties"/>
<include name="**/?*.xml"/>
<include name="**/?*.gif"/>
<include name="**/?*.png"/>
<include name="**/?*.jpeg"/>
<include name="**/?*.jpg"/>
<include name="**/?*.html"/>
<include name="**/?*.dtd"/>
<include name="**/?*.tld"/>
<include name="**/?*.ftl"/>
</patternset>
<!-- JDK definitions -->
<property name="jdk.bin.idea_iu-107.777" value="${jdk.home.idea_iu-107.777}/../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin"/>
<path id="jdk.classpath.idea_iu-107.777">
<fileset dir="${jdk.home.idea_iu-107.777}">
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/alt-rt.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/alt-string.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar"/>
<include name="lib/alloy.jar"/>
<include name="lib/annotations.jar"/>
<include name="lib/asm-commons.jar"/>
<include name="lib/asm-tree-3.0.jar"/>
<include name="lib/asm.jar"/>
<include name="lib/automaton.jar"/>
<include name="lib/batik.jar"/>
<include name="lib/boot.jar"/>
<include name="lib/bootstrap.jar"/>
<include name="lib/commons-codec-1.3.jar"/>
<include name="lib/commons-httpclient-3.1-patched.jar"/>
<include name="lib/commons-logging-1.1.1.jar"/>
<include name="lib/dtdparser113.jar"/>
<include name="lib/extensions.jar"/>
<include name="lib/forms_rt.jar"/>
<include name="lib/freemarker.jar"/>
<include name="lib/icons.jar"/>
<include name="lib/idea-jsp-openapi.jar"/>
<include name="lib/idea.jar"/>
<include name="lib/idea_rt.jar"/>
<include name="lib/jasper21_rt.jar"/>
<include name="lib/jasper2_rt.jar"/>
<include name="lib/javac2.jar"/>
<include name="lib/jaxen-1.1.3.jar"/>
<include name="lib/jcip-annotations.jar"/>
<include name="lib/jdom.jar"/>
<include name="lib/jgoodies-forms.jar"/>
<include name="lib/jh.jar"/>
<include name="lib/jna-utils.jar"/>
<include name="lib/jna.jar"/>
<include name="lib/jsp-api.jar"/>
<include name="lib/jsr173_1.0_api.jar"/>
<include name="lib/junit.jar"/>
<include name="lib/log4j.jar"/>
<include name="lib/microba.jar"/>
<include name="lib/nanoxml-2.2.3.jar"/>
<include name="lib/openapi.jar"/>
<include name="lib/oromatcher.jar"/>
<include name="lib/picocontainer.jar"/>
<include name="lib/resolver.jar"/>
<include name="lib/resources.jar"/>
<include name="lib/resources_en.jar"/>
<include name="lib/serviceMessages.jar"/>
<include name="lib/servlet-api.jar"/>
<include name="lib/trove4j.jar"/>
<include name="lib/trove4j_src.jar"/>
<include name="lib/util.jar"/>
<include name="lib/velocity.jar"/>
<include name="lib/xbean.jar"/>
<include name="lib/xerces.jar"/>
<include name="lib/xml-apis.jar"/>
<include name="lib/xmlrpc-2.0.jar"/>
<include name="lib/xpp3-1.1.4-min.jar"/>
<include name="lib/yjp-controller-api-redist.jar"/>
<include name="plugins/JavaEE/lib/javaee-openapi.jar"/>
<include name="plugins/JavaEE/lib/jpa-console.jar"/>
<include name="plugins/JavaEE/lib/resources_en.jar"/>
<include name="plugins/JSF/lib/jsf-support.jar"/>
<include name="plugins/JSF/lib/resources_en.jar"/>
<include name="plugins/PersistenceSupport/lib/persistence-openapi.jar"/>
<include name="plugins/PersistenceSupport/lib/resources_en.jar"/>
<include name="plugins/DatabaseSupport/lib/database-openapi.jar"/>
<include name="plugins/DatabaseSupport/lib/jdbc-console.jar"/>
<include name="plugins/DatabaseSupport/lib/resources_en.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/deploy.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/javaws.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/plugin.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/sa-jdi.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/apple_provider.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/dnsns.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/localedata.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunjce_provider.jar"/>
<include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunpkcs11.jar"/>
</fileset>
</path>
<property name="project.jdk.home" value="${jdk.home.idea_iu-107.777}"/>
<property name="project.jdk.bin" value="${jdk.bin.idea_iu-107.777}"/>
<property name="project.jdk.classpath" value="jdk.classpath.idea_iu-107.777"/>
<!-- Global Libraries -->
<!-- Application Server Libraries -->
<!-- Register Custom Compiler Taskdefs -->
<property name="javac2.home" value="${idea.home}/lib"/>
<path id="javac2.classpath">
<pathelement location="${javac2.home}/javac2.jar"/>
<pathelement location="${javac2.home}/jdom.jar"/>
<pathelement location="${javac2.home}/asm4-all.jar"/>
<pathelement location="${javac2.home}/jgoodies-forms.jar"/>
</path>
<target name="register.custom.compilers">
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
<taskdef name="instrumentIdeaExtensions" classname="com.intellij.ant.InstrumentIdeaExtensions" classpathref="javac2.classpath"/>
</target>
<!-- Modules -->
<import file="${basedir}/module_pig-plugin.xml"/>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name='jflex' description="Builds PigLexer">
<java jar="${idea.sources}/tools/lexer/jflex-1.4/lib/JFlex.jar" fork="true" failonerror="true">
<arg line="-d"/>
<arg value="./gen/org/intellij/pig"/>
<arg value="--skel"/>
<arg value="${idea.sources}/tools/lexer/idea-flex.skeleton"/>
<arg value="--charat"/>
<arg value="--nobak"/>
<arg value="src/org/intellij/pig/Pig.flex"/>
</java>
</target>
<target name='grammarKit' description="Builds PigParser">
<java classpathref="pig-plugin.module.production.classpath" jar="lib/grammar-kit.jar" fork="true" failonerror="true">
<arg value="./gen/org/intellij/pig"/>
<arg value="src/org/intellij/pig/Pig.bnf"/>
</java>
</target>
<target name="clean" depends="clean.module.pig-plugin" description="cleanup all"/>
<target name="build.modules" depends="init, clean, plugin.build.jar.pig-plugin" description="build all modules"/>
<target name="all" depends="build.modules" description="build all"/>
</project>