DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30546>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30546 XML Logger does not encode newlines in attributes ------- Additional Comments From [EMAIL PROTECTED] 2004-10-26 15:48 ------- however: http://www.w3.org/TR/1998/REC-xml-19980210#AVNormalize says that all white space gets normalized to space characters. (except the cr nl sequence, which gets normalized to a single space). I did some experimenting with the message attribute of echo. <echo message="a message on two lines"/> outputs a message on one line (with a space between the "message" and "on"). However, <echo message="a message
on two lines"/> outputs a message on two lines. Reading the standard, I am not too sure that this is the correct thing to do. It looks like the stack information should be in CDATA text. This does seem to be the case: <build error="/home/preilly/learning/a/antlib/error/build.xml:5: srcdir attribute must be set!" time="0 seconds"> <task location="/home/preilly/learning/a/antlib/error/antlib.xml:2: " name="" time="0 seconds"></task> <task location="/home/preilly/learning/a/antlib/error/build.xml:3: " name="typedef" time="0 seconds"></task> <target name="build" time="0 seconds"> <task location="/home/preilly/learning/a/antlib/error/build.xml:5: " name="javac2" time="0 seconds"></task> </target> <stacktrace><![CDATA[/home/preilly/learning/a/antlib/error/build.xml:5: srcdir attribute must be set! at org.apache.tools.ant.taskdefs.Javac.checkParameters(Javac.java:893) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:738) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:95) at org.apache.tools.ant.Task.perform(Task.java:366) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1244) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:36) at org.apache.tools.ant.Project.executeTargets(Project.java:1095) at org.apache.tools.ant.Main.runBuild(Main.java:673) at org.apache.tools.ant.Main.startAnt(Main.java:188) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:229) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) ]]></stacktrace> </build> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]