-
Notifications
You must be signed in to change notification settings - Fork 0
/
module_diskfiller.xml
108 lines (88 loc) · 4.71 KB
/
module_diskfiller.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="module_diskfiller" default="compile.module.diskfiller">
<dirname property="module.diskfiller.basedir" file="${ant.file.module_diskfiller}"/>
<property name="module.jdk.home.diskfiller" value="${project.jdk.home}"/>
<property name="module.jdk.bin.diskfiller" value="${project.jdk.bin}"/>
<property name="module.jdk.classpath.diskfiller" value="${project.jdk.classpath}"/>
<property name="compiler.args.diskfiller" value="-encoding UTF-8 -source 8 -target 8 ${compiler.args}"/>
<property name="diskfiller.output.dir" value="${module.diskfiller.basedir}/out/production/diskfiller"/>
<property name="diskfiller.testoutput.dir" value="${module.diskfiller.basedir}/out/test/diskfiller"/>
<path id="diskfiller.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="diskfiller.module.production.classpath">
<path refid="${module.jdk.classpath.diskfiller}"/>
<path refid="library.hamcrest-core-1.3.classpath"/>
</path>
<path id="diskfiller.runtime.production.module.classpath">
<pathelement location="${diskfiller.output.dir}"/>
<path refid="library.hamcrest-core-1.3.classpath"/>
</path>
<path id="diskfiller.module.classpath">
<path refid="${module.jdk.classpath.diskfiller}"/>
<pathelement location="${diskfiller.output.dir}"/>
<pathelement location="${basedir}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${basedir}/lib/junit-4.12.jar"/>
<path refid="library.hamcrest-core-1.3.classpath"/>
</path>
<path id="diskfiller.runtime.module.classpath">
<pathelement location="${diskfiller.testoutput.dir}"/>
<pathelement location="${diskfiller.output.dir}"/>
<pathelement location="${basedir}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${basedir}/lib/junit-4.12.jar"/>
<path refid="library.hamcrest-core-1.3.classpath"/>
</path>
<patternset id="excluded.from.module.diskfiller">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.diskfiller">
<patternset refid="excluded.from.module.diskfiller"/>
</patternset>
<path id="diskfiller.module.sourcepath">
<dirset dir="${module.diskfiller.basedir}">
<include name="src"/>
</dirset>
</path>
<path id="diskfiller.module.test.sourcepath">
<dirset dir="${module.diskfiller.basedir}">
<include name="src/test"/>
</dirset>
</path>
<target name="compile.module.diskfiller" depends="compile.module.diskfiller.production,compile.module.diskfiller.tests" description="Compile module diskfiller"/>
<target name="compile.module.diskfiller.production" depends="register.custom.compilers" description="Compile module diskfiller; production classes">
<mkdir dir="${diskfiller.output.dir}"/>
<javac2 destdir="${diskfiller.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.diskfiller}/javac">
<compilerarg line="${compiler.args.diskfiller}"/>
<bootclasspath refid="diskfiller.module.bootclasspath"/>
<classpath refid="diskfiller.module.production.classpath"/>
<src refid="diskfiller.module.sourcepath"/>
<patternset refid="excluded.from.compilation.diskfiller"/>
</javac2>
<copy todir="${diskfiller.output.dir}">
<fileset dir="${module.diskfiller.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.diskfiller.tests" depends="register.custom.compilers,compile.module.diskfiller.production" description="compile module diskfiller; test classes" unless="skip.tests">
<mkdir dir="${diskfiller.testoutput.dir}"/>
<javac2 destdir="${diskfiller.testoutput.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.diskfiller}/javac">
<compilerarg line="${compiler.args.diskfiller}"/>
<bootclasspath refid="diskfiller.module.bootclasspath"/>
<classpath refid="diskfiller.module.classpath"/>
<src refid="diskfiller.module.test.sourcepath"/>
<patternset refid="excluded.from.compilation.diskfiller"/>
</javac2>
<copy todir="${diskfiller.testoutput.dir}">
<fileset dir="${module.diskfiller.basedir}/src/test">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="clean.module.diskfiller" description="cleanup module">
<delete dir="${diskfiller.output.dir}"/>
<delete dir="${diskfiller.testoutput.dir}"/>
</target>
</project>