[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: Quoting problems
>> Any chance we can just get %classpath% replacement. I'll gladly write
the
>> code and submit it if that's what's needed.
>
>I am currently in the process of rewriting that code, and one thing I
>could do is automatically place spaces around a parameter when it
>contains a space. I did not know that a shell was being invoked as part
>of the Runtime.exec() call, but I will investigate. In the meantime, if
>you can find out more about this, I'd be happy to hear about it.
You mean quotes, not spaces right? Wouldnt do it, quoting rules could be
funny depending on where you're running, plus see below.
Its quite probably that it doesnt call a subshell, rather that my
interpretation in
this case was wrong. Reading the documentation, it states that calls to
Runtime.exec(String[]) implies that there should be no parsing in the
runtime
as would be the case if it were just Runtime.exec(String).
I modified JSPCompiler.java to see if what it saw and sure enough, the args
were correct. This makes me think that the Win32 reference implementation
is not passing along the arguments. I wrote something to see what the input
args were and sure enough, the args from Runtime.exec() did not match those
going into the next parsing app.
I dont know what can be done here, I tried to get around the path by using
the
shortened 8 format names, but Apache decided it would be smart and expand
the names. So for now, its probably best for me to rename all the paths or
do a local modification to do the replacement.
-- Aaron