Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 456949c

Browse files
committed
Integrate the game plan assembly
git-svn-id: https://coder.topcoder.com/tcs/clients/cronos/applications/direct/trunk@182564 fb370eea-3af6-4597-97f7-f7400a59c12a
1 parent 79611e9 commit 456949c

22 files changed

+7254
-504
lines changed

conf/web/WEB-INF/applicationContext.xml

+257-236
Large diffs are not rendered by default.

conf/web/WEB-INF/struts.xml

+11
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,17 @@
163163
<interceptor-ref name="securedPreProcessorStack"/>
164164
<result name="success">/WEB-INF/permissions.jsp</result>
165165
</action>
166+
<action name="currentProjectGamePlanView" class="com.topcoder.direct.services.view.action.ForwardAction">
167+
<interceptor-ref name="securedPreProcessorStack"/>
168+
<result name="success">/WEB-INF/project-gameplan.jsp</result>
169+
</action>
170+
<action name="projectGamePlan" class="com.topcoder.direct.services.view.action.project.CurrentProjectGamePlanAction">
171+
<interceptor-ref name="securedPreProcessorStack"/>
172+
<result type="stream">
173+
<param name="contentType">text/html</param>
174+
<param name="inputName">inputStream</param>
175+
</result>
176+
</action>
166177
<action name="contestRegistrants" class="com.topcoder.direct.services.view.action.contest.ContestRegistrantsAction">
167178
<interceptor-ref name="securedContestStack"/>
168179
<result name="success">/WEB-INF/contest-registrants.jsp</result>

kill.sh

+72-72
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
1-
#!/bin/bash
2-
3-
#
4-
# kill the currently running compiler process on this machine
5-
# creates backups of all compiler logs and puts the backups
6-
# in the backup_logs directory with the date appended.
7-
#
8-
9-
# find the processes
10-
11-
echo kill -9 jboss and backup logs?
12-
read ANSWER
13-
if [[ $ANSWER = 'Y' || $ANSWER = 'y' || $ANSWER = 'yes' || $ANSWER = 'Yes' || $ANSWER = 'YES' ]]
14-
then
15-
16-
echo searching for processes....
17-
sockproc=$(ps -efww | grep "jboss\.Main" |grep $USER | cut -c9-14)
18-
19-
echo processes $sockproc
20-
21-
22-
# if they are not blank, kill them
23-
if [[ -n $sockproc ]]; then
24-
# ps -efww |grep "compilerExec.sh" | grep $USER
25-
echo killing $sockproc ...
26-
kill -9 $sockproc
27-
echo "kill -9 ${sockproc}"
28-
else
29-
echo "jboss.Main process was not found."
30-
fi
31-
32-
#### Now back up all the compiler logs ####
33-
backupDir="backup_logs"
34-
35-
#if the backup directory does not exist, create it
36-
if [ ! -d $backupDir ]
37-
then
38-
mkdir backup_logs
39-
fi
40-
41-
#retrieve the date as mm/dd/yy
42-
dateVar=$(date +%D)
43-
44-
#retrieve the time as hh:mm:ss
45-
timeVar=$(date +%T)
46-
47-
#format date as mm_dd_yy
48-
mm=$(expr $dateVar : '\([^/]*\)')
49-
dd=$(expr $dateVar : '[^/]*/\([^/]*\)')
50-
yy=$(expr $dateVar : '[^/]*/[^/]*/\([^/]*\)')
51-
dateVar=$mm'_'$dd'_'$yy':'$timeVar
52-
53-
54-
declare -a files
55-
files[0]="gc.log"
56-
files[1]="nohup.out"
57-
58-
#create backup logs with the date appended to the filenames
59-
for i in ${files[@]}
60-
do
61-
if [ -f $i ]
62-
then
63-
echo backing up $i
64-
cp $i $i.$dateVar
65-
mv $i.$dateVar $backupDir
66-
fi
67-
done
68-
69-
fi
70-
71-
72-
1+
#!/bin/bash
2+
3+
#
4+
# kill the currently running compiler process on this machine
5+
# creates backups of all compiler logs and puts the backups
6+
# in the backup_logs directory with the date appended.
7+
#
8+
9+
# find the processes
10+
11+
echo kill -9 jboss and backup logs?
12+
read ANSWER
13+
if [[ $ANSWER = 'Y' || $ANSWER = 'y' || $ANSWER = 'yes' || $ANSWER = 'Yes' || $ANSWER = 'YES' ]]
14+
then
15+
16+
echo searching for processes....
17+
sockproc=$(ps -efww | grep "jboss\.Main" |grep $USER | cut -c9-14)
18+
19+
echo processes $sockproc
20+
21+
22+
# if they are not blank, kill them
23+
if [[ -n $sockproc ]]; then
24+
# ps -efww |grep "compilerExec.sh" | grep $USER
25+
echo killing $sockproc ...
26+
kill -9 $sockproc
27+
echo "kill -9 ${sockproc}"
28+
else
29+
echo "jboss.Main process was not found."
30+
fi
31+
32+
#### Now back up all the compiler logs ####
33+
backupDir="backup_logs"
34+
35+
#if the backup directory does not exist, create it
36+
if [ ! -d $backupDir ]
37+
then
38+
mkdir backup_logs
39+
fi
40+
41+
#retrieve the date as mm/dd/yy
42+
dateVar=$(date +%D)
43+
44+
#retrieve the time as hh:mm:ss
45+
timeVar=$(date +%T)
46+
47+
#format date as mm_dd_yy
48+
mm=$(expr $dateVar : '\([^/]*\)')
49+
dd=$(expr $dateVar : '[^/]*/\([^/]*\)')
50+
yy=$(expr $dateVar : '[^/]*/[^/]*/\([^/]*\)')
51+
dateVar=$mm'_'$dd'_'$yy':'$timeVar
52+
53+
54+
declare -a files
55+
files[0]="gc.log"
56+
files[1]="nohup.out"
57+
58+
#create backup logs with the date appended to the filenames
59+
for i in ${files[@]}
60+
do
61+
if [ -f $i ]
62+
then
63+
echo backing up $i
64+
cp $i $i.$dateVar
65+
mv $i.$dateVar $backupDir
66+
fi
67+
done
68+
69+
fi
70+
71+
72+

lib/tcs/cockpit-client.jar

8.1 KB
Binary file not shown.

setup.sh

+56-57
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,56 @@
1-
#!/bin/bash
2-
3-
echo ------------------------------
4-
echo Stopping Cockpit JBoss server
5-
echo Press y to confirm stopping
6-
echo ------------------------------
7-
cd /tmp
8-
./kill.sh
9-
10-
echo delete old json jar
11-
rm -v /tmp/lib/third_party/struts/json-lib-2.1.jar
12-
13-
echo -------------------------------------------------------
14-
echo Creating development distribution environment for
15-
echo TC Direct System application
16-
echo -------------------------------------------------------
17-
mkdir -pv /home/cockpit/direct
18-
cd /home/cockpit/direct
19-
cp -rv /tmp/conf .
20-
cp -rv /tmp/docs .
21-
cp -rv /tmp/lib .
22-
cp -rv /tmp/src .
23-
cp /tmp/*.properties .
24-
cp /tmp/*.xml .
25-
cp /tmp/*.version .
26-
27-
28-
echo ----------------------------------------
29-
echo Copying static resources to Apache HTTP
30-
echo server for hosting
31-
echo ----------------------------------------
32-
mkdir -pv /mnt/apache/tcdocs/images
33-
mkdir -pv /mnt/apache/tcdocs/css
34-
mkdir -pv /mnt/apache/tcdocs/scripts
35-
cp -Rv /home/cockpit/direct/src/web/images/* /mnt/apache/tcdocs/images
36-
cp -Rv /home/cockpit/direct/src/web/css/* /mnt/apache/tcdocs/css
37-
cp -Rv /home/cockpit/direct/src/web/scripts/* /mnt/apache/tcdocs/scripts
38-
39-
echo -----------------------------------------------
40-
echo Deploying Security EAR application
41-
echo -----------------------------------------------
42-
cd /home/cockpit/direct
43-
#security.ear is deployed already on vm, skip this step
44-
#ant deploy-security
45-
46-
echo -----------------------------------------------
47-
echo Building and deploying Cockpit web application
48-
echo -----------------------------------------------
49-
cd /home/cockpit/direct
50-
ant deploy
51-
52-
echo ------------------------------
53-
echo Starting Cockpit JBoss server
54-
echo ------------------------------
55-
cd /home/cockpit/jboss-4.2.3.GA/bin
56-
./start.sh
57-
1+
#!/bin/bash
2+
3+
echo ------------------------------
4+
echo Stopping Cockpit JBoss server
5+
echo Press y to confirm stopping
6+
echo ------------------------------
7+
./kill.sh
8+
9+
echo delete old json jar
10+
rm -v /tmp/lib/third_party/struts/json-lib-2.1.jar
11+
12+
echo -------------------------------------------------------
13+
echo Creating development distribution environment for
14+
echo TC Direct System application
15+
echo -------------------------------------------------------
16+
mkdir -pv /home/direct/direct
17+
cd /home/direct/direct
18+
cp -rv /tmp/conf .
19+
cp -rv /tmp/docs .
20+
cp -rv /tmp/lib .
21+
cp -rv /tmp/src .
22+
cp /tmp/*.properties .
23+
cp /tmp/*.xml .
24+
cp /tmp/*.version .
25+
26+
27+
echo ----------------------------------------
28+
echo Copying static resources to Apache HTTP
29+
echo server for hosting
30+
echo ----------------------------------------
31+
mkdir -pv /mnt/apache/tcdocs/images
32+
mkdir -pv /mnt/apache/tcdocs/css
33+
mkdir -pv /mnt/apache/tcdocs/scripts
34+
cp -Rv /home/direct/direct/src/web/images/* /mnt/apache/tcdocs/images
35+
cp -Rv /home/direct/direct/src/web/css/* /mnt/apache/tcdocs/css
36+
cp -Rv /home/direct/direct/src/web/scripts/* /mnt/apache/tcdocs/scripts
37+
38+
echo -----------------------------------------------
39+
echo Deploying Security EAR application
40+
echo -----------------------------------------------
41+
cd /home/direct/direct
42+
#security.ear is deployed already on vm, skip this step
43+
#ant deploy-security
44+
45+
echo -----------------------------------------------
46+
echo Building and deploying Cockpit web application
47+
echo -----------------------------------------------
48+
cd /home/direct/direct
49+
ant deploy
50+
51+
echo ------------------------------
52+
echo Starting Cockpit JBoss server
53+
echo ------------------------------
54+
cd /home/direct/jboss-4.2.3.GA/bin
55+
./start.sh
56+

0 commit comments

Comments
 (0)