Re: Can the javac message format be changed?
I don't think it's possible since maven just relies on the current JDK being used, and so the output is just the one issued by that JDK. I guess it could try and parse the output, but I'm not sure this would be a good idea. Maybe you could try and explain a bit more why you want to do. This way, you might be adviced on filing something in the tracker or not. Cheers. PS : posting offline. So this answer might be irrelevant when it'll arrive. If so, please excuse me. Le 14 juillet 2010 03:37:38 UTC+2, Jan T. Kim a écrit : > Dear All, > > is it possiible to change the format of error messages to that which the > standalone javac compiler produces? I haven't found anything on that in > the compiler:compile at maven.apache.org. > > Sorry if this is a silly question, I'd verny much value pointers to the > relevant documentation. > > Best regards, Jan > -- > +- Jan T. Kim ---+ > | email: j@uea.ac.uk | > | WWW: http://www.cmp.uea.ac.uk/people/jtk | > *-=< hierarchical systems are for files, not for humans >=-* > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Baptiste MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Can the javac message format be changed?
> separated from the file name by ":[". So as a thought, perhaps a future > version of maven could change the format to contain a fixed, regexp-friendly > string -- or perhaps error message formats could become configurable via To increase the possibility this might actually happen some day: 1. File a bug report in JIRA against MNG project 2. Attach a patch that provides the suggested functionality 3. Attach a test (or more than 1) that demonstrates the functionality Simply talking about this on the Maven Users list is not going to get anything done in this regard. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can the javac message format be changed?
On Wed, Jul 14, 2010 at 02:56:33PM +0100, Wayne Fay wrote: > > is it possiible to change the format of error messages to that which the > > standalone javac compiler produces? I haven't found anything on that in > > the compiler:compile at maven.apache.org. > > If you can find a way to do this with plain old Javac from the command > line, then you can probably make it work in Maven. > > What is the command line equivalent "javac blah.java" that you > want to utilize? the background of my question is that I'd like emacs to be able of jumping to the source that caused the error. That has stopped working for me since switching to Maven. However, I've now managed to restorE that to a reasonable extent (I hope) by adding an additional regular expression to the list that emacs uses for parsing compilation errors by adding (setq compilation-error-regexp-alist (cons '("^\\(\\[WARNING\\] \\)?\\(/[^:]+\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\]" 2 3 4) compilation-error-regexp-alist)) to my ~/.emacs startup file. The maven compilation error messages don't contain any constant text that one could easily use for matching with a regular expression, my regexp above just relies on error messages starting with a forward slash (as part of the absolute path to the source file) and that the line number is separated from the file name by ":[". So as a thought, perhaps a future version of maven could change the format to contain a fixed, regexp-friendly string -- or perhaps error message formats could become configurable via pom settings. Best regards, Jan -- +- Jan T. Kim ---+ | email: j@uea.ac.uk | | WWW: http://www.cmp.uea.ac.uk/people/jtk | *-=< hierarchical systems are for files, not for humans >=-* - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can the javac message format be changed?
> is it possiible to change the format of error messages to that which the > standalone javac compiler produces? I haven't found anything on that in > the compiler:compile at maven.apache.org. If you can find a way to do this with plain old Javac from the command line, then you can probably make it work in Maven. What is the command line equivalent "javac blah.java" that you want to utilize? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Can the javac message format be changed?
Dear All, is it possiible to change the format of error messages to that which the standalone javac compiler produces? I haven't found anything on that in the compiler:compile at maven.apache.org. Sorry if this is a silly question, I'd verny much value pointers to the relevant documentation. Best regards, Jan -- +- Jan T. Kim ---+ | email: j@uea.ac.uk | | WWW: http://www.cmp.uea.ac.uk/people/jtk | *-=< hierarchical systems are for files, not for humans >=-* - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org