Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to generate codepro report in command line(Codepro report has to be generated in command line. Need to know a way for that.)
How to generate codepro report in command line [message #997364] Mon, 07 January 2013 07:04
Dhanesh Koliyat is currently offline Dhanesh KoliyatFriend
Messages: 2
Registered: January 2013
Junior Member
Friends,

Now I'm creating codepro report manually in eclipse. I need to automate this report generation. How can I do the same?
I have searched in google and found one ant script for that. But that doesn't work.
Below given the ant script.

<project name="Ant Test" basedir="." default="main">
<target name="main">
<!-- the project source directory to be analyzed -->
<property name="projSrc" location="existing-workspace\Project"/>
<!-- test codepro.audit -->
<codepro.audit
auditRuleSetFile="E:\TEAM\CodePro\CodeProRulesV1.4\CodeProRulesV1.4.pref"
resultFile="headless_audit_out.txt">
<fileset dir="${projSrc}" includes="*.java"/>
<report file="audit_result.html"
format="html"
groupBy="severity">
</report>
</codepro.audit>
<echo message="It works!"/>
</target>
</project>


This is being invoked from a bat file. Below given that bat file content.

echo on
setlocal

set JAVAEXE="C:\Program Files\Java\jre1.6.0\bin\java.exe"

set ECLIPSEHOME="C:\Users\user\Desktop\eclipse"

for /f "delims= tokens=1" %%c in ('dir /B /S /OD %ECLIPSEHOME%\plugins\org.eclipse.equinox.launcher_*.jar') do set EQUINOXJAR=%%c

set WORKSPACE="C:\Users\user\Downloads\headless_existing_workspace\existing-workspace"

%JAVAEXE% -jar %EQUINOXJAR% -clean -noupdate -application org.eclipse.ant.core.antRunner -data %WORKSPACE% -verbose -file headless.xml %* >headless_out.txt 2>&1



Its generating report. But there is no data. In log its not showing any error.
Please let me know if anybody knows the solution.
Previous Topic:Eclipse Indigo fails to run
Next Topic:Architecture pattern in Eclipse IDE
Goto Forum:
  


Current Time: Tue Apr 16 15:30:21 GMT 2024

Powered by FUDForum. Page generated in 1.02360 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top