bloritsch 01/10/25 10:58:13 Modified: src/org/apache/cocoon Main.java Log: Optimize critical path Revision Changes Path 1.28 +7 -7 xml-cocoon2/src/org/apache/cocoon/Main.java Index: Main.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/Main.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- Main.java 2001/10/23 11:40:24 1.27 +++ Main.java 2001/10/25 17:58:13 1.28 @@ -35,7 +35,7 @@ * Command line entry point. * * @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a> - * @version CVS $Revision: 1.27 $ $Date: 2001/10/23 11:40:24 $ + * @version CVS $Revision: 1.28 $ $Date: 2001/10/25 17:58:13 $ */ public class Main { @@ -337,7 +337,7 @@ if (f.canRead()) return f; log.debug("Trying configuration file at: /usr/local/etc/" + Constants.DEFAULT_CONF_FILE); - f = new File("/usr/local/etc/" + Constants.DEFAULT_CONF_FILE); + f = new File("/usr/local/etc/", Constants.DEFAULT_CONF_FILE); if (f.canRead()) return f; log.error("Could not find the configuration file."); @@ -586,11 +586,11 @@ private void resourceUnavailable(File file) throws IOException { PrintStream out = new PrintStream(new BufferedOutputStream(new FileOutputStream(file))); out.println( - "<html><head><title>Page Not Available</title></head>" + - "<body><h1 align=\"center\">Page Not Available</h1>" + - "<body><p align=\"center\">Generated by " + - Constants.COMPLETE_NAME + - "</p></body></html>" + new StringBuffer("<html><head><title>Page Not Available</title></head>") + .append("<body><h1 align=\"center\">Page Not Available</h1>") + .append("<body><p align=\"center\">Generated by ") + .append(Constants.COMPLETE_NAME) + .append("</p></body></html>") ); out.close(); }
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]