changed: #generateSourceFilesByFilingOut
authorStefan Vogel <sv@exept.de>
Wed, 22 Jun 2011 14:16:09 +0200
changeset 2844 5e4e46856d8d
parent 2843 066a69e88211
child 2845 0d52c66fbc8e
changed: #generateSourceFilesByFilingOut take care for files like 'autopackage/default.apspec'
ProjectBuilder.st
--- a/ProjectBuilder.st	Wed Apr 13 22:02:35 2011 +0200
+++ b/ProjectBuilder.st	Wed Jun 22 14:16:09 2011 +0200
@@ -540,6 +540,8 @@
     "/ local build
     "/ fileout the project
 
+    |fullPathName|
+
     (package module ~= 'stx') ifTrue:[
         (buildDirectory / package module) makeDirectory.
     ].
@@ -584,9 +586,14 @@
 "/        ].
 
         projectDefinitionClass forEachFileNameAndGeneratedContentsDo:[:fileName :fileContents |
-            ((packageTargetDir / fileName) exists
-            and:[ (packageTargetDir / fileName) contents = fileContents ]) ifFalse:[
-                (packageTargetDir / fileName) contents:fileContents.
+            fullPathName := packageTargetDir construct:fileName.
+            fullPathName directory exists ifFalse:[
+                "take care for files like 'autopackage/default.apspec'"
+                fullPathName directory makeDirectory.
+            ].
+            (fullPathName exists
+             and:[ fullPathName contents = fileContents ]) ifFalse:[
+                fullPathName contents:fileContents.
             ].
         ].    
     ].