mirror of https://github.com/apache/lucene.git
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:
parent
2e434b4179
commit
1b46cc7d96
13
build.xml
13
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"/>
|
||||
|
||||
|
|
Loading…
Reference in New Issue