logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j/src/java/org/apache/log4j/chainsaw/help HelpManager.java
Date Thu, 08 Jan 2004 01:38:38 GMT
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


Mime
View raw message