Debian Codegraph @

build.xml

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ~ Copyright 2000-2014 JetBrains s.r.o.
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17
18 <project name="iconloader" default="all">
19
20
21 <!--<property file="iconloader.properties"/>-->
22
23 <property name="skip.tests" value="true"/>
24
25 <!-- Compiler options -->
26
27 <property name="compiler.debug" value="on"/>
28 <property name="compiler.generate.no.warnings" value="off"/>
29 <property name="compiler.args" value=""/>
30 <property name="compiler.max.memory" value="700m"/>
31 <patternset id="ignored.files">
32 <exclude name="**/CVS/**"/>
33 <exclude name="**/SCCS/**"/>
34 <exclude name="**/RCS/**"/>
35 <exclude name="**/rcs/**"/>
36 <exclude name="**/.DS_Store/**"/>
37 <exclude name="**/.svn/**"/>
38 <exclude name="**/.pyc/**"/>
39 <exclude name="**/.pyo/**"/>
40 <exclude name="**/*.pyc/**"/>
41 <exclude name="**/*.pyo/**"/>
42 <exclude name="**/.git/**"/>
43 <exclude name="**/*.hprof/**"/>
44 <exclude name="**/_svn/**"/>
45 <exclude name="**/.hg/**"/>
46 <exclude name="**/*.lib/**"/>
47 <exclude name="**/*~/**"/>
48 <exclude name="**/__pycache__/**"/>
49 <exclude name="**/.bundle/**"/>
50 <exclude name="**/*.rbc/**"/>
51 </patternset>
52 <patternset id="library.patterns">
53 <include name="*.zip"/>
54 <include name="*.apk"/>
55 <include name="*.war"/>
56 <include name="*.egg"/>
57 <include name="*.ear"/>
58 <include name="*.ane"/>
59 <include name="*.swc"/>
60 <include name="*.jar"/>
61 </patternset>
62 <patternset id="compiler.resources">
63 <exclude name="**/?*.java"/>
64 <exclude name="**/?*.form"/>
65 <exclude name="**/?*.class"/>
66 <exclude name="**/?*.groovy"/>
67 <exclude name="**/?*.scala"/>
68 <exclude name="**/?*.flex"/>
69 <exclude name="**/?*.kt"/>
70 <exclude name="**/?*.clj"/>
71 </patternset>
72
73
74 <!-- Project Libraries -->
75
76 <path id="library.eawtstub.classpath">
77 <pathelement location="${basedir}/lib/eawtstub.jar"/>
78 </path>
•79
80 <path id="jetbrains-annotations.classpath">
81 <pathelement location="/usr/share/java/org.jetbrains.annotations-java8.jar"/>
82 </path>
83
84 <!-- Modules -->
85
86
87 <!-- Module IconLoader -->
88
89 <dirname property="module.iconloader.basedir" file="${ant.file}"/>
90
91
92
93 <property name="compiler.args.iconloader" value="${compiler.args}"/>
94
95 <property name="iconloader.output.dir" value="${module.iconloader.basedir}/out/production/IconLoader"/>
96 <property name="iconloader.testoutput.dir" value="${module.iconloader.basedir}/out/test/IconLoader"/>
97
98 <path id="iconloader.module.bootclasspath">
99 <!-- Paths to be included in compilation bootclasspath -->
100 </path>
101
102 <path id="iconloader.module.production.classpath">
103 <path refid="library.eawtstub.classpath"/>
•104 <path refid="jetbrains-annotations.classpath"/>
105 </path>
106
107 <path id="iconloader.runtime.production.module.classpath">
108 <pathelement location="${iconloader.output.dir}"/>
109 <path refid="library.eawtstub.classpath"/>
110 </path>
111
112 <path id="iconloader.module.classpath">
113 <pathelement location="${iconloader.output.dir}"/>
114 <path refid="library.eawtstub.classpath"/>
115 </path>
116
117 <path id="iconloader.runtime.module.classpath">
118 <pathelement location="${iconloader.testoutput.dir}"/>
119 <pathelement location="${iconloader.output.dir}"/>
120 <path refid="library.eawtstub.classpath"/>
121 </path>
122
123
124 <patternset id="excluded.from.module.iconloader">
125 <patternset refid="ignored.files"/>
126 </patternset>
127
128 <patternset id="excluded.from.compilation.iconloader">
129 <patternset refid="excluded.from.module.iconloader"/>
130 </patternset>
131
132 <path id="iconloader.module.sourcepath">
133 <dirset dir="${module.iconloader.basedir}">
134 <include name="src"/>
135 </dirset>
136 </path>
137
138
139 <target name="compile.module.iconloader" depends="compile.module.iconloader.production,compile.module.iconloader.tests" description="Compile module IconLoader"/>
140
141 <target name="compile.module.iconloader.production" description="Compile module IconLoader; production classes">
142 <mkdir dir="${iconloader.output.dir}"/>
143 <javac destdir="${iconloader.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
144 <compilerarg line="${compiler.args.iconloader}"/>
145 <bootclasspath refid="iconloader.module.bootclasspath"/>
146 <classpath refid="iconloader.module.production.classpath"/>
147 <src refid="iconloader.module.sourcepath"/>
148 <patternset refid="excluded.from.compilation.iconloader"/>
149 </javac>
150
151 <copy todir="${iconloader.output.dir}">
152 <fileset dir="${module.iconloader.basedir}/src">
153 <patternset refid="compiler.resources"/>
154 <type type="file"/>
155 </fileset>
156 </copy>
157 </target>
158
159 <target name="compile.module.iconloader.tests" depends="compile.module.iconloader.production" description="compile module IconLoader; test classes" unless="skip.tests"/>
160
161 <target name="clean.module.iconloader" description="cleanup module">
162 <delete dir="${iconloader.output.dir}"/>
163 <delete dir="${iconloader.testoutput.dir}"/>
164 </target>
165
166 <target name="init" description="Build initialization">
167 <!-- Perform any build initialization in this target -->
168 </target>
169
170 <target name="clean" depends="clean.module.iconloader" description="cleanup all"/>
171
172 <target name="build.modules" depends="init, clean, compile.module.iconloader" description="build all modules"/>
173
174 <target name="init.artifacts">
175 <property name="artifacts.temp.dir" value="${basedir}/__artifacts_temp"/>
176 <property name="artifact.output.iconloader:jar" value="${basedir}"/>
177 <mkdir dir="${artifacts.temp.dir}"/>
178 <property name="temp.jar.path.iconloader.jar" value="${artifacts.temp.dir}/iconloader.jar"/>
179 </target>
180
181 <target name="artifact.iconloader:jar" depends="init.artifacts, compile.module.iconloader" description="Build &#39;iconloader:jar&#39; artifact">
182 <property name="artifact.temp.output.iconloader:jar" value="${artifacts.temp.dir}/iconloader_jar"/>
183 <mkdir dir="${artifact.temp.output.iconloader:jar}"/>
184 <jar destfile="${temp.jar.path.iconloader.jar}" duplicate="preserve" filesetmanifest="mergewithoutmain">
185 <zipfileset dir="${iconloader.output.dir}"/>
186 </jar>
187 <copy file="${temp.jar.path.iconloader.jar}" tofile="${artifact.temp.output.iconloader:jar}/iconloader.jar"/>
188 </target>
189
190 <target name="build.all.artifacts" depends="artifact.iconloader:jar" description="Build all artifacts">
191 <mkdir dir="${artifact.output.iconloader:jar}"/>
192 <copy todir="${artifact.output.iconloader:jar}">
193 <fileset dir="${artifact.temp.output.iconloader:jar}"/>
194 </copy>
195
196 <!-- Delete temporary files -->
197 <delete dir="${artifacts.temp.dir}"/>
198 </target>
199
200 <target name="all" depends="build.modules, build.all.artifacts" description="build all"/>
•201 </project>