Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to execute Google Codepro analytix from command line?

Tags:

java

codepro

Is it possible to run Google CodePro analytix from Command Line.

What I am looking for is to run this from a shell script passing the file name as a parameter and get all the metrics generated on file level for the filename I passed in as parameter.

Is it possible to do so? and How?

Are there any other tools that can give same metrics for a Java file and be executed from a shell script?

like image 333
Salman A. Kagzi Avatar asked Apr 12 '11 09:04

Salman A. Kagzi


1 Answers

There is a set of codepro ant tasks that can be used for auditing as well as report generation.

As to other tools, there is also a set of ant tasks for PMD as well as a PMD plugin for maven. Both can be run from command line.

Similar for Findbugs : the instructions for the ant task can be found here, and the maven plugin here

EDIT: It seems to me that google purchased this beatiful tool just to let it die of obscurity. There seems to be no ongoig development and no release to open source. The ant tasks are not released (and I have found no usable examples). there is no maven plugin. We were unable to integrate it in our build and are back to using PMD, Findbugs and Sonar. It's a shame.

like image 56
kostja Avatar answered Oct 12 '22 23:10

kostja