Analyser.Analyseall() working

11 views
Skip to first unread message

Amit R Desai

unread,
Jan 25, 2017, 3:16:11 PM1/25/17
to JaCoCo and EclEmma Users
Dear Team,


I would like to know the working of the below function.
I am trying to initialize a file to analyser.analyseAll class where I am passing a file as parameter.

 int result = analyzer.analyzeAll(new File(file));


I am unable to get the result as the result is getting null which is evaulated to 0. I would like to get help on how to make the code working to integrate it to my Besouro coding.
Could anyone please contact me or help me with this issue?

Regards,
Amit 

bjk...@gmail.com

unread,
Jan 25, 2017, 6:44:28 PM1/25/17
to JaCoCo and EclEmma Users
The analyzeAll(File) method returns an int, so returning 0 would mean there were no classes found (I'm not sure what you mean by "the result is getting null"). What kind of file/directory is it? Does it actually contain Java class file? Does your process have permission to read it? If the answers to those questions don't lead you to a solution, I'd suggest stepping through the class in a debugger.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages