Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / rubbos / rubbos_scripts / 1-1-1 / scripts / TOMCAT1_rubbosSL_configure.sh
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 cd /bottlenecks/rubbos/rubbos_scripts/1-1-1
12 source set_bottlenecks_rubbos_env.sh
13
14 echo "CONFIGURING RUBBOS SERVLET on $HOSTNAME"
15
16 \cp $OUTPUT_HOME/rubbos_conf/build.properties $RUBBOS_HOME/
17
18 \cp -r $WORK_HOME/rubbos_files/Servlets $RUBBOS_HOME/
19 \cp $OUTPUT_HOME/rubbos_conf/mysql.properties $RUBBOS_HOME/Servlets/
20 \cp $OUTPUT_HOME/rubbos_conf/build.xml $RUBBOS_HOME/Servlets/
21 \cp $OUTPUT_HOME/rubbos_conf/Config.java $RUBBOS_HOME/Servlets/edu/rice/rubbos/servlets/
22 \cp $OUTPUT_HOME/rubbos_conf/web.xml $RUBBOS_HOME/Servlet_HTML/WEB-INF/
23
24 cd $RUBBOS_HOME/Servlets/edu/rice/rubbos/servlets
25 sed 's/public static final int    BrowseCategoriesPoolSize      = 6;/public static final int    BrowseCategoriesPoolSize      = 12;/g' Config.java > Config.java.tmp
26 mv Config.java.tmp Config.java
27
28 cd $RUBBOS_HOME/Servlets
29 /bottlenecks/rubbos/app/apache-ant-1.6.5/bin/ant clean >/dev/null
30 /bottlenecks/rubbos/app/apache-ant-1.6.5/bin/ant dist >/dev/null
31 make >/dev/null 2>&1
32 cp rubbos.war $CATALINA_HOME/webapps/
33
34 echo "DONE CONFIGURING RUBBOS SERVLET on $HOSTNAME"