-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule_gooby.xml
More file actions
82 lines (64 loc) · 3.19 KB
/
module_gooby.xml
File metadata and controls
82 lines (64 loc) · 3.19 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="module_gooby" default="compile.module.gooby">
<dirname property="module.gooby.basedir" file="${ant.file.module_gooby}"/>
<property name="module.jdk.home.gooby" value="${project.jdk.home}"/>
<property name="module.jdk.bin.gooby" value="${project.jdk.bin}"/>
<property name="module.jdk.classpath.gooby" value="${project.jdk.classpath}"/>
<property name="compiler.args.gooby" value="${compiler.args}"/>
<property name="gooby.output.dir" value="${module.gooby.basedir}/out/production/Gooby"/>
<property name="gooby.testoutput.dir" value="${module.gooby.basedir}/out/test/Gooby"/>
<path id="gooby.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="gooby.module.production.classpath">
<path refid="${module.jdk.classpath.gooby}"/>
<path refid="library.my-libs.classpath"/>
</path>
<path id="gooby.runtime.production.module.classpath">
<pathelement location="${gooby.output.dir}"/>
<path refid="library.my-libs.classpath"/>
</path>
<path id="gooby.module.classpath">
<path refid="${module.jdk.classpath.gooby}"/>
<pathelement location="${gooby.output.dir}"/>
<path refid="library.my-libs.classpath"/>
</path>
<path id="gooby.runtime.module.classpath">
<pathelement location="${gooby.testoutput.dir}"/>
<pathelement location="${gooby.output.dir}"/>
<path refid="library.my-libs.classpath"/>
</path>
<patternset id="excluded.from.module.gooby">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.gooby">
<patternset refid="excluded.from.module.gooby"/>
</patternset>
<path id="gooby.module.sourcepath">
<dirset dir="${module.gooby.basedir}">
<include name="src"/>
</dirset>
</path>
<target name="compile.module.gooby" depends="compile.module.gooby.production,compile.module.gooby.tests" description="Compile module Gooby"/>
<target name="compile.module.gooby.production" depends="register.custom.compilers" description="Compile module Gooby; production classes">
<mkdir dir="${gooby.output.dir}"/>
<javac2 destdir="${gooby.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.gooby}/javac">
<compilerarg line="${compiler.args.gooby}"/>
<bootclasspath refid="gooby.module.bootclasspath"/>
<classpath refid="gooby.module.production.classpath"/>
<src refid="gooby.module.sourcepath"/>
<patternset refid="excluded.from.compilation.gooby"/>
</javac2>
<copy todir="${gooby.output.dir}">
<fileset dir="${module.gooby.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.gooby.tests" depends="register.custom.compilers,compile.module.gooby.production" description="compile module Gooby; test classes" unless="skip.tests"/>
<target name="clean.module.gooby" description="cleanup module">
<delete dir="${gooby.output.dir}"/>
<delete dir="${gooby.testoutput.dir}"/>
</target>
</project>