Skip to content

Apache Lucene open-source search software

SOLR-6926: Add example target with gentle prompt to start using ant server instead

Timothy Potter0f5e7462f5ed
diff --git a/solr/build.xml b/solr/build.xml
index 1d6f1896519..ee7aaddad16 100644
--- a/solr/build.xml
+++ b/solr/build.xml
@@ -738,4 +738,19 @@
<ant dir="test-framework" target="-append-module-dependencies-properties" inheritAll="false"/>
<contrib-crawl target="-append-module-dependencies-properties"/>
</target>
+
+ <target name="example" depends="server">
+ <!-- no description so -p doesn't list it -->
+ <echo>
+
+ ! ! ! NOTICE NOTICE NOTICE ! ! !
+
+ 'ant example' is no longer recomended
+
+ Use 'ant server' instead
+
+ 'ant example' is going to be removed at some point
+
+ </echo>
+ </target>
</project>