aboutsummaryrefslogtreecommitdiff
path: root/build.xml
blob: 8e81fdd61d68879a6461db8787988c6225baf8ae (plain)
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
<!--

Generate mauve class files for Open Embedded Lava builds.

Copyright (C) 2013, Linaro Limited.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

Author: Andrew McDermott <andrew.mcdermott@linaro.org>

-->

<project name="mauve" default="compile" basedir=".">

  <path id="classpath">
    <fileset dir="vendor-lib">
      <include name="*.jar" />
    </fileset>
  </path>

  <target name="testlet"
	  description="compile the testlet sources">
    <javac srcdir="gnu/testlet"
	   debug="on"
	   includes="*.java"
	   includeantruntime="false"
	   sourcepath="."
	   target="1.6"
	   source="1.6"/>
  </target>

  <target name="junit"
	  description="compile the junit sources">
    <javac srcdir="junit"
	   debug="on"
	   includes="**/*.java"
	   includeantruntime="false"
	   sourcepath="."
	   target="1.6"
	   source="1.6"
	   />
  </target>

  <target name="compile-classic-files"
	  depends="testlet"
	  description="compile the classic files (ie, -source 1.4">
    <javac srcdir="."
	   classpathref="classpath"
	   debug="on"
	   includeantruntime="false"
	   includesfile="classic_files.txt"
	   nowarn="true"
	   sourcepath="."
	   source="1.4"
	   target="1.4"
	   >
      <classpath>
	<pathelement path="${classpath}"/>
      </classpath>
    </javac>
  </target>

  <target name="compile-modern-files"
	  description="compile modern sources"
	  depends="testlet,compile-classic-files">
    <javac srcdir="."
	   classpathref="classpath"
	   debug="on"
	   includesfile="modern_files.txt"
	   excludes="gnu/testlet/java/awt/image/ColorModel/constructors.java gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFolderIcon.java gnu/testlet/java/util/ConcurrentModificationException/constructor.java"
	   failonerror="false"
	   includeantruntime="false"
	   nowarn="true"
	   sourcepath="."
	   source="1.6"
	   target="1.6"
	   >
    </javac>
  </target>

  <target name="clean">
    <delete>
      <fileset dir="gnu/testlet"
	       includes="**/*.class,*.class">
      </fileset>
    </delete>
  </target>

  <target name="compile" depends="testlet,junit,compile-classic-files,compile-modern-files"/>

</project>