Wrap the args in quotes before sending them off to java.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@617 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -106,6 +106,7 @@ for ($i = 0; $i < @ARGV; $i++) {
|
|||||||
# log the pid file if requested to do so
|
# log the pid file if requested to do so
|
||||||
print `echo $$ > $pid_file` if (defined $pid_file);
|
print `echo $$ > $pid_file` if (defined $pid_file);
|
||||||
|
|
||||||
my $cmd = "$java -mx256M $classpath $serverroot $basedir " . join(" ", @ARGV);
|
my $cmd = "$java -mx256M $classpath $serverroot $basedir \"" .
|
||||||
|
join("\" \"", @ARGV) . "\"";
|
||||||
# print "$cmd\n";
|
# print "$cmd\n";
|
||||||
exec($cmd);
|
exec($cmd);
|
||||||
|
|||||||
Reference in New Issue
Block a user