diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index 7df5d46ab5e..5697d2fe03c 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -237,7 +237,7 @@
diff --git a/solr/build.xml b/solr/build.xml
index f98b58d56e7..bd75f660718 100644
--- a/solr/build.xml
+++ b/solr/build.xml
@@ -379,11 +379,11 @@
+ excludes="solr/example/**/*.sh solr/example/**/bin/ solr/scripts/**"/>
+ includes="solr/example/**/*.sh solr/example/**/bin/ solr/scripts/**"/>