Author: felixk
Date: Wed Oct 12 08:16:00 2011
New Revision: 1182252

URL: http://svn.apache.org/viewvc?rev=1182252&view=rev
Log:
To store data when executing tests use the target directory instead of the main 
module's root directory

Added:
    james/mailbox/trunk/spring/src/test/resources/
    james/mailbox/trunk/spring/src/test/resources/META-INF/
    james/mailbox/trunk/spring/src/test/resources/META-INF/org/
    james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/
    james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/
    
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/database.properties
   (with props)
    
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/spring-mailbox-lucene.xml
   (with props)

Added: 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/database.properties
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/database.properties?rev=1182252&view=auto
==============================================================================
--- 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/database.properties
 (added)
+++ 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/database.properties
 Wed Oct 12 08:16:00 2011
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#
+
+# See http://james.apache.org/server/3/config.html for usage
+
+database.driverClassName=org.apache.derby.jdbc.EmbeddedDriver
+database.url=jdbc:derby:target/var/store/derby;create=true
+database.username=app
+database.password=app
+vendorAdapter.database=DERBY
+openjpa.streaming=false

Propchange: 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/database.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/database.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/spring-mailbox-lucene.xml
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/spring-mailbox-lucene.xml?rev=1182252&view=auto
==============================================================================
--- 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/spring-mailbox-lucene.xml
 (added)
+++ 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/spring-mailbox-lucene.xml
 Wed Oct 12 08:16:00 2011
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.    
+-->
+
+<beans xmlns="http://www.springframework.org/schema/beans"; 
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="
+          http://www.springframework.org/schema/beans 
classpath:org/springframework/beans/factory/xml/spring-beans-3.0.xsd">
+
+    <!-- 
+      Mailbox Lucene
+     -->
+
+    <bean id="lazyIndex" 
class="org.apache.james.mailbox.store.search.LazyMessageSearchIndex">
+        <constructor-arg index="0" ref="luceneIndex"/>
+    </bean>
+    <bean id="luceneIndex" 
class="org.apache.james.mailbox.lucene.search.LuceneMessageSearchIndex">
+        <constructor-arg index="0" ref="maildir-sessionMapperFactory"/>
+        <constructor-arg index="1" ref="ramDirectory"/>
+        <constructor-arg index="2" value="false"/>
+        <constructor-arg index="3" value="true"/>
+        <property name="enableSuffixMatch" value="true"/>
+    </bean>
+    <bean id="ramDirectory"  class="org.apache.lucene.store.FSDirectory" 
factory-method="open">
+        <constructor-arg index="0" value="target/var/store/lucene"/>
+    </bean>
+ 
+</beans>

Propchange: 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/spring-mailbox-lucene.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
james/mailbox/trunk/spring/src/test/resources/META-INF/org/apache/james/spring-mailbox-lucene.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to