[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: Quoting problems


Hi Aaron,

Aaron Jackson wrote:
> I've notice a problem with being unable to quote %classpath% and %1 in
> JSPServlet.java.  I doubt anyone on a sane platform has noticed this, but I
> run a development platform on Win32 Apache w/ JServ.  The installed path
> includes a space (Program Files).  When a -classpath option is added to a
> compiler or when the name of the file is passed for compilation, the invoked
> system shell splits the command into multiple arguments.  The obvious
> solution is to just quote this, but I cant because the servlet would see
> "%classpath%" not %classpath%.  Also adding a space before and after dont
> work as the argument includes a for %1, is not accepted by all compilers
> (javac comes to mind) when that foreward space is there.
> 
> 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.

Regards, Vincent.