1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<project name =" cs-hello-world-lab" default =" all" >
3
-
4
-
3
+
4
+
5
5
<property file =" build.properties" />
6
6
<!-- Uncomment the following property if no tests compilation is needed -->
7
7
<!--
8
8
<property name="skip.tests" value="true"/>
9
9
-->
10
10
11
11
<!-- Compiler options -->
12
-
12
+
13
13
<property name =" compiler.debug" value =" on" />
14
14
<property name =" compiler.generate.no.warnings" value =" off" />
15
15
<property name =" compiler.args" value =" " />
54
54
<exclude name =" **/?*.clj" />
55
55
<exclude name =" **/?*.aj" />
56
56
</patternset >
57
-
57
+
58
58
<!-- JDK definitions -->
59
-
59
+
60
60
<property name =" jdk.bin.1.8" value =" ${ jdk.home.1.8 } /bin" />
61
61
<path id =" jdk.classpath.1.8" >
62
62
<fileset dir =" ${ jdk.home.1.8 } " >
90
90
<include name =" lib/tools.jar" />
91
91
</fileset >
92
92
</path >
93
-
93
+
94
94
<property name =" project.jdk.home" value =" ${ jdk.home.1.8 } " />
95
95
<property name =" project.jdk.bin" value =" ${ jdk.bin.1.8 } " />
96
96
<property name =" project.jdk.classpath" value =" jdk.classpath.1.8" />
97
-
97
+
98
98
<!-- Modules -->
99
-
100
-
99
+
100
+
101
101
<!-- Module cs-hello-world-lab -->
102
-
102
+
103
103
<dirname property =" module.cs-hello-world-lab.basedir" file =" ${ ant.file } " />
104
-
105
-
104
+
105
+
106
106
<property name =" module.jdk.home.cs-hello-world-lab" value =" ${ project.jdk.home } " />
107
107
<property name =" module.jdk.bin.cs-hello-world-lab" value =" ${ project.jdk.bin } " />
108
108
<property name =" module.jdk.classpath.cs-hello-world-lab" value =" ${ project.jdk.classpath } " />
109
-
109
+
110
110
<property name =" compiler.args.cs-hello-world-lab" value =" -encoding UTF-8 -source 8 -target 8 ${ compiler.args } " />
111
-
111
+
112
112
<property name =" cs-hello-world-lab.output.dir" value =" ${ module.cs-hello-world-lab.basedir } /out/production/cs-hello-world-lab" />
113
113
<property name =" cs-hello-world-lab.testoutput.dir" value =" ${ module.cs-hello-world-lab.basedir } /out/test/cs-hello-world-lab" />
114
-
114
+
115
115
<path id =" cs-hello-world-lab.module.bootclasspath" >
116
116
<!-- Paths to be included in compilation bootclasspath -->
117
117
</path >
118
-
118
+
119
119
<path id =" cs-hello-world-lab.module.production.classpath" >
120
120
<path refid =" ${ module.jdk.classpath.cs-hello-world-lab } " />
121
121
<pathelement location =" ${ idea.home } /lib/hamcrest-core-1.3.jar" />
122
122
<pathelement location =" ${ idea.home } /lib/junit-4.12.jar" />
123
123
</path >
124
-
124
+
125
125
<path id =" cs-hello-world-lab.runtime.production.module.classpath" >
126
126
<pathelement location =" ${ cs-hello-world-lab.output.dir } " />
127
127
<pathelement location =" ${ idea.home } /lib/hamcrest-core-1.3.jar" />
128
128
<pathelement location =" ${ idea.home } /lib/junit-4.12.jar" />
129
129
</path >
130
-
130
+
131
131
<path id =" cs-hello-world-lab.module.classpath" >
132
132
<path refid =" ${ module.jdk.classpath.cs-hello-world-lab } " />
133
133
<pathelement location =" ${ cs-hello-world-lab.output.dir } " />
136
136
<pathelement location =" ${ idea.home } /lib/hamcrest-core-1.3.jar" />
137
137
<pathelement location =" ${ idea.home } /lib/junit-4.12.jar" />
138
138
</path >
139
-
139
+
140
140
<path id =" cs-hello-world-lab.runtime.module.classpath" >
141
141
<pathelement location =" ${ cs-hello-world-lab.testoutput.dir } " />
142
142
<pathelement location =" ${ cs-hello-world-lab.output.dir } " />
145
145
<pathelement location =" ${ idea.home } /lib/hamcrest-core-1.3.jar" />
146
146
<pathelement location =" ${ idea.home } /lib/junit-4.12.jar" />
147
147
</path >
148
-
149
-
148
+
149
+
150
150
<patternset id =" excluded.from.module.cs-hello-world-lab" >
151
151
<patternset refid =" ignored.files" />
152
152
</patternset >
153
-
153
+
154
154
<patternset id =" excluded.from.compilation.cs-hello-world-lab" >
155
155
<patternset refid =" excluded.from.module.cs-hello-world-lab" />
156
156
</patternset >
157
-
157
+
158
158
<path id =" cs-hello-world-lab.module.sourcepath" >
159
159
<dirset dir =" ${ module.cs-hello-world-lab.basedir } " >
160
160
<include name =" src" />
161
161
</dirset >
162
162
</path >
163
-
164
-
163
+
164
+
165
165
<target name =" compile.module.cs-hello-world-lab" depends =" compile.module.cs-hello-world-lab.production,compile.module.cs-hello-world-lab.tests" description =" Compile module cs-hello-world-lab" />
166
-
166
+
167
167
<target name =" compile.module.cs-hello-world-lab.production" description =" Compile module cs-hello-world-lab; production classes" >
168
168
<mkdir dir =" ${ cs-hello-world-lab.output.dir } " />
169
169
<javac destdir =" ${ cs-hello-world-lab.output.dir } " debug =" ${ compiler.debug } " nowarn =" ${ compiler.generate.no.warnings } " memorymaximumsize =" ${ compiler.max.memory } " fork =" true" executable =" ${ module.jdk.bin.cs-hello-world-lab } /javac" includeantruntime =" true" >
173
173
<src refid =" cs-hello-world-lab.module.sourcepath" />
174
174
<patternset refid =" excluded.from.compilation.cs-hello-world-lab" />
175
175
</javac >
176
-
176
+
177
177
<copy todir =" ${ cs-hello-world-lab.output.dir } " >
178
178
<fileset dir =" ${ module.cs-hello-world-lab.basedir } /src" >
179
179
<patternset refid =" compiler.resources" />
180
180
<type type =" file" />
181
181
</fileset >
182
182
</copy >
183
183
</target >
184
-
184
+
185
185
<target name =" compile.module.cs-hello-world-lab.tests" depends =" compile.module.cs-hello-world-lab.production" description =" compile module cs-hello-world-lab; test classes" unless =" skip.tests" />
186
-
186
+
187
187
<target name =" clean.module.cs-hello-world-lab" description =" cleanup module" >
188
188
<delete dir =" ${ cs-hello-world-lab.output.dir } " />
189
189
<delete dir =" ${ cs-hello-world-lab.testoutput.dir } " />
204
204
<test name =" com.flatironschool.javacs.MainTest" todir =" ./src" />
205
205
</junit >
206
206
</target >
207
-
207
+
208
208
<target name =" clean" depends =" clean.module.cs-hello-world-lab" description =" cleanup all" />
209
-
210
- <target name =" build.modules " depends =" clean, compile.module.cs-hello-world-lab, test" description =" build all modules" />
211
-
212
- <target name =" all" depends =" build.modules " description =" build all" />
213
- </project >
209
+
210
+ <target name =" build" depends =" clean, compile.module.cs-hello-world-lab, test" description =" build all modules" />
211
+
212
+ <target name =" all" depends =" build" description =" build all" />
213
+ </project >
0 commit comments