Copy link to clipboard
Copied
Hi,
In Ant scripts we could set failonruleviolation="true" when executing FlexPMD and this will lead to failed build on violations.
Is there something similar for FlexCPD?
Thanks
Copy link to clipboard
Copied
Here's the targets i used... it requires ant-contrib though...
<mkdir dir="$/reports/flexcpd" /> <cpd minimumTokens="40" outputFile="reports/flexcpd/cpd.xml" sourceDirectory="$" />
</target
Copy link to clipboard
Copied
Thanks for the reply.
I believe the target which you sent is for executing FlexCPD however it won't mark the build as failed in case there are code duplications. It will always finish as "BUILD SUCCESSFUL".
I was looking for something quick I could implement to have the build failed on code duplications.