--- projects/cms/source/server/uk/org/iscream/cms/server/client/WebFeeder.java 2001/03/14 23:25:29 1.7 +++ projects/cms/source/server/uk/org/iscream/cms/server/client/WebFeeder.java 2001/03/15 03:26:43 1.8 @@ -11,7 +11,7 @@ import java.io.*; * Provides a feed to the webpage system. * * @author $Author: tdb $ - * @version $Id: WebFeeder.java,v 1.7 2001/03/14 23:25:29 tdb Exp $ + * @version $Id: WebFeeder.java,v 1.8 2001/03/15 03:26:43 tdb Exp $ */ public class WebFeeder { @@ -20,7 +20,7 @@ public class WebFeeder { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.7 $"; + public static final String REVISION = "$Revision: 1.8 $"; //---STATIC METHODS--- @@ -39,6 +39,8 @@ public class WebFeeder { private WebFeeder() { // do something, or nothing.. but must be private + // need to clean up all the alerts + // don't need to cleanup latest data } //---PUBLIC METHODS--- @@ -134,7 +136,7 @@ public class WebFeeder { String hostname = alert.getSource(); // set paths String destDir = rootPath+"/"+alertSubDir+"/"+hostname; - String destFile = destDir+"/"+alertFileName; + String destFile = destDir+"/"+alertFileName+"."+String.valueOf(alert.getInitialAlertTime()); // try to create directory File outDir = new File(destDir); if(!outDir.exists()) { @@ -160,7 +162,7 @@ public class WebFeeder { if(outFile.canWrite()) { PrintWriter out; try { - out = new PrintWriter(new FileWriter(outFile.getPath(), true)); + out = new PrintWriter(new FileWriter(outFile)); out.println(data); out.close(); } catch (IOException e) {