You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flume.apache.org by es...@apache.org on 2011/08/26 22:35:49 UTC
svn commit: r1162242 - /incubator/flume/branches/flume-728/bin/flume-ng
Author: esammer
Date: Fri Aug 26 20:35:48 2011
New Revision: 1162242
URL: http://svn.apache.org/viewvc?rev=1162242&view=rev
Log:
- Pass along unknown options to the underlying java application.
Modified:
incubator/flume/branches/flume-728/bin/flume-ng
Modified: incubator/flume/branches/flume-728/bin/flume-ng
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/bin/flume-ng?rev=1162242&r1=1162241&r2=1162242&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/bin/flume-ng (original)
+++ incubator/flume/branches/flume-728/bin/flume-ng Fri Aug 26 20:35:48 2011
@@ -56,7 +56,7 @@ run_node() {
[ -n "$FLUME_CLASSPATH" ] || error "Flume classpath is not set! Use flume-env.sh or --classpath <cp>." 1
[ -n "$opt_conf" ] || warn "No configuration directory set! Use --conf <dir> to override." 1
- $JAVA $JAVA_OPTS -cp $final_cp $FLUME_NODE_CLASS
+ $JAVA $JAVA_OPTS -cp $final_cp $FLUME_NODE_CLASS $*
}
validate_env() {
@@ -108,7 +108,7 @@ while [ -n "$*" ] ; do
shift
;;
*)
- warn "Unknown option '$arg'"
+ args="$args $arg"
;;
esac
done
@@ -116,6 +116,6 @@ done
if [ -n "$opt_help" ] ; then
display_help
elif [ -n "$opt_node" ] ; then
- run_node
+ run_node $args
fi