-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
46 lines (43 loc) · 1.43 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
<?xml version="1.0"?>
<project name="Shifumi" default="compile">
<path id="findbugdir">
<fileset dir="lib/" >
<include name="*.jar" />
</fileset>
</path>
<target name="clean" description="Clean All project">
<delete dir="bin" />
<delete dir="dist" />
</target>
<target name="compile" description="Compile all java file of src folder">
<mkdir dir="bin" />
<javac srcdir="src/main" destdir="bin" >
</javac>
</target>
<target name="jar" description="Make jar file of projet">
<mkdir dir="dist" />
<jar destfile="dist/shifu.jar">
<fileset dir="bin" includes="**/*" />
<manifest>
<attributes name="Main Class" value="com.nicolas.shifu.MainActivity" />
</manifest>
</jar>
</target>
<target name="checkstyle" description="Check quality">
<taskdef resource="checkstyletask.properties"
classpath="C:\Users\Nicolas\apache-ant\lib\checkstyle-6.3-all.jar" />
<checkstyle config="checkstyle_rules.xml" >
<fileset dir="src/main" includes="**/*"/>
</checkstyle>
</target>
<target name="findbug" description="Find all bug">
<taskdef name="findbug" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
classpathref="findbugdir" />
<findbug home="lib/"
output="html"
outputFile="dist\findbug-report.html">
<sourcePath path="src/main" />
<class location="bin" />
</findbug>
</target>
</project>