You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2010/01/01 08:35:28 UTC

svn commit: r894978 - /directory/apacheds/branches/apacheds-schema/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java

Author: kayyagari
Date: Fri Jan  1 07:35:25 2010
New Revision: 894978

URL: http://svn.apache.org/viewvc?rev=894978&view=rev
Log:
o fixed the issue of creating a 'file:' folder while running the tests using maven
o now uses the system temp directory to store the server-work data

Modified:
    directory/apacheds/branches/apacheds-schema/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java

Modified: directory/apacheds/branches/apacheds-schema/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java?rev=894978&r1=894977&r2=894978&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java (original)
+++ directory/apacheds/branches/apacheds-schema/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java Fri Jan  1 07:35:25 2010
@@ -97,9 +97,7 @@
 
         if ( workingDirectory == null )
         {
-            String path = DefaultDirectoryServiceFactory.class.getResource( "" ).getPath();
-            int targetPos = path.indexOf( "target" );
-            workingDirectory = path.substring( 0, targetPos + 6 ) + "/server-work-" + name;
+            workingDirectory = System.getProperty( "java.io.tmpdir" ) + "/server-work-" + name;
         }
         
         directoryService.setWorkingDirectory( new File( workingDirectory ) );