|
From: Teiniker E. <tei...@us...> - 2007-07-09 09:51:03
|
Update of /cvsroot/ccmtools/ccmtools/src/ccmtools/utils In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13681/src/ccmtools/utils Modified Files: ConfigurationLocator.java Log Message: Bugfix: added isWindows() method to handle path calculations. Index: ConfigurationLocator.java =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/ccmtools/utils/ConfigurationLocator.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ConfigurationLocator.java 10 Jan 2007 16:19:24 -0000 1.6 --- ConfigurationLocator.java 9 Jul 2007 09:50:52 -0000 1.7 *************** *** 179,181 **** --- 179,196 ---- } + + + /* + * System Properties + */ + + /** + * This method is used to determine if the tools are running on a Windows box. + * Usually, this information is important for calculating file paths and things + * like this. + */ + public boolean isWindows() + { + return System.getProperty("os.name").startsWith("Windows"); + } } |