This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
module_yasper.xml
124 lines (104 loc) · 5.7 KB
/
module_yasper.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="module_yasper" default="compile.module.yasper">
<dirname property="module.yasper.basedir" file="${ant.file.module_yasper}"/>
<property name="module.jdk.home.yasper" value="${project.jdk.home}"/>
<property name="module.jdk.bin.yasper" value="${project.jdk.bin}"/>
<property name="module.jdk.classpath.yasper" value="${project.jdk.classpath}"/>
<property name="compiler.args.yasper" value="-encoding UTF-8 -source 1.8 -target 1.8 ${compiler.args}"/>
<property name="yasper.output.dir" value="${module.yasper.basedir}/target/classes"/>
<property name="yasper.testoutput.dir" value="${module.yasper.basedir}/target/test-classes"/>
<path id="yasper.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="yasper.module.production.classpath">
<path refid="${module.jdk.classpath.yasper}"/>
<path refid="library.maven:_org.projectlombok:lombok:1.16.10.classpath"/>
<path refid="library.maven:_log4j:log4j:1.2.17.classpath"/>
<path refid="library.maven:_commons-configuration:commons-configuration:1.10.classpath"/>
<path refid="library.maven:_commons-lang:commons-lang:2.6.classpath"/>
<path refid="library.maven:_commons-logging:commons-logging:1.1.1.classpath"/>
</path>
<path id="yasper.runtime.production.module.classpath">
<pathelement location="${yasper.output.dir}"/>
<path refid="library.maven:_log4j:log4j:1.2.17.classpath"/>
<path refid="library.maven:_commons-configuration:commons-configuration:1.10.classpath"/>
<path refid="library.maven:_commons-lang:commons-lang:2.6.classpath"/>
<path refid="library.maven:_commons-logging:commons-logging:1.1.1.classpath"/>
</path>
<path id="yasper.module.classpath">
<path refid="${module.jdk.classpath.yasper}"/>
<pathelement location="${yasper.output.dir}"/>
<path refid="library.maven:_org.projectlombok:lombok:1.16.10.classpath"/>
<path refid="library.maven:_log4j:log4j:1.2.17.classpath"/>
<path refid="library.maven:_commons-configuration:commons-configuration:1.10.classpath"/>
<path refid="library.maven:_commons-lang:commons-lang:2.6.classpath"/>
<path refid="library.maven:_commons-logging:commons-logging:1.1.1.classpath"/>
</path>
<path id="yasper.runtime.module.classpath">
<pathelement location="${yasper.testoutput.dir}"/>
<pathelement location="${yasper.output.dir}"/>
<path refid="library.maven:_org.projectlombok:lombok:1.16.10.classpath"/>
<path refid="library.maven:_log4j:log4j:1.2.17.classpath"/>
<path refid="library.maven:_commons-configuration:commons-configuration:1.10.classpath"/>
<path refid="library.maven:_commons-lang:commons-lang:2.6.classpath"/>
<path refid="library.maven:_commons-logging:commons-logging:1.1.1.classpath"/>
</path>
<patternset id="excluded.from.module.yasper">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.yasper">
<patternset refid="excluded.from.module.yasper"/>
</patternset>
<path id="yasper.module.sourcepath">
<dirset dir="${module.yasper.basedir}">
<include name="src/main/resources"/>
</dirset>
</path>
<path id="yasper.module.test.sourcepath">
<dirset dir="${module.yasper.basedir}">
<include name="src/test/java"/>
<include name="src/test/resources"/>
</dirset>
</path>
<target name="compile.module.yasper" depends="compile.module.yasper.production,compile.module.yasper.tests" description="Compile module yasper"/>
<target name="compile.module.yasper.production" depends="register.custom.compilers" description="Compile module yasper; production classes">
<mkdir dir="${yasper.output.dir}"/>
<javac2 destdir="${yasper.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.yasper}/javac">
<compilerarg line="${compiler.args.yasper}"/>
<bootclasspath refid="yasper.module.bootclasspath"/>
<classpath refid="yasper.module.production.classpath"/>
<src refid="yasper.module.sourcepath"/>
<patternset refid="excluded.from.compilation.yasper"/>
</javac2>
<copy todir="${yasper.output.dir}">
<fileset dir="${module.yasper.basedir}/src/main/resources">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.yasper.tests" depends="register.custom.compilers,compile.module.yasper.production" description="compile module yasper; test classes" unless="skip.tests">
<mkdir dir="${yasper.testoutput.dir}"/>
<javac2 destdir="${yasper.testoutput.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.yasper}/javac">
<compilerarg line="${compiler.args.yasper}"/>
<bootclasspath refid="yasper.module.bootclasspath"/>
<classpath refid="yasper.module.classpath"/>
<src refid="yasper.module.test.sourcepath"/>
<patternset refid="excluded.from.compilation.yasper"/>
</javac2>
<copy todir="${yasper.testoutput.dir}">
<fileset dir="${module.yasper.basedir}/src/test/java">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
<fileset dir="${module.yasper.basedir}/src/test/resources">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="clean.module.yasper" description="cleanup module">
<delete dir="${yasper.output.dir}"/>
<delete dir="${yasper.testoutput.dir}"/>
</target>
</project>