From: <ap...@vh...> - 2006-05-02 14:20:55
|
Author: apevec Date: 2006-05-02 16:17:55 +0200 (Tue, 02 May 2006) New Revision: 1129 Modified: trunk/tools/tools/bin/ccm-run Log: quote arguments properly, they might include spaces Modified: trunk/tools/tools/bin/ccm-run =================================================================== --- trunk/tools/tools/bin/ccm-run 2006-04-30 13:40:54 UTC (rev 1128) +++ trunk/tools/tools/bin/ccm-run 2006-05-02 14:17:55 UTC (rev 1129) @@ -82,7 +82,10 @@ CCM::Util::error("syntax: ccm-run [--verbose] <class>"); } -my $command = $runtime->getJavaCommand() . " -cp $classpath $java_opts $sysproperties @ARGV"; +my $command = $runtime->getJavaCommand() . " -cp $classpath $java_opts $sysproperties"; +foreach $a (@ARGV) { + $command .= " \"$a\""; +} if ($verbose) { print ((join "\n", (CCM::Util::splitpath($classpath))) . "\n"); print "$command\n"; |