# HG changeset patch # User Stefan Vogel # Date 1308744969 -7200 # Node ID 5e4e46856d8dc1d8a7ce68dc2991da11c6cf529c # Parent 066a69e88211afc9ff114caa18a9fa34c59d52d5 changed: #generateSourceFilesByFilingOut take care for files like 'autopackage/default.apspec' diff -r 066a69e88211 -r 5e4e46856d8d 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. ]. ]. ].