Author: adrianc
Date: Sat Mar 19 00:12:23 2011
New Revision: 1083110
URL:
http://svn.apache.org/viewvc?rev=1083110&view=revLog:
Fixed a bug in Start.java where the command line arguments were not passed to the loaders if there was only one argument.
Modified:
ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java
Modified: ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java?rev=1083110&r1=1083109&r2=1083110&view=diff==============================================================================
--- ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java (original)
+++ ofbiz/trunk/framework/start/src/org/ofbiz/base/start/Start.java Sat Mar 19 00:12:23 2011
@@ -77,9 +77,9 @@ public class Start implements Runnable {
config.readConfig(cfgFile);
// parse the startup arguments
- if (args.length > 1) {
- this.loaderArgs = new String[args.length - 1];
- System.arraycopy(args, 1, this.loaderArgs, 0, this.loaderArgs.length);
+ if (args.length > 0) {
+ this.loaderArgs = new String[args.length];
+ System.arraycopy(args, 0, this.loaderArgs, 0, this.loaderArgs.length);
}
if (fullInit) {