Regular expressions and Java/ANT **Please Help**
Posted: Tue Sep 10, 2002 9:58 pm
I can't figure out how to adapt the java compile tool reg expression to ANT. Note ANT is a build tool for Java.
The difference is in the outpt, and I'd like to adapt the reg expression to be able to jump to the file / line in this output. Below an example. As you notice, it is very simlar to the the java compile tool out put, basically it just inserts stuff at the beginning of the line:
>>>> Java compile output >>>>
C:\src\WWServlet.java:290: cannot resolve symbol
symbol : variable ServletSession
location: class com.webwarecorp.html.WWServlet
final ServletSession us = ServletSession.getSession(sessionID);
^
2 errors
Tool completed with exit code 1
<<< end Java compile output <<<<
>>>>ANT output >>>>
compile:
[javac] C:\src\WWServlet.java:290: invalid method declaration; return type required
[javac] public TreeNodeDelegsate(TreeDelegateBean treeDel, String name, String path, boolean bIsRoot) {
[javac] 1 error
BUILD FAILED
Tool completed successfully
<<< end ANT output <<<<
Please help!!!
Thanx,
John
The difference is in the outpt, and I'd like to adapt the reg expression to be able to jump to the file / line in this output. Below an example. As you notice, it is very simlar to the the java compile tool out put, basically it just inserts stuff at the beginning of the line:
>>>> Java compile output >>>>
C:\src\WWServlet.java:290: cannot resolve symbol
symbol : variable ServletSession
location: class com.webwarecorp.html.WWServlet
final ServletSession us = ServletSession.getSession(sessionID);
^
2 errors
Tool completed with exit code 1
<<< end Java compile output <<<<
>>>>ANT output >>>>
compile:
[javac] C:\src\WWServlet.java:290: invalid method declaration; return type required
[javac] public TreeNodeDelegsate(TreeDelegateBean treeDel, String name, String path, boolean bIsRoot) {
[javac] 1 error
BUILD FAILED
Tool completed successfully
<<< end ANT output <<<<
Please help!!!
Thanx,
John