diff --git a/build.xml b/build.xml
index e60b8444a05f81c27062ca826d75ab2626114bb6..5846fbffe2c39bec3c079c35df4ce83e6a029b14 100644
--- a/build.xml
+++ b/build.xml
@@ -67,7 +67,7 @@
 
   <!-- PHP copy-and-paste detection -->
   <target name="phpcpd">
-    <exec command="phpcpd --log-pmd ${builddir}/reports/pmd-cpd.xml --exclude ${srcdir}/module/VuFind/tests/unit-tests/src/Auth ${srcdir}/module" />
+    <exec command="phpcpd --log-pmd ${builddir}/reports/pmd-cpd.xml --exclude tests ${srcdir}/module" />
   </target>
 
   <!-- PHP CodeSniffer -->