in DevOps by
Q:

Explain How To Use Pmd Validation In Ant Script?

1 Answer

0 votes
by

<target name="validate" depends="-init">

<mkdir dir="${build.dir}/pmd-reports" />

<pmd shortFilenames="true" rulesetfiles="${basedir}/.ruleset">

<formatter type="xml" tofile="${build.dir}/pmd-reports/report.xml" />

<fileset dir="${src.dir}/main/java/com/" includes="**/*.java" />

<fileset dir="${src.dir}/test/java" includes="**/*.java" />

</pmd>

<xslt style="${ant.home}/etc/xslt/pmd-report-per-class.xslt"

in="${build.dir}/pmd-reports/report.xml"

out="${build.dir}/pmd-reports/report.html" />

</target>

Click here to read more about DevOps
Click here to read more about Insurance

Related questions

+1 vote
asked May 9, 2020 in DevOps by Robindeniel
+1 vote
asked May 9, 2020 in DevOps by Robindeniel
+1 vote
asked May 9, 2020 in DevOps by Robindeniel
0 votes
asked Jun 11, 2020 in SAS by JackTerrance
0 votes
asked Jan 2, 2020 in Data Science by sharadyadav1986
...