Improvements to the modeler.bat file

From: Mike Kienenberger (
Date: Wed Feb 18 2004 - 11:31:12 EST

  • Next message: Tore Halset: "Collections.sort() on a toMany relationship"

    Mike Kienenberger <> wrote:
    > Andrus Adamchik <> wrote:
    > > Somehow I am not surprised that spaces in the path can cause problems
    > > on Windows. I am no .bat guru either, and would gladly apply patches if
    > > anyone submits them.
    > I'll try to take a look at this when I get a chance. Probably just needs
    > some quotation marks.

    Ok. My setup is a bit non-standard to start with (german xp cmd shell
    running under 2000, only the cvs version of cayenne), but I think this is
    the only change that's needed.

    start "modeler" "%JAVACMD%" -cp "%CLASSPATH%;%DEFAULT_CLASSPATH%"
    %MAIN_CLASS% %*

    As far as I can tell, adding quotes around SET commands embeds them into the
    variable, so you don't want to do that.

    The start command appears to treat the first quoted string it finds as a
    window title, so in order to quote the program name, you have to provide a
    window title (I chose "modeler"). Once you quote the program name and
    classpath, I think everything should work. It seems to work on my system.

    I think it probably needs testing by a couple other people before it should
    be declared good. I don't know how it'll work on Windows 95/98/ME systems
    as I don't currently have any to test on.

    [As for why you'd want the XP command shell (german or otherwise), it
    removes the 2000 character command length restriction which makes WebObjects
    a lot easier to use.]

    This archive was generated by hypermail 2.0.0 : Wed Feb 18 2004 - 11:31:11 EST