changed: #generateSourceFilesByFilingOut
authorStefan Vogel <sv@exept.de>
Wed, 22 Jun 2011 14:16:09 +0200
changeset 28445e4e46856d8d
parent 2843 066a69e88211
child 2845 0d52c66fbc8e
changed: #generateSourceFilesByFilingOut
take care for files like 'autopackage/default.apspec'
ProjectBuilder.st
     1.1 --- a/ProjectBuilder.st	Wed Apr 13 22:02:35 2011 +0200
     1.2 +++ b/ProjectBuilder.st	Wed Jun 22 14:16:09 2011 +0200
     1.3 @@ -540,6 +540,8 @@
     1.4      "/ local build
     1.5      "/ fileout the project
     1.6  
     1.7 +    |fullPathName|
     1.8 +
     1.9      (package module ~= 'stx') ifTrue:[
    1.10          (buildDirectory / package module) makeDirectory.
    1.11      ].
    1.12 @@ -584,9 +586,14 @@
    1.13  "/        ].
    1.14  
    1.15          projectDefinitionClass forEachFileNameAndGeneratedContentsDo:[:fileName :fileContents |
    1.16 -            ((packageTargetDir / fileName) exists
    1.17 -            and:[ (packageTargetDir / fileName) contents = fileContents ]) ifFalse:[
    1.18 -                (packageTargetDir / fileName) contents:fileContents.
    1.19 +            fullPathName := packageTargetDir construct:fileName.
    1.20 +            fullPathName directory exists ifFalse:[
    1.21 +                "take care for files like 'autopackage/default.apspec'"
    1.22 +                fullPathName directory makeDirectory.
    1.23 +            ].
    1.24 +            (fullPathName exists
    1.25 +             and:[ fullPathName contents = fileContents ]) ifFalse:[
    1.26 +                fullPathName contents:fileContents.
    1.27              ].
    1.28          ].    
    1.29      ].