directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r809445 - /directory/shared/branches/shared-schema/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/SchemaLdifExtractor.java
Date Mon, 31 Aug 2009 01:11:11 GMT
Author: akarasulu
Date: Mon Aug 31 01:11:10 2009
New Revision: 809445

URL: http://svn.apache.org/viewvc?rev=809445&view=rev
Log:
finally everything works now including jar based extraction

Modified:
    directory/shared/branches/shared-schema/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/SchemaLdifExtractor.java

Modified: directory/shared/branches/shared-schema/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/SchemaLdifExtractor.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/SchemaLdifExtractor.java?rev=809445&r1=809444&r2=809445&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/SchemaLdifExtractor.java
(original)
+++ directory/shared/branches/shared-schema/ldap-schema/src/main/java/org/apache/directory/shared/ldap/schema/ldif/extractor/SchemaLdifExtractor.java
Mon Aug 31 01:11:10 2009
@@ -265,7 +265,14 @@
 
         try
         {
-            FileOutputStream out = new FileOutputStream( new File( outputDirectory, resource
) );
+        	File destination = new File( outputDirectory, resource );
+        	
+        	if ( ! destination.getParentFile().exists() )
+        	{
+        		destination.getParentFile().mkdirs();
+        	}
+        	
+            FileOutputStream out = new FileOutputStream( destination );
             try
             {
                 while ( in.available() > 0 )



Mime
View raw message