Revision 138:c7659b3ef38e

View differences:

pom.xml
141 141
			<properties>
142 142
				<config.postfix>.staging-ci</config.postfix>
143 143
			</properties>
144
			<dependencies>
145
				<dependency>
146
					<groupId>org.hibernate</groupId>
147
					<artifactId>hibernate-core</artifactId>
148
					<version>3.3.1.GA</version>
149
					<type>jar</type>
150
					<scope>compile</scope>
151
				</dependency>
152
				<dependency>
153
					<groupId>org.hibernate</groupId>
154
					<artifactId>hibernate-c3p0</artifactId>
155
					<version>3.3.1.GA</version>
156
				</dependency>
157
				<dependency>
158
					<groupId>axis</groupId>
159
					<artifactId>axis</artifactId>
160
					<version>1.4</version>
161
					<type>jar</type>
162
					<scope>compile</scope>
163
				</dependency>
164
			</dependencies>
144 165
			<build>
145 166
				<plugins>
146 167
					<plugin>
......
226 247
								<phase>process-resources</phase>
227 248
								<configuration>
228 249
									<target>
250
										<delete file="${project.build.outputDirectory}/upassMin.properties" />
251
										<copy file="resources/upassMin${config.postfix}.properties" tofile="${project.build.outputDirectory}/upassMin.properties" />
252

  
253
										<delete>
254
											<fileset dir="${project.build.outputDirectory}" includes="upassMin.*.properties" />
255
										</delete>
229 256
										<delete file="${project.build.outputDirectory}/hibernate.cfg.xml" />
230 257
										<copy file="resource/hibernate${config.postfix}.cfg.xml" tofile="${project.build.outputDirectory}/hibernate.cfg.xml" />
231 258

  
......
247 274
											<fileset dir="${project.build.outputDirectory}" includes="AppConfig.*.properties" />
248 275
										</delete>
249 276

  
277
										<delete file="${project.build.outputDirectory}/spring-ldap.xml" />
278
										<copy file="resources/spring-ldap.xml" tofile="${project.build.outputDirectory}/spring-ldap.xml" />
279
										<delete>
280
											<fileset dir="${project.build.outputDirectory}" includes="spring-ldap.*.xml" />
281
										</delete>
282

  
250 283
										<delete file="${project.build.outputDirectory}/log4j.xml" />
251 284
										<copy file="resource/log4j${config.postfix}.xml" tofile="${project.build.outputDirectory}/log4j.xml" />
252 285

  
......
276 309
			<properties>
277 310
				<config.postfix>.dev-penril</config.postfix>
278 311
			</properties>
312
			<dependencies>
313
				<dependency>
314
					<groupId>org.hibernate</groupId>
315
					<artifactId>hibernate-core</artifactId>
316
					<version>3.3.1.GA</version>
317
					<type>jar</type>
318
					<scope>compile</scope>
319
				</dependency>
320
				<dependency>
321
					<groupId>axis</groupId>
322
					<artifactId>axis</artifactId>
323
					<version>1.4</version>
324
					<type>jar</type>
325
					<scope>compile</scope>
326
				</dependency>
327
			</dependencies>
279 328
		</profile>
280 329
		<profile>
281 330
			<id>env-maybank-dev</id>
......
288 337
			<properties>
289 338
				<config.postfix>.maybank-dev</config.postfix>
290 339
			</properties>
340
			<dependencies>
341
				<dependency>
342
					<groupId>org.hibernate</groupId>
343
					<artifactId>hibernate-core</artifactId>
344
					<version>3.3.1.GA</version>
345
					<type>jar</type>
346
					<scope>compile</scope>
347
					<exclusions>
348
						<exclusion>
349
							<groupId>xml-apis</groupId>
350
							<artifactId>xml-apis</artifactId>
351
						</exclusion>
352
					</exclusions>
353
				</dependency>
354
				<dependency>
355
					<groupId>org.hibernate</groupId>
356
					<artifactId>hibernate-c3p0</artifactId>
357
					<version>3.3.1.GA</version>
358
				</dependency>
359
				<dependency>
360
					<groupId>axis</groupId>
361
					<artifactId>axis</artifactId>
362
					<version>1.4</version>
363
					<type>jar</type>
364
					<scope>compile</scope>
365
					<exclusions>
366
						<exclusion>
367
							<artifactId>axis-jaxrpc</artifactId>
368
							<groupId>org.apache.axis</groupId>
369
						</exclusion>
370
						<exclusion>
371
							<artifactId>axis-saaj</artifactId>
372
							<groupId>org.apache.axis</groupId>
373
						</exclusion>
374
					</exclusions>
375
				</dependency>
376
			</dependencies>
291 377
			<build>
292 378
				<plugins>
293 379
					<plugin>
......
311 397
			<properties>
312 398
				<config.postfix>.maybank-prod</config.postfix>
313 399
			</properties>
400
			<dependencies>
401
				<dependency>
402
					<groupId>org.hibernate</groupId>
403
					<artifactId>hibernate-core</artifactId>
404
					<version>3.3.1.GA</version>
405
					<type>jar</type>
406
					<scope>compile</scope>
407
					<exclusions>
408
						<exclusion>
409
							<groupId>xml-apis</groupId>
410
							<artifactId>xml-apis</artifactId>
411
						</exclusion>
412
					</exclusions>
413
				</dependency>
414
				<dependency>
415
					<groupId>org.hibernate</groupId>
416
					<artifactId>hibernate-c3p0</artifactId>
417
					<version>3.3.1.GA</version>
418
				</dependency>
419
				<dependency>
420
					<groupId>axis</groupId>
421
					<artifactId>axis</artifactId>
422
					<version>1.4</version>
423
					<type>jar</type>
424
					<scope>compile</scope>
425
					<exclusions>
426
						<exclusion>
427
							<artifactId>axis-jaxrpc</artifactId>
428
							<groupId>org.apache.axis</groupId>
429
						</exclusion>
430
						<exclusion>
431
							<artifactId>axis-saaj</artifactId>
432
							<groupId>org.apache.axis</groupId>
433
						</exclusion>
434
					</exclusions>
435
				</dependency>
436
			</dependencies>
314 437
			<build>
315 438
				<plugins>
316 439
					<plugin>
......
323 446
				</plugins>
324 447
			</build>
325 448
		</profile>
326

  
327

  
328 449
		<profile>
329 450
			<id>env-staging-penril</id>
330 451
			<activation>
......
359 480
				</plugins>
360 481
			</build>
361 482
		</profile>
362

  
363

  
364

  
365 483
		<profile>
366 484
			<id>cobertura-instrument</id>
367 485
			<activation>
......
470 588
			</dependencies>
471 589
		</profile>
472 590
	</profiles>
473

  
474

  
475

  
476 591
	<dependencies>
477 592
		<dependency>
478 593
			<groupId>junit</groupId>
resource/spring-ldap.maybank-dev.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
3
<beans>
4
    <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
5
        <property name="url" value="ldap://172.31.11.36:389" />
6
        <!-- property name="url" value="ldaps://172.31.11.36:636" /-->
7
        <property name="userDn" value="cn=Directory Manager" />
8
        <property name="password" value="password" />
9
    </bean>
10
    <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
11
        <constructor-arg ref="contextSource" />
12
    </bean>
13
    <bean id="maybankLdap" class="my.com.upass.spring.ldap.MaybankLdapDAOImpl">
14
        <property name="ldapTemplate" ref="ldapTemplate" />
15
        <property name="base" value="ou=People,o=maybank"/>
16
        <property name="usernameAttrName" value="mbbuserid"/>
17
        <property name="baseTicketing" value="ou=WebLogic,o=maybank"/>
18
        <property name="uidAttrName" value="uid"/>
19
    </bean>
20
</beans>
resource/spring-ldap.maybank-prod.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
3
<beans>
4
    <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
5
        <property name="url" value="ldap://172.31.11.36:389" />
6
        <!-- property name="url" value="ldaps://172.31.11.36:636" /-->
7
        <property name="userDn" value="cn=Directory Manager" />
8
        <property name="password" value="password" />
9
    </bean>
10
    <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
11
        <constructor-arg ref="contextSource" />
12
    </bean>
13
    <bean id="maybankLdap" class="my.com.upass.spring.ldap.MaybankLdapDAOImpl">
14
        <property name="ldapTemplate" ref="ldapTemplate" />
15
        <property name="base" value="ou=People,o=maybank"/>
16
        <property name="usernameAttrName" value="mbbuserid"/>
17
        <property name="baseTicketing" value="ou=WebLogic,o=maybank"/>
18
        <property name="uidAttrName" value="uid"/>
19
    </bean>
20
</beans>
resource/spring-ldap.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
3
<beans>
4
    <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
5
        <property name="url" value="ldap://172.31.11.36:389" />
6
        <!-- property name="url" value="ldaps://172.31.11.36:636" /-->
7
        <property name="userDn" value="cn=Directory Manager" />
8
        <property name="password" value="password" />
9
    </bean>
10
    <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
11
        <constructor-arg ref="contextSource" />
12
    </bean>
13
    <bean id="maybankLdap" class="my.com.upass.spring.ldap.MaybankLdapDAOImpl">
14
        <property name="ldapTemplate" ref="ldapTemplate" />
15
        <property name="base" value="ou=People,o=maybank"/>
16
        <property name="usernameAttrName" value="mbbuserid"/>
17
        <property name="baseTicketing" value="ou=WebLogic,o=maybank"/>
18
        <property name="uidAttrName" value="uid"/>
19
    </bean>
20
</beans>
resource/upassMin.maybank-dev-jndi.properties
1
# NOTE:
2
# Make sure there is no tailing space at the parameter, eg "...=3" and not "...=3  "
3
# Tailing space will cause "ERR: property Not Found" exception.
4

  
5
# Flag to get parameters from Database
6
DB_USE_SETTING=1
7

  
8
# Migration period flag
9
MIGRATION_PERIOD=Y
resource/upassMin.maybank-dev.properties
1
# NOTE:
2
# Make sure there is no tailing space at the parameter, eg "...=3" and not "...=3  "
3
# Tailing space will cause "ERR: property Not Found" exception.
4

  
5
# Flag to get parameters from Database
6
DB_USE_SETTING=1
7

  
8
# Migration period flag
9
MIGRATION_PERIOD=Y

Also available in: Unified diff