This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
119 lines (105 loc) · 4.28 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
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
<?xml version="1.0"?>
<project name="jboss-el" default="build" basedir=".">
<property name="javac.debug" value="true" />
<property name="javac.deprecation" value="false" />
<property name="specification.version" value="1.0" />
<property name="implementation.version" value="${specification.version}_02.CR7-SNAPSHOT" />
<property name="src.dir" value="${basedir}/src" />
<property name="test.src.dir" value="${basedir}/test" />
<property name="dist.dir" value="${basedir}/dist" />
<property name="temp.dir" value="${basedir}/build" />
<property name="classes.dir" value="${temp.dir}/classes" />
<property name="testclasses.dir" value="${temp.dir}/testclasses" />
<property name="report.dir" value="${basedir}/report" />
<property name="test-output.dir" value="${temp.dir}/test-output" />
<path id="junit.jar" location="lib/junit-4.2.jar" />
<target name="build" depends="compileclasses,compiletest">
<mkdir dir="${dist.dir}" />
<jar jarfile="${dist.dir}/jboss-el.jar" basedir="${classes.dir}">
<include name="org/jboss/**/*.class" />
<include name="org/jboss/**/*.properties" />
<manifest>
<attribute name="JBoss-EL-Version" value="${implementation.version}" />
<attribute name="Implementation-Version" value="${implementation.version}" />
<attribute name="Specification-Version" value="${specification.version}" />
</manifest>
</jar>
<jar jarfile="${dist.dir}/jboss-el-sources.jar" basedir="${src.dir}">
<include name="org/jboss/**/*.java" />
<include name="org/jboss/**/*.properties" />
<manifest>
<attribute name="JBoss-EL-Version" value="${implementation.version}" />
<attribute name="Implementation-Version" value="${implementation.version}" />
<attribute name="Specification-Version" value="${specification.version}" />
</manifest>
</jar>
<jar jarfile="${dist.dir}/jboss-el-api.jar" basedir="${classes.dir}">
<include name="javax/**/*.class" />
<include name="javax/**/*.properties" />
<manifest>
<attribute name="JBoss-EL-Version" value="${implementation.version}" />
<attribute name="Implementation-Version" value="${implementation.version}" />
<attribute name="Specification-Version" value="${specification.version}" />
</manifest>
</jar>
<jar jarfile="${dist.dir}/jboss-el-test.jar" basedir="${testclasses.dir}">
<manifest>
<attribute name="JBoss-EL-Version" value="${implementation.version}" />
<attribute name="Implementation-Version" value="${implementation.version}" />
<attribute name="Specification-Version" value="${specification.version}" />
</manifest>
</jar>
</target>
<target name="compileclasses">
<mkdir dir="${classes.dir}" />
<javac source="1.5" target="1.5" destdir="${classes.dir}" debug="${javac.debug}" deprecation="${javac.deprecation}" nowarn="on">
<src path="${src.dir}" />
</javac>
<copy todir="${classes.dir}">
<fileset dir="${src.dir}">
<include name="**/*.properties" />
</fileset>
</copy>
</target>
<target name="compiletest" depends="compileclasses">
<mkdir dir="${testclasses.dir}" />
<javac source="1.5" target="1.5" destdir="${testclasses.dir}" debug="${javac.debug}" deprecation="${javac.deprecation}" nowarn="on">
<src path="${test.src.dir}" />
<classpath>
<path path="${classes.dir}" />
<path refid="junit.jar" />
</classpath>
</javac>
</target>
<target name="test" depends="compiletest">
<mkdir dir="${test-output.dir}" />
<junit printsummary="yes">
<classpath>
<path path="${classes.dir}" />
<path path="${testclasses.dir}" />
<path refid="junit.jar" />
</classpath>
<formatter type="xml" />
<batchtest todir="${test-output.dir}">
<fileset dir="${test.src.dir}">
<include name="**/*TestCase.java" />
</fileset>
</batchtest>
</junit>
</target>
<target name="testreport" description="Create a pretty report">
<mkdir dir="${report.dir}" />
<junitreport todir="${report.dir}">
<fileset dir="${test-output.dir}">
<include name="**/*.xml" />
</fileset>
<report format="noframes" todir="${report.dir}" />
</junitreport>
<echo>Report available at ${report.dir}/junit-noframes.html</echo>
</target>
<target name="clean">
<delete dir="${temp.dir}" quiet="true" />
<delete dir="${dist.dir}" quiet="true" />
<delete dir="${report.dir}" quiet="true" />
</target>
</project>