lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r714029 - in /lucene/solr/trunk: CHANGES.txt build.xml
Date Fri, 14 Nov 2008 15:21:17 GMT
Author: ehatcher
Date: Fri Nov 14 07:21:17 2008
New Revision: 714029

URL: http://svn.apache.org/viewvc?rev=714029&view=rev
Log:
SOLR-854: Add run-example build target

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/build.xml

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=714029&r1=714028&r2=714029&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Fri Nov 14 07:21:17 2008
@@ -127,6 +127,8 @@
 Build
 ----------------------
  1. SOLR-776: Added in ability to sign artifacts via Ant for releases (gsingers)
+
+ 2. SOLR-854: Added run-example target (Mark Miller vie ehatcher)
  
 
 Documentation

Modified: lucene/solr/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/build.xml?rev=714029&r1=714028&r2=714029&view=diff
==============================================================================
--- lucene/solr/trunk/build.xml (original)
+++ lucene/solr/trunk/build.xml Fri Nov 14 07:21:17 2008
@@ -634,6 +634,16 @@
     </delete>
     <echo>See ${example}/README.txt for how to run the Solr example configuration.</echo>
   </target>
+	
+  <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}">
+      <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"/>



Mime
View raw message