Title: RE: Execute task: need info

> -----Original Message-----
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 16, 2001 5:50 PM
>
> We are using Runtime.exec(String[]) to launch the external
> process. When doing so, command line arguments have already been split
> into separate items and you don't need to quote them anymore - so much
> much for the theory. Sun's JDK 1.1 on Windows has bug here, so quoting
> is necessary.
>
> Using quotes regardless is going to cause havoc (at least on Unix
> systems) as these will not be stripped by the shell and become part of
> the actual arguments.
> Am I making sense?

Yes, actually I was confused, I thought that Java was not dispatching correctly the arguments with spaces. I was wrong.

However I'm still having problems in our integration platform (Solaris, Sun JDK1.2.2-006) while this works perfectly on Windows NT. I have NO idea why. If I use <javadoc windowtitle="A Long Title" .../>

It will display (NO quotes. I have NO idea why, as it should be the case why looking at the CommandLine code)
[javadoc] args: javadoc -windowstitle A Long Title
[...]
some error saying it does not found A, Long, and Title

Doing this: <javadoc windowtitle="&34;A Long Title&34;" .../>
will display (as expected)
[javadoc] args: javadoc -windowstitle "A Long Title"

but will fail for the same reasons.

So we are forced to use <javadoc windowtitle="A&amp;nbsp;Long&amp;nbsp;Title"

I have no development platform on this machine so this is kind of problematic to debug, but will try to know what is going wrong here.

--
 St�phane Bailliez
 Software Engineer, Paris - France
 iMediation - http://www.imediation.com
 Disclaimer: All the opinions expressed above are mine and not those from my company.

Reply via email to