File: xmldump

package info (click to toggle)
gridengine 8.1.9%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 56,880 kB
  • sloc: ansic: 432,689; java: 87,068; cpp: 31,958; sh: 29,429; jsp: 7,757; perl: 6,336; xml: 5,828; makefile: 4,701; csh: 3,928; ruby: 2,221; tcl: 1,676; lisp: 669; yacc: 519; python: 503; lex: 361; javascript: 200
file content (69 lines) | stat: -rwxr-xr-x 1,566 bytes parent folder | download | duplicates (9)
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
#!/bin/sh

#BASEDIR=`dirname $0`
#BASEDIR=`cd $BASEDIR; pwd`
#
#. $BASEDIR/run_util.sh
#
#JVM_ARGS=""
#JVM_ARGS="$JVM_ARGS -cp build/classes"
#JVM_ARGS="$JVM_ARGS -Djava.util.logging.config.file=util/logging.properties"
#
#url="bootstrap://${SGE_ROOT}@${SGE_CELL}:${SGE_QMASTER_PORT}"
#
#run -d $JVM_ARGS com.sun.grid.jgdi.configuration.xml.XMLDump $url $*
#
################
BASEDIR=`dirname $0`
BASEDIR=`cd $BASEDIR; pwd`

. $BASEDIR/run_util.sh

PRE_ARGS=""
POST_ARGS=""
CSP=0

while [ $# -gt 0 ]; do
  case $1 in
    -v) PRE_ARGS="$PRE_ARGS -v";;
    -d) PRE_ARGS="$PRE_ARGS -d";;
    -j) PRE_ARGS="$PRE_ARGS -j";;
    -csp) CSP=1;;
    *) POST_ARGS="$POST_ARGS $1";;
  esac
  shift
done

if [ $CSP -eq 1 ]; then
   PRE_ARGS="$PRE_ARGS -Djava.security.policy=util/jgdi.policy"
   PRE_ARGS="$PRE_ARGS -Djava.security.auth.login.config==util/jaas.config"
   PRE_ARGS="$PRE_ARGS -Djava.security.manager"
fi


PRE_ARGS="$PRE_ARGS -Djava.util.logging.config.file=util/logging.properties"

#if [ "$SGE_ROOT" != "" ]; then
#   CP=$SGE_ROOT/lib/jgdi.jar
#else
   CP=build/classes
#fi

if [ "$READLINE_JAVA_JAR" != "" ]; then
   CP="$CP:$READLINE_JAVA_JAR"
fi

if [ "$READLINE_LIB_PATH" ]; then
   if [ "$LD_LIBRARY_PATH" = "" ]; then
        LD_LIBRARY_PATH=$READLINE_LIB_PATH 
   else
        LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$READLINE_LIB_PATH"
   fi
fi

POST_ARGS="bootstrap://${SGE_ROOT}@${SGE_CELL}:${SGE_QMASTER_PORT} $POST_ARGS "

echo PRE_ARGS $PRE_ARGS
echo POST_ARGS $POST_ARGS
run $PRE_ARGS -cp $CP -- com.sun.grid.jgdi.configuration.xml.XMLDump $POST_ARGS