You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2011/01/02 20:45:59 UTC

svn commit: r1054464 - /lucene/dev/trunk/dev-tools/idea/.idea/workspace.xml

Author: sarowe
Date: Sun Jan  2 19:45:59 2011
New Revision: 1054464

URL: http://svn.apache.org/viewvc?rev=1054464&view=rev
Log:
LUCENE-2611: When the CWD is solr/build/tests/, the hack in SolrTestCaseJ4.determineSourceHome() fails while running the Solr module tests because of classpath ordering: the CWD is checked first to locate the solr/conf/ dir; this succeeds, but the relative path used for the CWD excludes its ancestry, so the source home can't be navigated to without converting to absolute, which determinSourceHome() does not do.

This change works around the issue by making the CWD for the Solr module tests be solr/build/tests/solr/, which does not contain solr/conf/, so the remainder of the classpath is searched, and the absolute classpath element .../solr/build/tests/ allows the source home to be located.

Modified:
    lucene/dev/trunk/dev-tools/idea/.idea/workspace.xml

Modified: lucene/dev/trunk/dev-tools/idea/.idea/workspace.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/dev-tools/idea/.idea/workspace.xml?rev=1054464&r1=1054463&r2=1054464&view=diff
==============================================================================
--- lucene/dev/trunk/dev-tools/idea/.idea/workspace.xml (original)
+++ lucene/dev/trunk/dev-tools/idea/.idea/workspace.xml Sun Jan  2 19:45:59 2011
@@ -158,7 +158,7 @@
     <configuration default="false" name="solr" type="JUnit" factoryName="JUnit">
       <module name="solr" />
       <option name="TEST_OBJECT" value="package" />
-      <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/solr/build/tests" />
+      <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/solr/build/tests/solr" />
       <option name="VM_PARAMETERS" value="-ea -Dtests.luceneMatchVersion=4.0 -DtempDir=temp" />
       <option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option>
     </configuration>