-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
57 lines (49 loc) · 1.67 KB
/
build.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="gradebook" default="default" basedir=".">
<target name="init">
<mkdir dir="target"/>
<mkdir dir="target/classes"/>
<mkdir dir="target/reports"/>
<path id="classpath">
<pathelement path="target/classes"/>
<fileset dir="lib" includes="**/*.jar"/>
</path>
</target>
<target name="compile" depends="init">
<javac srcdir="src/main/java"
destdir="target/classes"
classpathref="classpath"
source="1.7"
target="1.7"
includeantruntime="yes"/>
</target>
<target name="compile-tests" depends="compile">
<javac srcdir="src/test/java"
destdir="target/classes"
classpathref="classpath"
source="1.7"
target="1.7"
includeantruntime="yes"/>
</target>
<target name="test" depends="compile-tests">
<junit printsummary="yes" haltonfailure="no">
<classpath refid="classpath"/>
<formatter type="plain"/>
<batchtest fork="yes" todir="target/reports">
<fileset dir="src/test/java">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<taskdef resource="checkstyletask.properties"
classpath="lib/checkstyle-5.6-all.jar"/>
<target name="checkstyle" depends="init"
description="Generates a report of code convention violations.">
<checkstyle config="sun_checks.xml">
<classpath refid="classpath"/>
<fileset dir="src/main/java" includes="**/*.java"/>
<formatter type="plain" toFile="target/reports/checkstyle.txt"/>
</checkstyle>
</target>
</project>