You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2015/01/22 11:43:16 UTC
svn commit: r1653806 - /lucene/dev/trunk/solr/build.xml
Author: uschindler
Date: Thu Jan 22 10:43:15 2015
New Revision: 1653806
URL: http://svn.apache.org/r1653806
Log:
SOLR-6926: Fix at least "run-example" script to work on Windows and dont use <arg line=""/> in ANT. It currently does not work when booting example if path contains spaces!
Modified:
lucene/dev/trunk/solr/build.xml
Modified: lucene/dev/trunk/solr/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/build.xml?rev=1653806&r1=1653805&r2=1653806&view=diff
==============================================================================
--- lucene/dev/trunk/solr/build.xml (original)
+++ lucene/dev/trunk/solr/build.xml Thu Jan 22 10:43:15 2015
@@ -58,13 +58,24 @@
description="Run Solr interactively, via Jetty. -Dexample.debug=true to enable JVM debugger">
<property name="example.debug.suspend" value="n"/>
<property name="example.jetty.port" value="8983"/>
- <condition property="example.jvm.line" value="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=${example.debug.suspend},address=5005">
+ <condition property="example.jvm.line" value="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=${example.debug.suspend},address=5005" else="">
<isset property="example.debug"/>
</condition>
- <property name="example.jvm.line" value=""/>
<property name="example.heap.size" value="512M"/>
- <exec executable="${common-solr.dir}/bin/solr" failonerror="true">
- <arg line="-e techproducts -p ${example.jetty.port} -m ${example.heap.size} -d ${server.dir} -a '${example.jvm.line}'"/>
+ <condition property="example.cmd" value="${common-solr.dir}/bin/solr.cmd" else="${common-solr.dir}/bin/solr">
+ <os family="windows"/>
+ </condition>
+ <exec executable="${example.cmd}" failonerror="true">
+ <arg value="-e"/>
+ <arg value="techproducts"/>
+ <arg value="-p"/>
+ <arg value="${example.jetty.port}"/>
+ <arg value="-m"/>
+ <arg value="${example.heap.size}"/>
+ <arg value="-d"/>
+ <arg file="${server.dir}"/>
+ <arg value="-a"/>
+ <arg value="${example.jvm.line}"/>
</exec>
</target>