Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>CodePro Analytix does have ant tasks and they are functional. Please see the documentation here.</p> <p><a href="https://developers.google.com/java-dev-tools/codepro/doc/features/ant/headless" rel="nofollow">https://developers.google.com/java-dev-tools/codepro/doc/features/ant/headless</a> - It works even though the first line says the tasks are deprecated. </p> <p>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 <a href="https://developers.google.com/java-dev-tools/codepro/doc/features/ant/example/headless_existing_workspace_33.zip" rel="nofollow">https://developers.google.com/java-dev-tools/codepro/doc/features/ant/example/headless_existing_workspace_33.zip</a></p> <p>I edited the default headless.xml to use a specific rule/metric set and to export the results in xml format.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project name="Ant Test" basedir="." default="main"&gt; &lt;target name="main"&gt; &lt;!-- the project source directory to be analyzed --&gt; &lt;property name="projSrc" location="&lt;full path to your project source folder&gt;"/&gt; &lt;!-- test codepro.audit --&gt; &lt;codepro.audit auditRuleSetName="CodePro Default" resultFile="headless_audit_out.txt"&gt; &lt;fileSet dir="${projSrc}"/&gt; &lt;report file="audit_result.xml" format="xml"&gt; &lt;/report&gt; &lt;/codepro.audit&gt; &lt;!-- test codepro.metrics --&gt; &lt;codepro.metrics metricSetName="CodePro Default" resultFile="headless_metrics_out.txt"&gt; &lt;fileSet dir="${projSrc}"/&gt; &lt;report file="metrics_result.xml" format="xml"&gt; &lt;/report&gt; &lt;/codepro.metrics&gt; &lt;echo message="It works!"/&gt; &lt;/target&gt; &lt;/project&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload