Issue Details (XML | Word | Printable)

Key: JRUBY-1181
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Thomas E Enebo
Reporter: Henrik Mohr
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

Rake batch file for Windows environments

Created: 02/Jul/07 04:33 AM   Updated: 12/Jan/09 04:27 PM   Resolved: 02/Dec/08 09:17 AM
Return to search
Component/s: Miscellaneous
Affects Version/s: JRuby 1.0.0
Fix Version/s: JRuby 1.1.6

Time Tracking:
Not Specified

File Attachments: 1. File rails.bat (0.0 kB)
2. File rake.bat (0.0 kB)
3. File rake.cmd (0.0 kB)

Environment: JRUBY 1.0, Windows XP SP2, Java 6.0 u1


 Description  « Hide

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.



Changshin Lee added a comment - 02/Jul/07 04:46 AM

A batch file for Rails as well.
Thanks.


Henrik Mohr added a comment - 02/Jul/07 05:04 AM

Slightly enhanced version of the rake batch file


Henrik Mohr added a comment - 02/Jul/07 05:05 AM

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


Don Coleman added a comment - 25/Jul/07 01:09 AM

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


Nick Sieger added a comment - 16/Aug/07 09:52 PM

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.


Stefan Wille added a comment - 20/Nov/08 09:37 AM

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?


Charles Oliver Nutter added a comment - 01/Dec/08 02:54 AM

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).....


Charles Oliver Nutter added a comment - 01/Dec/08 02:55 AM

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


Thomas E Enebo added a comment - 02/Dec/08 09:17 AM

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


Thomas E Enebo added a comment - 02/Dec/08 09:17 AM

whoops..see last comment