logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/chainsaw FileLoadAction.java
Date Wed, 07 Jan 2004 21:26:30 GMT
sdeboy      2004/01/07 13:26:30

  Modified:    src/java/org/apache/log4j/chainsaw FileLoadAction.java
  Log:
  changed source tab for xml-loaded files - properties weren't being saved since there was
a ':' in the file name
  
  Revision  Changes    Path
  1.7       +3 -2      logging-log4j/src/java/org/apache/log4j/chainsaw/FileLoadAction.java
  
  Index: FileLoadAction.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/FileLoadAction.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FileLoadAction.java	16 Dec 2003 00:45:26 -0000	1.6
  +++ FileLoadAction.java	7 Jan 2004 21:26:30 -0000	1.7
  @@ -163,7 +163,7 @@
   
         try {
           url = selectedFile.toURL();
  -        name = "localhost:" + selectedFile.getName();
  +        name = selectedFile.getName();
         } catch (Exception ex) {
           // TODO: handle exception
         }
  @@ -185,7 +185,8 @@
   
       if (url != null) {
         Map additionalProperties = new HashMap();
  -      additionalProperties.put(Constants.HOSTNAME_KEY, name);
  +      additionalProperties.put(Constants.HOSTNAME_KEY, "file");
  +      additionalProperties.put(Constants.APPLICATION_KEY, name);
         decoder.setAdditionalProperties(additionalProperties);
   
         final URL urlToUse = url;
  
  
  

---------------------------------------------------------------------
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