Hi All, Hope all is well! I've just upgraded Jikes on my Linux system to the latest release version 1.14. Attached is a patch with the changes I had to make to Jikes.java, to get compiler errors printed back into the logs correctly. Cheers, Marcus -- ..... ,,$$$$$$$$$, Marcus Crafter ;$' '$$$$: Computer Systems Engineer $: $$$$: Open Software Associates GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$, _/\ &&:' 60327 Frankfurt Germany ' /( &&& \_&&&&' Email : [EMAIL PROTECTED] &&&&. Business Hours : +49 69 9757 200 &&&&&&&: After Hours : +49 69 49086750
Index: Jikes.java =================================================================== RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/language/programming/java/Jikes.java,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 Jikes.java --- Jikes.java 2001/05/09 20:49:57 1.1.1.1 +++ Jikes.java 2001/06/28 13:30:55 @@ -176,7 +176,10 @@ // all other space-starting lines are one error while (true) { line = input.readLine(); - if ((line == null) || (line.charAt(0) != ' ')) break; + if (line.length() == 0) { + line = null; + break; + } buffer.append(line); buffer.append('\n'); } @@ -211,14 +214,19 @@ endline = Integer.parseInt(tokens.nextToken()); endcolumn = Integer.parseInt(tokens.nextToken()); } catch (Exception e) { - message = "Please make sure you have your JDK's rt.jar file in the classpath. Jikes needs it to opperate."; + message = "Please ensure you have your JDK's rt.jar listed in your +classpath. Jikes needs it to operate."; type="error"; getLogger().error(message, e); } - if (! "".equals(message)) { + if ("".equals(message)) { type = tokens.nextToken().trim().toLowerCase(); message = tokens.nextToken().trim(); + message += "\n"; + if (tokens.hasMoreTokens()) { + while (tokens.hasMoreTokens()) + message += tokens.nextToken(); + } } return new CompilerError(file, type.equals("error"), startline, startcolumn, endline, endcolumn, message);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]