Java runtime and cvs command

Hello,

I want use with java a cvs command which is:

cvs -d /home/ref checkout -d /home/me/workspace -D "2004-07-13 08:55:07 UTC" mymodule

I store this command on a String

String cmd;

cmd = "cvs -d /home/ref checkout -d /home/me/workspace -D \"2004-07-13 08:55:07 UTC\" mymodule"

and I exec:

Runtime r = Runtime.getruntime();

r.exec(cmd);

but the answer is:

cvs [checkout aborted]: Can't parse date/time: `"2004-07-13'

If I display cmd and I paste it on a terminal, it's good, but in java program not!!!!

Can you explain me why? It's a problem of encoding characters in java String?

Thanks

[679 byte] By [pierre_La] at [2007-11-26 18:40:20]
# 1
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
masijade.a at 2007-7-9 6:14:22 > top of Java-index,Java Essentials,Java Programming...
# 2
ThanksI have use String[] with exec and it's run.
pierre_La at 2007-7-9 6:14:22 > top of Java-index,Java Essentials,Java Programming...