-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproperties.xml
More file actions
221 lines (199 loc) · 10.2 KB
/
Copy pathproperties.xml
File metadata and controls
221 lines (199 loc) · 10.2 KB
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<?xml version="1.0" encoding="UTF-8"?>
<project>
<!-- Directory structure of the project -->
<property name="build.dir" value="${basedir}/build"/>
<property name="dist.dir" value="${basedir}/dist"/>
<property name="test.dir" value="${build.dir}/test"/>
<!-- Directories for code coverage sampling -->
<property name="coverage.dir" value="${test.dir}/coverage"/>
<property name="out.instr.dir" value="${test.dir}/outinstr"/>
<!-- Default options for code-generation, compiling and junit-testing -->
<property name="javac.debug" value="true"/>
<property name="compile.deprecation" value="true"/>
<!-- build.compiler - seems to be issues using jikes and JDK 1.4 is just as fast-->
<property name="build.compiler" value="modern"/>
<property name="junit.fork" value="true"/>
<property name="junit.showoutput" value="true"/>
<property name="xdoclet.force" value="false"/>
<!-- Library versions and JARs -->
<property name="lib.dir" location="lib"/>
<property file="${lib.dir}/lib.properties"/>
<!-- Load user overrides -->
<property file="${user.home}/.${ant.project.name}-build.properties"/>
<property file="${user.home}/.build.properties"/>
<property file="build.properties"/>
<property file="web/WEB-INF/classes/mail.properties"/>
<!-- Application options that will likely vary between applications -->
<property name="http.port" value="8080"/>
<property name="dao.type" value="hibernate"/>
<property name="jsp.2" value="false"/>
<property name="jsp.precompile" value="false"/>
<!-- Properties for running unit tests with tomcat -->
<property name="tomcat.server" value="localhost"/>
<property name="tomcat.manager.url" value="http://${tomcat.server}:${http.port}/manager"/>
<property name="tomcat.username" value="admin"/>
<property name="tomcat.password" value="admin"/>
<!-- Defaults for database.properties -->
<property name="database.jar" location="${mysql.jar}"/>
<property name="database.type" value="mysql"/>
<property name="database.name" value="canyon_db"/>
<property name="database.host" value="localhost"/>
<property name="database.username" value="test"/>
<property name="database.password" value="test"/>
<!-- database URL for creating other dbs - used in db-create target -->
<property name="database.admin.url" value="jdbc:${database.type}://${database.host}/mysql"/>
<property name="database.admin.username" value="root"/>
<property name="database.admin.password" value=""/>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
<property name="database.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="database.url"
value="jdbc:${database.type}://${database.host}/${database.name}?useUnicode=true&amp;characterEncoding=utf-8"/>
<property name="database.show_sql" value="true"/>
<property name="database.schema" value=""/>
<!-- Build and deploy properties -->
<property environment="env"/>
<property name="env.COMPUTERNAME" value="${env.HOSTNAME}"/>
<property name="tomcat.home" value="${env.CATALINA_HOME}"/>
<!-- The target directory for building the packed web application -->
<property name="webapp.dist" value="${dist.dir}/webapps"/>
<!-- The target directory for building the unpacked web application -->
<property name="webapp.target" value="${build.dir}/${webapp.name}"/>
<!-- Should Java compilations set the debug compiler option? -->
<property name="compile.debug" value="true"/>
<!-- Should Java compilations set the deprecation compiler option? -->
<property name="compile.deprecation" value="false"/>
<!-- Should Java compilations set the optimize compiler option? -->
<property name="compile.optimize" value="false"/>
<!-- The source directory for the whole project -->
<property name="src" value="${basedir}/src"/>
<property name="tar.user" value="ant"/>
<property name="tar.group" value="ant"/>
<property name="tar.mode" value="644"/>
<!-- =================================================================== -->
<!-- Classpaths -->
<!-- =================================================================== -->
<path id="xdoclet.classpath">
<pathelement location="${log4j.jar}"/>
<pathelement location="${commons-logging.jar}"/>
<pathelement location="${commons-collections.jar}"/>
<fileset dir="${spring.dir}" includes="acegi*.jar"/>
<fileset dir="${xdoclet.dir}" includes="*.jar"/>
<fileset dir="${velocity.dir}" includes="*.jar"/>
</path>
<!-- Hibernate -->
<path id="hibernate.classpath">
<pathelement location="${hibernate.jar}"/>
<fileset dir="${hibernate.dir}/lib" includes="*.jar"/>
<pathelement location="${database.jar}"/>
<pathelement location="${commons-beanutils.jar}"/>
<pathelement location="${commons-lang.jar}"/>
<path location="${build.dir}/dao/classes"/>
</path>
<!-- DAO -->
<path id="dao.compile.classpath">
<path refid="hibernate.classpath"/>
<pathelement location="${commons-lang.jar}"/>
<pathelement location="${commons-logging.jar}"/>
<fileset dir="${spring.dir}" includes="*.jar"/>
</path>
<path id="dao.test.classpath">
<path refid="dao.compile.classpath"/>
<pathelement location="${dbunit.jar}"/>
<pathelement location="${junit.jar}"/>
<pathelement location="${commons-collections.jar}"/>
<pathelement location="${log4j.jar}"/>
</path>
<!-- Service -->
<path id="service.compile.classpath">
<path refid="dao.compile.classpath"/>
<fileset dir="${quartz.dir}" includes="*.jar"/>
<pathelement location="${dist.dir}/${webapp.name}-dao.jar"/>
<fileset dir="${javamail.dir}" includes="*.jar"/>
<pathelement location="${commons-beanutils.jar}"/>
<pathelement location="${commons-collections.jar}"/>
<fileset dir="${spring.dir}" includes="*.jar"/>
<fileset dir="${velocity.dir}" includes="*.jar"/>
</path>
<path id="service.test.classpath">
<path refid="service.compile.classpath"/>
<pathelement location="${junit.jar}"/>
<pathelement location="${log4j.jar}"/>
<pathelement location="${jakarta-oro.jar}"/>
<pathelement location="${dumbster.jar}"/>
<pathelement location="${jmock.jar}"/>
<path location="test/dao"/>
</path>
<!-- Web -->
<path id="web.compile.classpath">
<pathelement location="${dist.dir}/${webapp.name}-dao.jar"/>
<pathelement location="${dist.dir}/${webapp.name}-service.jar"/>
<pathelement location="${strutsmenu.jar}"/>
<pathelement location="${displaytag.jar}"/>
<pathelement location="${jakarta-oro.jar}"/>
<pathelement location="${commons-digester.jar}"/>
<pathelement location="${commons-logging.jar}"/>
<pathelement location="${commons-beanutils.jar}"/>
<pathelement location="${commons-collections.jar}"/>
<pathelement location="${commons-fileupload.jar}"/>
<pathelement location="${commons-lang.jar}"/>
<pathelement location="${commons-validator.jar}"/>
<pathelement location="${servletapi.jar}"/>
<pathelement location="${ajaxtags.jar}"/>
<pathelement location="${opencsv.jar}"/>
<pathelement location="${radeox.jar}"/>
<fileset dir="${jsp2.jstl.dir}/lib" includes="*.jar"/>
<fileset dir="${javamail.dir}" includes="*.jar"/>
<fileset dir="${spring.dir}" includes="*.jar"/>
<fileset dir="${jstl.dir}/lib" includes="jstl.jar"/>
<fileset dir="${quartz.dir}" includes="*.jar"/>
</path>
<path id="web.test.classpath">
<path refid="web.compile.classpath"/>
<path refid="service.test.classpath"/>
<pathelement location="${strutstestcase.jar}"/>
<fileset dir="${webtest.dir}/lib" includes="*.jar"/>
</path>
<path id="jspc.classpath">
<path refid="dao.compile.classpath"/>
<pathelement location="${commons-logging.jar}"/>
<pathelement location="${commons-validator.jar}"/>
<pathelement location="${clickstream.jar}"/>
<pathelement location="${displaytag.jar}"/>
<pathelement location="${sitemesh.jar}"/>
<pathelement location="${strutsmenu.jar}"/>
<fileset dir="${jstl.dir}/lib" includes="*.jar"/>
<fileset dir="${jsp2.jstl.dir}/lib" includes="*.jar"/>
<fileset dir="${spring.dir}" includes="*.jar"/>
<fileset dir="${tomcat.home}/common/lib" includes="*.jar"/>
<path location="${build.dir}/web/classes"/>
</path>
<path id="emma.libs">
<pathelement location="${emma.dir}/emma.jar"/>
<pathelement location="${emma.dir}/emma_ant.jar"/>
</path>
<path id="all.sources">
<pathelement path="src/dao"/>
<pathelement path="src/service"/>
<pathelement path="src/web"/>
</path>
<taskdef resource="emma_ant.properties" classpathref="emma.libs"/>
<property name="inheritAll" value="true"/>
<!-- this macro is called by tasks that depend on a database.properties -->
<macrodef name="generate-database-properties">
<sequential>
<echo>generating database.properties from build.properties</echo>
<propertyfile comment="Hibernate Configuration for JUnit tests"
file="${basedir}/database.properties">
<entry key="hibernate.dialect" value="${hibernate.dialect}"/>
<entry key="hibernate.connection.driver_class" value="${database.driver_class}"/>
<entry key="hibernate.connection.url" value="${database.url}"/>
<entry key="hibernate.connection.username" value="${database.username}"/>
<entry key="hibernate.connection.password" value="${database.password}"/>
<entry key="hibernate.connection.show_sql" value="${database.show_sql}"/>
<entry key="dao.type" value="${dao.type}"/>
</propertyfile>
<replace file="database.properties" token="amp;" value=""/>
<property file="database.properties"/>
</sequential>
</macrodef>
</project>