How to execute Google Codepro analytix from command line?

后端 未结 3 522
醉话见心
醉话见心 2021-01-11 12:44

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 ge

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-11 13:20

    CodePro Analytix does have ant tasks and they are functional. Please see the documentation here.

    https://developers.google.com/java-dev-tools/codepro/doc/features/ant/headless - It works even though the first line says the tasks are deprecated.

    Both ant tasks codepro.audit and codepro.metrics works fine with Eclipse Juno. I was able to run both audit and metrics tasks on an existing workspace project by editing headless.xml and run_headless.bat files from https://developers.google.com/java-dev-tools/codepro/doc/features/ant/example/headless_existing_workspace_33.zip

    I edited the default headless.xml to use a specific rule/metric set and to export the results in xml format.

    
    
                
            
            
    
            
            
                
                
                
            
    
            
            
                
                
                
            
    
            
           
    
    

提交回复
热议问题