From: Jim B. <jim...@ya...> - 2009-11-07 17:27:16
|
I agree that that using "the current directory" would work well- eventually I just moved my dropbox so that it lived where Rails insisted on setting the working directory. :-) Also, Chris asked me about that java user.dir setting- it turns out it doesn't work on windows either. Here's my mea culpa (indirectly): > > Doh! Sorry, gave you a bum steer on user.dir. That's a > java system property that I suggested trying w/out actually > trying it out in rails myself. Does not work for me in windows > either. > > On reflection, there's no real reason to think that should > have worked. rails starts that load dialog out in My Documents > even though I am starting rails from somewhere else, so the > path rails uses for that dialog is plainly not based on user.dir. > > If this was going to be added as a feature to rails, > it would probably be more appropriate for them to read > a property defined specifically for rails, rather than > trying to leverage user.dir. user.dir defaults to the > directory that java was started from and probably should > not be overwritten anyway. > > Sorry I made you guys waste time on that, should have tried > it out before making the suggestion. :-( > Which brings us all to the same conclusions on that, I think! Finally, chris wrote > Is there any way to specify "the current directory" in a Mac .command file? Well- depending on what you mean- it's a unix command shell, so you could try `pwd` (inside single-backquotes, just like that). Thanks Erik and everyone for the work and thoughts on some pragmatic tweaks/options here. regards, - jim On Nov 7, 2009, at 3:41 AM, Chris Shaffer wrote: > Sorry to spam the list on this - next time I'll do (most) of my > testing and then report back. > > So, I was able to rename the rails.sh file to rails.command, use > chmod+x and then execute it by double clicking in the Mac > interface. It couldn't find the jar file. If I edit the file to > have the fully qualified path to the jar file, it works but > obviously that won't translate to my other Mac, where my home > directory has a different path. Is there any way to specify "the > current directory" in a Mac .command file? > > Again, defaulting to the current directory would be a great solution > for this. > > -- > Chris > > Please consider the environment before printing this e-mail. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |