You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ps...@apache.org on 2004/01/08 02:38:38 UTC

cvs commit: jakarta-log4j/src/java/org/apache/log4j/chainsaw/help HelpManager.java

psmith      2004/01/07 17:38:38

  Modified:    src/java/org/apache/log4j/chainsaw/help HelpManager.java
  Log:
  a small, somewhat temporary change to find local javadocs
  that have been generated with the 'ant javadoc' target.
  
  Revision  Changes    Path
  1.5       +7 -0      jakarta-log4j/src/java/org/apache/log4j/chainsaw/help/HelpManager.java
  
  Index: HelpManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/help/HelpManager.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HelpManager.java	23 Dec 2003 21:43:30 -0000	1.4
  +++ HelpManager.java	8 Jan 2004 01:38:38 -0000	1.5
  @@ -56,6 +56,7 @@
   import java.beans.PropertyChangeListener;
   import java.beans.PropertyChangeSupport;
   
  +import java.io.File;
   import java.net.URL;
   
   
  @@ -88,6 +89,12 @@
                       System.getProperty("log4j.chainsaw.localDocs"));
                   helpLocator.installLocator(new URL(
                           System.getProperty("log4j.chainsaw.localDocs")));
  +            }else if(new File("docs/api").exists()) {
  +            	File dir = new File("docs/api");
  +            	LogLog.info("Detected Local JavaDocs at " + dir.toString());
  +            	helpLocator.installLocator(dir.toURL());
  +            } else {
  +            	LogLog.warn("Could not find any local JavaDocs, you might want to consider running 'ant javadoc'. The release version will be able to access Javadocs from the Apache website.");
               }
           } catch (Exception e) {
               // TODO: handle exception
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org