source: release-kits/shared/linux/rk@ 16773

Last change on this file since 16773 was 16773, checked in by oranfry, 13 years ago

export classpath so it is seen by any

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#pre checks
2
3if [ "$rk_name" == "" ]; then
4 echo "rk_name not set";
5 exit;
6elif [ "$RK_HOME" == "" ]; then
7 echo "RK_HOME not set";
8 exit
9fi
10
11function show_help {
12
13 echo "$rk_name - $rk_fullname"
14 echo "Helps you to create releases from the Repository"
15 echo
16 echo "usage: $rk_name [-sim] [-from <target>] [other-args]"
17 echo " -sim"
18 echo " simulation only, don't actually do anything"
19 echo
20 echo " -from <target>"
21 echo " start execution from the target with the given target address"
22 echo
23 echo " -to <target>"
24 echo " stop execution just before the target with the given target address"
25 echo
26 echo
27 echo " -descend <target>"
28 echo " execute only the target with the given address, including subtargets"
29 echo
30 echo " -cp"
31 echo " show the classpath being used by $rk_name"
32
33}
34
35#work out the classpath
36CLASSPATH=$JAVA_HOME/lib/tools.jar
37for file in $RK_HOME/lib/*.jar; do
38 CLASSPATH=$CLASSPATH:$file
39done
40for file in $RK_HOME/packages/ant/lib/*.jar; do
41 CLASSPATH=$CLASSPATH:$file
42done
43for file in $RK_HOME/packages/ant-installer/lib/*.jar; do
44 CLASSPATH=$CLASSPATH:$file
45done
46CLASSPATH=$CLASSPATH:$RK_HOME/packages/ant-installer/classes
47
48export CLASSPATH
49
50#set ANT_HOME
51export ANT_HOME=$RK_HOME/packages/ant
52
53#create the command
54toexec="$ANT_HOME/bin/ant -addressing -lib `pwd`/installer/classes -f $RK_HOME/ant-scripts/build.xml -Dbasedir=`pwd` -D$rk_name.home=$RK_HOME"
55
56#pass on the arguments
57while [ "$1" != "" ]; do
58
59 if [ "$1" == "-help" ]; then
60 show_help
61 exit
62 elif [ "$1" == "-cp" ]; then
63 echo $CLASSPATH
64 exit
65 else
66 toexec="$toexec $1"
67 shift
68 fi
69
70done
Note: See TracBrowser for help on using the repository browser.