-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
169 lines (130 loc) · 4.39 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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<project name="openreports" default="war" basedir=".">
<property name="src" value="src" />
<property name="lib" value="lib" />
<property name="docs" value="docs" />
<property name="deploy" value="C:/devel/jboss-4.2.2.GA/server/default/deploy" />
<property name="WebRoot" value="WebRoot" />
<property name="web-inf" value="${WebRoot}/WEB-INF" />
<property name="web-inf.classes" value="${web-inf}/classes" />
<property name="web-inf.lib" value="${web-inf}/lib" />
<property name="distribution" value="/openreports/distributions" />
<property name="version" value="3.2.0" />
<target name="compile">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${web-inf.classes}" />
</delete>
<delete failonerror="false">
<fileset dir="${web-inf.lib}">
<include name="openreports-*.jar" />
</fileset>
</delete>
<mkdir dir="${web-inf.classes}" />
<javac srcdir="${src}" destdir="${web-inf.classes}" debug="on">
<classpath>
<fileset dir="${web-inf.lib}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
<copy todir="${web-inf.classes}">
<fileset dir="${src}">
<include name="**/*.properties" />
<include name="**/*.xml" />
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<jar destfile="${web-inf.lib}/openreports-${version}.jar" basedir="${web-inf.classes}" />
</target>
<target name="war" depends="jar">
<war destfile="${deploy}/openreports.war" webxml="${web-inf}/web.xml">
<fileset dir="${WebRoot}">
<include name="**/*.vm" />
<include name="**/*.js" />
<include name="**/*.jsp" />
<include name="**/*.html" />
<include name="**/*.css" />
<include name="**/*.gif" />
<include name="**/*.jpg" />
<include name="**/*.png" />
<include name="**/*.tld" />
<include name="**/applicationContext*.xml" />
<include name="**/jpivot/**" />
<include name="**/wcf/**" />
<include name="**/platform/**" />
</fileset>
<lib dir="${web-inf.lib}" />
</war>
</target>
<target name="schemaExporter" depends="jar">
<java classname="org.efs.openreports.util.schema.SchemaExporter" failonerror="true" fork="true">
<classpath>
<fileset dir="${web-inf.lib}" />
</classpath>
</java>
</target>
<target name="schemaUpdater" depends="jar">
<java classname="org.efs.openreports.util.schema.SchemaUpdater" failonerror="true" fork="true">
<classpath>
<fileset dir="${web-inf.lib}" />
</classpath>
</java>
</target>
<target name="schemaGenerator" depends="jar">
<java classname="org.efs.openreports.util.schema.SchemaGenerator" failonerror="true" fork="true">
<classpath>
<fileset dir="${web-inf.lib}" />
</classpath>
</java>
</target>
<target name="createAdminUser" depends="jar">
<input message="Please enter admin username:" addproperty="admin.user" />
<input message="Please enter admin password:" addproperty="admin.password" />
<input message="Please enter admin email address:" addproperty="admin.email" />
<java classname="org.efs.openreports.util.schema.AdminUserCreator" failonerror="true" fork="true">
<arg value="${admin.user}"/>
<arg value="${admin.password}"/>
<arg value="${admin.email}"/>
<classpath>
<fileset dir="${web-inf.lib}" />
</classpath>
</java>
</target>
<target name="createDistribution">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${distribution}/${version}" />
</delete>
<mkdir dir="${distribution}/${version}" />
<copy todir="${distribution}/${version}">
<fileset dir=".">
<filename name="**/**" />
</fileset>
</copy>
</target>
<target name="javadoc" >
<delete dir="${docs}/api" />
<mkdir dir="${docs}/api" />
<javadoc destdir="${docs}/api"
windowtitle="OpenReports (version ${version})"
use="yes"
linksource="yes"
splitindex="yes">
<classpath>
<fileset dir="${web-inf.lib}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
<pathelement location="${build}"/>
</classpath>
<packageset dir="${src}" defaultexcludes="yes">
<include name="org/efs/openreports/services/**"/>
<include name="org/efs/openreports/engine/**"/>
</packageset>
</javadoc>
</target>
</project>