apt ant task error output [message #242847] |
Fri, 13 April 2007 08:55  |
Eclipse User |
|
|
|
Originally posted by: bbrady.broad.mit.edu
Hi,
The apt ant task from org.eclipse.jdt.apt.core.build.JdtApt outputs
coarse-grained error messages, simple "(Found X errors)", like that
shown below:
compile:
[apt] Building workspace
[apt] Building: /TestAntBuild
[apt] Invoking Java Builder on /TestAntBuild.
[apt] Cleaning output folder for TestAntBuild
[apt] Build done
[apt] Building: /TestAntBuild
[apt] Invoking Java Builder on /TestAntBuild.
[apt] Preparing to build TestAntBuild
[apt] Cleaning output folder for TestAntBuild
[apt] Analyzing sources
[apt] Compiling TestAntBuild
[apt] (Found 1 error) Compiling TestAntBuild
[apt] (Found 1 error) Build done
Does anyone know if it is possible to get apt to show more details
somehow? I didn't see how from the javadocs, but maybe I'm missing
something. Detailed error output like that from the ant javac task
would be preferred:
compile:
[javac] Compiling 1 source file to
C:\Local\Java\workspace_test\TestAntBuild
[javac] ----------
[javac] 1. ERROR in
C:\Local\Java\workspace_test\TestAntBuild\Test.java (at line 12)
[javac] asdfasdfasdfasdf;
[javac] ^^^^^^^^^^^^^^^^
[javac] Syntax error, insert "AssignmentOperator Expression" to
complete Expression
[javac] ----------
[javac] 1 problem (1 error)
Thanks,
Bob
|
|
|
|
|
|
|
|
|
Re: apt ant task error output [message #242889 is a reply to message #242866] |
Fri, 13 April 2007 19:43  |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"Jeff Care" <carej@us.ibm.com> wrote in message
news:evocko$2fl$1@build.eclipse.org...
> Bob Brady wrote:
>
>> Thanks, Jeff, running ant with the -debug switch gives the error details
>> I was looking for. The apt task doesn't support debug="on".
>
> Sounds like a good enhancement request for the APT task: IMO you should
> have to run Ant in debug mode to get these details (mostly because you get
> deluged with the debug output of every other task).
Just to be clear here, the real enhancement request here should be for the
Platform to create an ant task to run Eclipse headless builds, so that you
don't have to use the APT task.
There may be some confusion between "apt" and "ant" going on. The APT task
was written specifically so as to permit people to run builds that required
Java 5 annotation processing: in the Sun JDK, apt is a separate command-line
tool, but in Eclipse there is no equivalent, so it's hard to create
command-line build scripts for projects if you have annotation processing
enabled.
Although APT is near and dear to my heart, I worry a little when I see it
taking on broad responsibilities like this :-) It's just a wee young
thing...
|
|
|
Powered by
FUDForum. Page generated in 0.03289 seconds