From: <be...@us...> - 2009-06-02 15:15:16
|
Revision: 390 http://statsvn.svn.sourceforge.net/statsvn/?rev=390&view=rev Author: benoitx Date: 2009-06-02 15:15:15 +0000 (Tue, 02 Jun 2009) Log Message: ----------- Mentioning possible issues Modified Paths: -------------- trunk/statsvn/src/net/sf/statsvn/Main.java Modified: trunk/statsvn/src/net/sf/statsvn/Main.java =================================================================== --- trunk/statsvn/src/net/sf/statsvn/Main.java 2009-05-27 18:17:59 UTC (rev 389) +++ trunk/statsvn/src/net/sf/statsvn/Main.java 2009-06-02 15:15:15 UTC (rev 390) @@ -264,7 +264,11 @@ initLogManager(ConfigurationOptions.getLoggingProperties()); SvnConfigurationOptions.getTaskLogger().info( - "Parsing SVN log '" + ConfigurationOptions.getLogFileName() + "' exclude pattern '" + ConfigurationOptions.getExcludePattern() + "'"); + "Parsing SVN log '" + + ConfigurationOptions.getLogFileName() + + "'" + + (ConfigurationOptions.getExcludePattern() != null ? " exclude pattern '" + ConfigurationOptions.getExcludePattern() + "'" + : "No exclude pattern")); FileInputStream logFile = null; Builder builder = null; @@ -296,7 +300,7 @@ builder.clean(); builder = null; - + // make JFreeChart work on systems without GUI System.setProperty("java.awt.headless", "true"); @@ -329,8 +333,10 @@ private static void validate(final ReportConfig config) { if (config.getRepository() == null || config.getRepository().getRoot() == null || config.getRepository().getDirectories() == null) { - printErrorMessageAndExit("The repository object is not valid. Please check your settings." + System.getProperty("line.separator") - + "Is the log file empty? Do you run from a checked out directory? Do you have non-committed items?"); + String cr = System.getProperty("line.separator"); + printErrorMessageAndExit("The repository object is not valid. Please check your settings." + cr + "Possible reasons:" + cr + + "1/ Did you use the option -v to create the SVN log" + cr + "2/ Is the log file empty?" + cr + + "3/ Do you run from a checked out directory (you should)?" + cr + "4/ Do you have non-committed items?"); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |