Changeset 11795

Show
Ignore:
Timestamp:
12/11/07 11:18:23 (13 months ago)
Author:
jburke
Message:

Fixes #5225: could not create layers in directories that did not exist in the module prefix directories. Now it works. We cannot support layer names of '../layername.js' but now we can support name: 'layers/layername.js' which will map to release dir, dojo/layers/layername.js and the preloadlocalization calls should work in that case. (merge to trunk)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/trunk/buildscripts/jslib/i18nUtil.js

    r10499 r11795  
    9292                        throw "Invalid module prefix for flattened bundle: " + modulePrefix; 
    9393                } 
    94                  
     94 
    9595                for (jsLocale in djBundlesByLocale){ 
    9696                        var locale = jsLocale.replace(/\_/g, '-'); 
     
    9898                         
    9999                        var outFile = new java.io.File(dir, nlsNamePrefix + "_" + locale + ".js"); 
     100                        //Make sure we can create the final file. 
     101                        var parentDir = outFile.getParentFile(); 
     102                        if(!parentDir.exists()){ 
     103                                if(!parentDir.mkdirs()){ 
     104                                        throw "Could not create directory: " + parentDir.getAbsolutePath(); 
     105                                } 
     106                        } 
     107 
    100108                        var os = new java.io.BufferedWriter( 
    101109                                        new java.io.OutputStreamWriter(new java.io.FileOutputStream(outFile), "utf-8"));