directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r894978 - /directory/apacheds/branches/apacheds-schema/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java
Date Fri, 01 Jan 2010 07:35:28 GMT
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 ) );



Mime
View raw message