/
test.xml
152 lines (120 loc) · 5.05 KB
/
test.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" ?>
<%@ page whatever="foo" %>
<%!
String bar = "foo";
%>
<!DOCTYPE rdf:RDF [
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
]>
<rdf:testtag rdf:attribute="value" />
<invalid "tag" attribute=/>
<project name="CDA" default="compile" basedir=".">
<property environment="env" />
<property file="${user.home}/.build.properties"/>
<property file="build.properties"/>
<property name="env.COMPUTERNAME" value="${env.HOSTNAME}"/>
<property name="app.name" value="${ant.project.name}" />
<property name="app.version" value="0.1" />
<property name="app.path" value="/${app.name}" />
<property name="build.home" value="${basedir}/build" />
<property name="dist.home" value="${basedir}/dist" />
<property name="docs.home" value="${basedir}/doc" />
<property name="src.home" value="${basedir}/src" />
<property name="web.home" value="${basedir}/web" />
<taskdef resource="svnbuild.properties" />
<svnbuild />
<%
String foo = "bar";
System.out.println();
void foo () {
}
%>
<%--
comment
--%>
<%= Long.toString(32L) %>
<!-- ==================== Compilation Control Options -->
<!--
These properties control option settings on the Javac compiler when it
is invoked using the <javac/> task.
compile.debug Should compilation include the debug option?
compile.deprecation Should compilation include the deprecation option?
compile.optimize Should compilation include the optimize option?
-->
<property name="compile.debug" value="true"/>
<property name="compile.deprecation" value="false"/>
<property name="compile.optimize" value="true"/>
<path id="webconnect.path">
<pathelement location="${webconnect.lib}/martini.jar" />
</path>
<!-- ==================== Compilation Classpath -->
<path id="compile.classpath">
<fileset dir="${web.home}/webconnect/WEB-INF/lib" includes="**/*.jar" />
<path refid="webconnect.path" />
<pathelement location="${classes.home}/j2ee12.jar" />
<pathelement location="${classes.home}/activation.jar" />
<pathelement location="${classes.home}/mail.jar" />
</path>
<!-- ==================== Clean Target -->
<target name="clean"
description="Delete old build and dist directories">
<delete dir="${build.home}" />
<delete dir="${dist.home}" />
</target>
<!-- ==================== Compile Target -->
<target name="compile"
depends="prepare"
description="Compile Java sources">
<!-- Copy application resources -->
<copy todir="${build.home}/WEB-INF/classes">
<fileset dir="${src.home}" excludes="**/*.java" />
</copy>
<copy todir="${build.home}">
<fileset dir="${web.home}/webconnect">
<exclude name="BIZMEDIA MOVED" />
</fileset>
</copy>
<!-- Compile Java classes as necessary -->
<javac srcdir="${src.home}"
destdir="${build.home}/WEB-INF/classes"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath" />
</javac>
<propertyfile comment="Build Information"
file="${build.home}/WEB-INF/classes/build.properties">
<entry key="build.date" type="date" value="now" pattern="EEEE MMM dd, yyyy" />
<entry key="build.time" type="date" value="now" pattern="kk:mm:ss" />
<entry key="build.host" value="${env.COMPUTERNAME}" />
<entry key="build.user.name" value="${user.name}" />
<entry key="build.os.name" value="${os.name}" />
<entry key="svn.revision" value="${svn.revision}" />
<entry key="svn.modified" value="${svn.modified}" />
<entry key="svn.tag" value="${svn.tag}" />
<entry key="svn.buildnum" value="${svn.buildnum}" />
<entry key="svn.repository" value="${svn.repository}" />
</propertyfile>
</target>
<!-- ==================== Javadoc Target -->
<target name="javadoc" depends="compile"
description="Create Javadoc API documentation">
<mkdir dir="${dist.home}/docs/api"/>
<javadoc sourcepath="${src.home}"
destdir="${dist.home}/docs/api"
packagenames="*">
<classpath>
<path refid="compile.classpath" />
<pathelement location="${build.home}" />
</classpath>
</javadoc>
</target>
<!-- ==================== Prepare Target -->
<target name="prepare">
<!-- Create build directories as needed -->
<mkdir dir="${dist.home}" />
<mkdir dir="${build.home}" />
<mkdir dir="${build.home}/WEB-INF" />
<mkdir dir="${build.home}/WEB-INF/classes" />
</target>
</project>