Add convenience target to run example Solr with remote debugging enabled

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@728244 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2008-12-20 06:21:58 +00:00
parent 2e434b4179
commit 1b46cc7d96
1 changed files with 13 additions and 0 deletions

View File

@ -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"/>