Apache Solr open-source search software
refactor some lazy ant copy/paste into more ant idiotmatic
Erik Hatcherfc3eed423b3f
diff --git a/build.xml b/build.xmlindex 434d3d3b08a..187d7296a88 100644--- a/build.xml+++ b/build.xml@@ -571,26 +571,20 @@<target name="run-example" depends="example"><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}">+ <property name="example.debug.suspend" value="n"/>+ <condition property="example.jvm.line" value="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=${example.debug.suspend},address=5005">+ <isset property="example.debug"/>+ </condition>+ <property name="example.jvm.line" value=""/>+ <property name="example.heap.size" value="512M"/>+ <java jar="${example}/start.jar" fork="true" dir="${example}" maxmemory="${example.heap.size}">+ <jvmarg line="${example.jvm.line}"/><sysproperty key="solr.solr.home" file="${example.solr.home}"/><sysproperty key="solr.data.dir" file="${example.data.dir}"/></java></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"/>