From: Jerry A. <jer...@ya...> - 2012-02-21 17:56:52
|
On Windows using C# you can use Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments). I believe this is the Java equivalent. http://stackoverflow.com/questions/1503555/how-to-find-my-documents-folder ________________________________ From: Stefan Frey <ste...@we...> To: an 18xx game <rai...@li...> Sent: Tuesday, February 21, 2012 9:07 AM Subject: [Rails-devel] Rails configuration All: I am currently refactoring the configuration methods a little bit to make them easier to follow (the core of that code dates back to Colossus). What would you think about adding a default directory to store rails application data and settings. Something like ~/.rails on a Unix system. The major advantage would be that the settings would survive new releases without providing an installer that searches for the application data. However I do not know what is the current handling for application data on a Windows system? Is there a unique place or a way to retrieve them from Java or (better) the batch file? As we currently use batch/shell files already I would prefer to have command line option which allows users to change that directory easily if they do not want the storage option chosen by default. Another question is how does this work on a Mac system? As the Mac OS is built on a BSD I would assume that the Unix way of things should work, but is that true? Other opinions and recommendations? Thanks, Stefan ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |