BF [ 1726066 ] AdempiereMonitor shows the directories from the log dir

http://sourceforge.net/tracker/index.php?func=detail&aid=1726066&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2007-05-26 11:32:07 +00:00
parent 2ccfc2f5d9
commit 561ce058f3
1 changed files with 4 additions and 0 deletions

View File

@ -748,6 +748,10 @@ public class AdempiereMonitor extends HttpServlet
File[] logs = logDir.listFiles(); File[] logs = logDir.listFiles();
for (int i = 0; i < logs.length; i++) for (int i = 0; i < logs.length; i++)
{ {
// Skip if is not a file - teo_sarca [ 1726066 ]
if (!logs[i].isFile())
continue;
if (i != 0) if (i != 0)
p.addElement(" - "); p.addElement(" - ");
String fileName = logs[i].getAbsolutePath(); String fileName = logs[i].getAbsolutePath();