jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanpa...@apache.org
Subject svn commit: r1510345 - in /jspwiki/trunk/jspwiki-war/src: main/java/org/apache/wiki/search/LuceneSearchProvider.java test/java/org/apache/wiki/search/SearchManagerTest.java
Date Sun, 04 Aug 2013 21:05:59 GMT
Author: juanpablo
Date: Sun Aug  4 21:05:58 2013
New Revision: 1510345

URL: http://svn.apache.org/r1510345
Log:
JSPWIKI-799 related; lucene files created inside target/test-classes instead of inside /tmp

Modified:
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/search/LuceneSearchProvider.java
    jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/search/LuceneSearchProvider.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/search/LuceneSearchProvider.java?rev=1510345&r1=1510344&r2=1510345&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/search/LuceneSearchProvider.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/search/LuceneSearchProvider.java
Sun Aug  4 21:05:58 2013
@@ -508,7 +508,7 @@ public class LuceneSearchProvider implem
             LockObtainFailedException, IOException, ProviderException 
     {
         IndexWriter writer = null;
-        IndexWriterConfig writerConfig = new IndexWriterConfig( Version.LUCENE_36, getLuceneAnalyzer()
);
+        IndexWriterConfig writerConfig = new IndexWriterConfig( Version.LUCENE_44, getLuceneAnalyzer()
);
         writerConfig.setOpenMode( OpenMode.CREATE_OR_APPEND );
         writer = new IndexWriter( luceneDir, writerConfig );
         

Modified: jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java?rev=1510345&r1=1510344&r2=1510345&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java
Sun Aug  4 21:05:58 2013
@@ -48,7 +48,6 @@ public class SearchManagerTest extends T
         
         props.setProperty( SearchManager.PROP_SEARCHPROVIDER, "LuceneSearchProvider" );
         props.setProperty( "jspwiki.lucene.initialdelay", "1" );
-        props.setProperty( "jspwiki.workDir", System.getProperty( "java.io.tmpdir" ) + File.separator
+ Release.APPNAME );
         
         TestEngine.emptyWorkDir(props);
         



Mime
View raw message