Re: [eclipsedarcs-develop] Fix for Flyspray #11
Status: Alpha
Brought to you by:
radoslawg
|
From: <rad...@gm...> - 2007-03-18 10:21:29
|
Hi, > > So I assume this different kind of magic. > > > > Invocation from command line gives: > > > > $ darcs record > --repodir=/home/radekg/private/runtime-EclipseApplication/TestProject > > --all --patch-name=Name with space --skip-long-comment aaaaaaa.java > > > > Recording changes in "aaaaaaa.java": > > > > Non existent files or directories: "space" "with" > Strange. So this actually has to do with the difference between the > invocation from the shell and the invocation from the Java process. > > I would have to check this, but don't we call Runtime.exec() with a string > array instead of just one single string? That would also explain why 'Name > with space' is treated as a single string and not parsed into different > arguments, if we assume that our array looks like this: > > [ ..., "--all", "--patch-name=Name with space", "--skip-long-comment", ... ] Bingo this time. :) Cheers, Radek. |