Apache Solr open-source search software
Add convenience target to run example Solr with remote debugging enabled
Erik Hatcher1b46cc7d96d8
diff --git a/build.xml b/build.xmlindex c33daf2d828..434d3d3b08a 100644--- a/build.xml+++ b/build.xml@@ -578,6 +578,19 @@</target>+ <target name="run-example-debug" depends="example">+ <property name="heap.size" value="512"/>+ <property name="suspend" value="n"/>+ <property name="example.solr.home" location="example/solr"/>+ <property name="example.data.dir" location="example/solr/data"/>+ <java jar="${example}/start.jar" fork="true" dir="${example}">+ <jvmarg line="-Xmx${heap.size}M -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=${suspend},address=5005"/>+ <sysproperty key="solr.solr.home" file="${example.solr.home}"/>+ <sysproperty key="solr.data.dir" file="${example.data.dir}"/>+ </java>++ </target>+<!-- make a distribution --><target name="package" depends="generate-maven-artifacts"/>