Forum: JRuby running autotest

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
8d042b437b937deb92d0c51515785a19?d=identicon&s=25 Mark Volkmann (mvolkmann)
on 2009-05-08 19:52
(Received via mailing list)
I can't get autotest to work with JRuby under cygwin, so now I'm
trying in a Windows Command Prompt.
It's having trouble with a line like this:

jruby -e "%w[test/unit test/test_parser.rb].each { |f| require f }"

It says 'f' is not recognized as an internal or external command. Any
idea why it is trying to interpret that as a Windows command?

Mark Volkmann
5a579b3ae2e98ebcc09403f38a390216?d=identicon&s=25 Matt Burke (Guest)
on 2009-05-08 20:36
(Received via mailing list)
Probably |f| require f is being interpreted as "pipe to program 'f' and
then pipe to program 'require' with arg 'f }'." If you turn enough
echoing on in the .bat files, you should be able to find where the
problem is.

In jruby 1.1.3 (the version I have handy) it looks like _jrubyvmopts.bat
does this:

set _ARGS=%_ARGS:"=_D%

and that's where windows starts to think it needs to handle the | in the
-e string. You might be able resolve this by adding

set _ARGS=%_ARGS:|=_P%

before the line quoted earlier, and then unescaping it later.

Mark Volkmann wrote:
> Mark Volkmann

To unsubscribe from this list, please visit:
526d60de6472502bb570a9df2842b33b?d=identicon&s=25 Nick Sieger (Guest)
on 2009-05-08 20:55
(Received via mailing list)
Our windows batch files are admittedly hacky. We don't have a lot of
expertise in that area, so if you find something that works please
send us a patch!


On Friday, May 8, 2009, Matt Burke <> wrote:
> before the line quoted earlier, and then unescaping it later.
> ---

To unsubscribe from this list, please visit:
This topic is locked and can not be replied to.