JRuby

Rake batch file for Windows environments

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.0.0
  • Fix Version/s: JRuby 1.1.6
  • Component/s: Miscellaneous
  • Labels:
    None
  • Environment:
    JRUBY 1.0, Windows XP SP2, Java 6.0 u1
  • Number of attachments :
    3

Description

A batch file for Rake, makes it much easier to run rake tasks from command lines, for windows users.
A working (very simple) batch file is attached to this issue.

  1. rails.bat
    02/Jul/07 5:05 AM
    0.0 kB
    Henrik Mohr
  2. rake.bat
    02/Jul/07 5:04 AM
    0.0 kB
    Henrik Mohr
  3. rake.cmd
    25/Jul/07 1:09 AM
    0.0 kB
    Don Coleman

Activity

Hide
Changshin Lee added a comment -

A batch file for Rails as well.
Thanks.

Show
Changshin Lee added a comment - A batch file for Rails as well. Thanks.
Hide
Henrik Mohr added a comment -

Slightly enhanced version of the rake batch file

Show
Henrik Mohr added a comment - Slightly enhanced version of the rake batch file
Hide
Henrik Mohr added a comment -

a Rails batch file for Windows users, as suggested by Changshin Lee

Show
Henrik Mohr added a comment - a Rails batch file for Windows users, as suggested by Changshin Lee
Hide
Don Coleman added a comment -

rake.cmd
Passes multiple arguments to Rake
Doesn't require JRUBY_HOME environment variable

Show
Don Coleman added a comment - rake.cmd Passes multiple arguments to Rake Doesn't require JRUBY_HOME environment variable
Hide
Nick Sieger added a comment -

Thanks for the bat files. Ok, here's the thing. Everyone is going to want to have their favorite batch file included, so instead, I made a builtin command to generate them for you. Please check out the 1.0 branch and try it out:

jruby -S generate_bat_stubs

This will look for any gem stubs that don't have corresponding .bat stubs and create them.

Show
Nick Sieger added a comment - Thanks for the bat files. Ok, here's the thing. Everyone is going to want to have their favorite batch file included, so instead, I made a builtin command to generate them for you. Please check out the 1.0 branch and try it out:
jruby -S generate_bat_stubs
This will look for any gem stubs that don't have corresponding .bat stubs and create them.
Hide
Stefan Wille added a comment -

This has cause quite some confusion for us. Even in JRuby 1.1.5, rake.bat is missing. Would it be possible to run this command automatically during the build?

Show
Stefan Wille added a comment - This has cause quite some confusion for us. Even in JRuby 1.1.5, rake.bat is missing. Would it be possible to run this command automatically during the build?
Hide
Charles Oliver Nutter added a comment -

Reopening because we should probably make sure we're shipping .bat files for the gems we install (and should figure out a way to get the gems to install .bat files too).....

Show
Charles Oliver Nutter added a comment - Reopening because we should probably make sure we're shipping .bat files for the gems we install (and should figure out a way to get the gems to install .bat files too).....
Hide
Charles Oliver Nutter added a comment -

Yes yes, another bug marked for 1.1.6. But it needs to be done to support windows, so I'm hoping, hoping we can do something

Show
Charles Oliver Nutter added a comment - Yes yes, another bug marked for 1.1.6. But it needs to be done to support windows, so I'm hoping, hoping we can do something
Hide
Thomas E Enebo added a comment -

For built in shipped gems like rake and rspec I added generate_bat_stubs to the end of maybe_install_gems. Now we should generate bat files. Too bad we cannot put post install hook into gems itself for this.

Fix in commit 8243

Show
Thomas E Enebo added a comment - For built in shipped gems like rake and rspec I added generate_bat_stubs to the end of maybe_install_gems. Now we should generate bat files. Too bad we cannot put post install hook into gems itself for this. Fix in commit 8243
Hide
Thomas E Enebo added a comment -

whoops..see last comment

Show
Thomas E Enebo added a comment - whoops..see last comment

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: