Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

"cannot open .log file" error with ECJ logging

Hello,

I'm running RTC 1.0. I have recently added JUnit and compilation logs as a contribution to my build results. It worked fine for the JUnit case by following the docs, however I'm stuck regarding the compilation logs contribution. Here's my problem.
I compiled my project with Eclipse JDT compiler and added the next compiler argument in the javac command so I can ask for the generation of a log:

compilerarg compiler="org.eclipse.jdt.core.JDTCompilerAdapter"

line="-warn:-unchecked -log ${compilation.dir}/logs/core-compilation-log.xml"


(Naturally I made sure before in my Ant file that directory "${compilation.dir}/logs" is created)
It works correctly when I run my Ant file within Eclipse (i.e. with an Ant run configuration), but when this file is launched through RTC BuildSystem, I get the next error on the javac command:

cannot open .log file: ../build-info/compilation/logs/core-compilation-log.xml


The message "cannot open .log file" is strange to me. The only .log file I'm aware of is the one within Eclipse metadata. I don't see why the Eclipse compiler would need to access such file. Basically, I don't understand where the problem could come from at that point. I've looked at RTC buildsystem install and I've seen an empty workspace directory. The .metadata directory contained no log file. I created an empty one... but it hasn't solved my problem (as I was expecting it to be honest). Any suggestions would be greatly appreciated :)

Thanks.

0 votes



2 answers

Permanent link
If you have not yet tried it, can you try to get compile publishing working
in the context of this example?

https://jazz.net/wiki/bin/view/Main/AntBuildCompileAndTest



---
Ryan Manwiller
Jazz Team

0 votes


Permanent link
Ok. I found the problem. The log file name given to ECJ was relative to the current directory but it seems it wants here an absolute path :-/

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 13 '08, 11:03 a.m.

Question was seen: 5,295 times

Last updated: Oct 13 '08, 11:03 a.m.

Confirmation Cancel Confirm