Last change
on this file since 16773 was 16773, checked in by oranfry, 16 years ago |
export classpath so it is seen by any
|
-
Property svn:executable
set to
*
|
File size:
1.5 KB
|
Rev | Line | |
---|
[16540] | 1 | #pre checks
|
---|
| 2 |
|
---|
| 3 | if [ "$rk_name" == "" ]; then
|
---|
| 4 | echo "rk_name not set";
|
---|
| 5 | exit;
|
---|
| 6 | elif [ "$RK_HOME" == "" ]; then
|
---|
| 7 | echo "RK_HOME not set";
|
---|
| 8 | exit
|
---|
| 9 | fi
|
---|
| 10 |
|
---|
| 11 | function 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
|
---|
[16732] | 23 | echo " -to <target>"
|
---|
| 24 | echo " stop execution just before the target with the given target address"
|
---|
| 25 | echo
|
---|
| 26 | echo
|
---|
[16540] | 27 | echo " -descend <target>"
|
---|
[16732] | 28 | echo " execute only the target with the given address, including subtargets"
|
---|
[16540] | 29 | echo
|
---|
| 30 | echo " -cp"
|
---|
| 31 | echo " show the classpath being used by $rk_name"
|
---|
| 32 |
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | #work out the classpath
|
---|
| 36 | CLASSPATH=$JAVA_HOME/lib/tools.jar
|
---|
| 37 | for file in $RK_HOME/lib/*.jar; do
|
---|
| 38 | CLASSPATH=$CLASSPATH:$file
|
---|
| 39 | done
|
---|
| 40 | for file in $RK_HOME/packages/ant/lib/*.jar; do
|
---|
| 41 | CLASSPATH=$CLASSPATH:$file
|
---|
| 42 | done
|
---|
| 43 | for file in $RK_HOME/packages/ant-installer/lib/*.jar; do
|
---|
| 44 | CLASSPATH=$CLASSPATH:$file
|
---|
| 45 | done
|
---|
| 46 | CLASSPATH=$CLASSPATH:$RK_HOME/packages/ant-installer/classes
|
---|
| 47 |
|
---|
[16773] | 48 | export CLASSPATH
|
---|
| 49 |
|
---|
[16732] | 50 | #set ANT_HOME
|
---|
| 51 | export ANT_HOME=$RK_HOME/packages/ant
|
---|
| 52 |
|
---|
[16540] | 53 | #create the command
|
---|
[16732] | 54 | toexec="$ANT_HOME/bin/ant -addressing -lib `pwd`/installer/classes -f $RK_HOME/ant-scripts/build.xml -Dbasedir=`pwd` -D$rk_name.home=$RK_HOME"
|
---|
[16540] | 55 |
|
---|
| 56 | #pass on the arguments
|
---|
| 57 | while [ "$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 |
|
---|
| 70 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.