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:
mdb
2002-03-03 05:24:55 +00:00
parent aa3ce00ac8
commit bb29ba4bfd
+2 -1
View File
@@ -106,6 +106,7 @@ for ($i = 0; $i < @ARGV; $i++) {
# log the pid file if requested to do so
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";
exec($cmd);