-
Notifications
You must be signed in to change notification settings - Fork 0
/
chatclient.xml
211 lines (177 loc) · 8.26 KB
/
chatclient.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="chatclient" default="all">
<property file="chatclient.properties"/>
<!-- 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="700m"/>
<patternset id="ignored.files">
<exclude name="**/CVS/**"/>
<exclude name="**/SCCS/**"/>
<exclude name="**/RCS/**"/>
<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="**/*.rbc/**"/>
</patternset>
<patternset id="library.patterns">
<include name="*.zip"/>
<include name="*.apk"/>
<include name="*.war"/>
<include name="*.egg"/>
<include name="*.ear"/>
<include name="*.ane"/>
<include name="*.swc"/>
<include name="*.jar"/>
</patternset>
<patternset id="compiler.resources">
<exclude name="**/?*.java"/>
<exclude name="**/?*.form"/>
<exclude name="**/?*.class"/>
<exclude name="**/?*.groovy"/>
<exclude name="**/?*.scala"/>
<exclude name="**/?*.flex"/>
<exclude name="**/?*.kt"/>
<exclude name="**/?*.clj"/>
</patternset>
<!-- JDK definitions -->
<property name="jdk.bin.1.7" value="${jdk.home.1.7}/bin"/>
<path id="jdk.classpath.1.7">
<fileset dir="${jdk.home.1.7}">
<include name="lib/ant-javafx.jar"/>
<include name="lib/dt.jar"/>
<include name="lib/javafx-doclet.jar"/>
<include name="lib/javafx-mx.jar"/>
<include name="lib/jconsole.jar"/>
<include name="lib/sa-jdi.jar"/>
<include name="lib/tools.jar"/>
<include name="jre/lib/charsets.jar"/>
<include name="jre/lib/deploy.jar"/>
<include name="jre/lib/htmlconverter.jar"/>
<include name="jre/lib/javaws.jar"/>
<include name="jre/lib/jce.jar"/>
<include name="jre/lib/jfr.jar"/>
<include name="jre/lib/jfxrt.jar"/>
<include name="jre/lib/jsse.jar"/>
<include name="jre/lib/management-agent.jar"/>
<include name="jre/lib/plugin.jar"/>
<include name="jre/lib/resources.jar"/>
<include name="jre/lib/rt.jar"/>
<include name="jre/lib/ext/dnsns.jar"/>
<include name="jre/lib/ext/localedata.jar"/>
<include name="jre/lib/ext/sunec.jar"/>
<include name="jre/lib/ext/sunjce_provider.jar"/>
<include name="jre/lib/ext/sunpkcs11.jar"/>
<include name="jre/lib/ext/zipfs.jar"/>
</fileset>
</path>
<property name="project.jdk.home" value="${jdk.home.1.7}"/>
<property name="project.jdk.bin" value="${jdk.bin.1.7}"/>
<property name="project.jdk.classpath" value="jdk.classpath.1.7"/>
<!-- 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 -->
<!-- Module ChatClient -->
<dirname property="module.chatclient.basedir" file="${ant.file}"/>
<property name="module.jdk.home.chatclient" value="${project.jdk.home}"/>
<property name="module.jdk.bin.chatclient" value="${project.jdk.bin}"/>
<property name="module.jdk.classpath.chatclient" value="${project.jdk.classpath}"/>
<property name="compiler.args.chatclient" value="-encoding UTF-8 -source 1.6 ${compiler.args}"/>
<property name="chatclient.output.dir" value="${module.chatclient.basedir}/copmlied"/>
<property name="chatclient.testoutput.dir" value="${module.chatclient.basedir}/copmlied/cbu"/>
<path id="chatclient.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="chatclient.module.production.classpath">
<path refid="${module.jdk.classpath.chatclient}"/>
<pathelement location="${idea.home}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${idea.home}/lib/hamcrest-library-1.3.jar"/>
<pathelement location="${idea.home}/lib/junit-4.11.jar"/>
</path>
<path id="chatclient.runtime.production.module.classpath">
<pathelement location="${chatclient.output.dir}"/>
<pathelement location="${idea.home}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${idea.home}/lib/hamcrest-library-1.3.jar"/>
<pathelement location="${idea.home}/lib/junit-4.11.jar"/>
</path>
<path id="chatclient.module.classpath">
<path refid="${module.jdk.classpath.chatclient}"/>
<pathelement location="${chatclient.output.dir}"/>
<pathelement location="${idea.home}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${idea.home}/lib/hamcrest-library-1.3.jar"/>
<pathelement location="${idea.home}/lib/junit-4.11.jar"/>
</path>
<path id="chatclient.runtime.module.classpath">
<pathelement location="${chatclient.testoutput.dir}"/>
<pathelement location="${chatclient.output.dir}"/>
<pathelement location="${idea.home}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${idea.home}/lib/hamcrest-library-1.3.jar"/>
<pathelement location="${idea.home}/lib/junit-4.11.jar"/>
</path>
<patternset id="excluded.from.module.chatclient">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.chatclient">
<patternset refid="excluded.from.module.chatclient"/>
</patternset>
<path id="chatclient.module.sourcepath">
<dirset dir="${module.chatclient.basedir}">
<include name="src"/>
</dirset>
</path>
<target name="compile.module.chatclient" depends="compile.module.chatclient.production,compile.module.chatclient.tests" description="Compile module ChatClient"/>
<target name="compile.module.chatclient.production" depends="register.custom.compilers" description="Compile module ChatClient; production classes">
<mkdir dir="${chatclient.output.dir}"/>
<javac2 destdir="${chatclient.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.chatclient}/javac">
<compilerarg line="${compiler.args.chatclient}"/>
<bootclasspath refid="chatclient.module.bootclasspath"/>
<classpath refid="chatclient.module.production.classpath"/>
<src refid="chatclient.module.sourcepath"/>
<patternset refid="excluded.from.compilation.chatclient"/>
</javac2>
<copy todir="${chatclient.output.dir}">
<fileset dir="${module.chatclient.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.chatclient.tests" depends="register.custom.compilers,compile.module.chatclient.production" description="compile module ChatClient; test classes" unless="skip.tests"/>
<target name="clean.module.chatclient" description="cleanup module">
<delete dir="${chatclient.output.dir}"/>
<delete dir="${chatclient.testoutput.dir}"/>
</target>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="clean" depends="clean.module.chatclient" description="cleanup all"/>
<target name="build.modules" depends="init, clean, compile.module.chatclient" description="build all modules"/>
<target name="all" depends="build.modules" description="build all"/>
</project>