-
Notifications
You must be signed in to change notification settings - Fork 37
/
build.xml
33 lines (29 loc) · 1.15 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
<project name="Projecto de exemplo para build no jenkins">
<path id="tests.classpath" path=".">
<fileset dir="lib/">
<include name="*.jar" />
</fileset>
<pathelement path="target/classes/" />
</path>
<target name="compile">
<mkdir dir="target/classes/"/>
<mkdir dir="target/classes-test/"/>
<javac destdir="target/classes/" srcdir="src/main/java/" debug="true" encoding="UTF-8" />
<javac destdir="target/classes-test/" srcdir="src/test/java/" classpathref="tests.classpath" debug="true" encoding="UTF-8" />
</target>
<target name="test" depends="compile">
<junit fork="yes" forkmode="once" printsummary="true" showoutput="true" failureproperty="failed-test" haltonfailure="true" >
<formatter type="plain" usefile="false" />
<classpath location="target/classes-test/" />
<classpath refid="tests.classpath" />
<batchtest fork="yes" todir="${artifacts.dir}/reports">
<fileset dir="target/classes-test/" >
<include name="**/*Test.class" />
</fileset>
</batchtest>
</junit>
</target>
<target name="jar" depends="test">
<jar destfile="target/jenkins-exemplo.jar" basedir="target/classes/" />
</target>
</project>