I develop ANT tasks.
One of these tasks prints a messages to a log, which , in turn, are shown in message pane.
Some messages can contain full path to file with line position in this file. Processed by a task.
I saw that javac ANT task also prints messages which can bee seen in messages pane.
Using output of javac one can get to a source file by clicking on a message that points to an error.
I tried doing the same but I did not find an info about how to. Then I tried formating messages as follows
/user/someparts_of_path_to_file/file.name + ":" + lineNumber + ": " + shortMessage;
using this format I could get to file position.
Unfortunalely that worked only in MacOs. Executing the same task on Windows prints messages as well as on MacOs but messages with code position are not formated as links
and therefore clicking them gives no result.
My question is - are there any rules or reliable way to format messages that point to a source code which,in turn, allows a user get to the file at given position ?
In both cases Idea 14 is used (Community edition for Windows and MacOs)
I will provide more info should it be required.