You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by hb...@apache.org on 2001/04/21 23:27:43 UTC
cvs commit: jakarta-james/src/org/apache/james/nntpserver/repository NNTPSpooler.java NNTPUtil.java
hbedi 01/04/21 14:27:43
Modified: src/org/apache/james/nntpserver/repository NNTPSpooler.java
NNTPUtil.java
Log:
Split code into blocks.
Logger related changes. NNTP was doing too much logging. server.xml is
generated from assembly.xml
assembly.xml contains configuration information
MailStore does not use URLs. This was causing MalformedURLException.
Revision Changes Path
1.4 +3 -3 jakarta-james/src/org/apache/james/nntpserver/repository/NNTPSpooler.java
Index: NNTPSpooler.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/org/apache/james/nntpserver/repository/NNTPSpooler.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- NNTPSpooler.java 2001/04/19 04:06:57 1.3
+++ NNTPSpooler.java 2001/04/21 21:27:42 1.4
@@ -78,8 +78,8 @@
getLogger().debug("in spool thread");
while ( Thread.currentThread().isInterrupted() == false ) {
String[] list = spoolPath.list();
- getLogger().debug("Files to process: "+list.length);
- for ( int i = 0 ; i < list.length ; i++ )
+ for ( int i = 0 ; i < list.length ; i++ ) {
+ getLogger().debug("Files to process: "+list.length);
if ( lock.lock(list[i]) ) {
File f = new File(spoolPath,list[i]).getAbsoluteFile();
getLogger().debug("processing file: "+f.getAbsolutePath());
@@ -92,7 +92,7 @@
lock.unlock(list[i]);
}
}
- getLogger().debug(" Sleeping...");
+ }
// this is good for other non idle threads
try { Thread.currentThread().sleep(threadIdleTime);
} catch(InterruptedException ex) { }
1.3 +2 -0 jakarta-james/src/org/apache/james/nntpserver/repository/NNTPUtil.java
Index: NNTPUtil.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/org/apache/james/nntpserver/repository/NNTPUtil.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- NNTPUtil.java 2001/04/19 04:06:58 1.2
+++ NNTPUtil.java 2001/04/21 21:27:43 1.3
@@ -23,6 +23,8 @@
throws ConfigurationException
{
String str = configuration.getChild(child).getValue();
+ if ( str.toLowerCase().startsWith("file://") )
+ str = str.substring("file://".length());
File f = new File(str);
if ( f.exists() && f.isFile() )
throw new NNTPException("Expecting '"+f.getAbsolutePath()+"' directory");
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org