Changeset 12269
- Timestamp:
- 02/03/08 17:12:29 (11 months ago)
- Location:
- util/trunk/buildscripts
- Files:
-
- 3 modified
-
build.js (modified) (1 diff)
-
jslib/buildUtil.js (modified) (3 diffs)
-
webbuild/helma/apps/builder/Root/main.hac (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
util/trunk/buildscripts/build.js
r12119 r12269 106 106 107 107 logger.trace("Building dojo.js and layer files"); 108 var result = buildUtil.makeDojoJs(buildUtil.loadDependencyList(kwArgs.profileProperties ), kwArgs.version, kwArgs);108 var result = buildUtil.makeDojoJs(buildUtil.loadDependencyList(kwArgs.profileProperties, kwArgs), kwArgs.version, kwArgs); 109 109 110 110 //Save the build layers. The first layer is dojo.js. -
util/trunk/buildscripts/jslib/buildUtil.js
r12248 r12269 215 215 } 216 216 217 buildUtil.getDependencyList = function(/*Object*/dependencies, /*String or Array*/hostenvType, /* String?*/buildscriptsPath){217 buildUtil.getDependencyList = function(/*Object*/dependencies, /*String or Array*/hostenvType, /*Object?*/kwArgs, /*String?*/buildscriptsPath){ 218 218 //summary: Main function that traces the files that are needed for a give list of dependencies. 219 219 … … 335 335 load = function(uri){ 336 336 try{ 337 var text = buildUtil.removeComments(fileUtil.readFile(uri)); 337 //Strip comments and pply conditional directives before tracing the dependencies. 338 var text = fileUtil.readFile(uri); 339 var text = (kwArgs ? buildUtil.processConditionals(layerName, text, kwArgs) : text); 340 var text = buildUtil.removeComments(text); 341 338 342 var requires = dojo._getRequiresAndProvides(text); 339 343 eval(requires.join(";")); … … 612 616 } 613 617 614 buildUtil.loadDependencyList = function(/*Object*/profile, /* String?*/buildscriptsPath){618 buildUtil.loadDependencyList = function(/*Object*/profile, /*Object?*/kwArgs, /*String?*/buildscriptsPath){ 615 619 //summary: Traverses the dependencies in the profile object. 616 620 //profile: 617 621 // The profile object that is a result of a buildUtil.evalProfile() call. 618 var depResult = buildUtil.getDependencyList(profile.dependencies, profile.hostenvType, buildscriptsPath);622 var depResult = buildUtil.getDependencyList(profile.dependencies, profile.hostenvType, kwArgs, buildscriptsPath); 619 623 depResult.dependencies = profile.dependencies; 620 624 -
util/trunk/buildscripts/webbuild/helma/apps/builder/Root/main.hac
r10641 r12269 73 73 74 74 //Build the layer contents. 75 var depResult = buildUtil.makeDojoJs(buildUtil.loadDependencyList(kwArgs.profileProperties, buildscriptDir), kwArgs.version, kwArgs);75 var depResult = buildUtil.makeDojoJs(buildUtil.loadDependencyList(kwArgs.profileProperties, null, buildscriptDir), kwArgs.version, kwArgs); 76 76 77 77 //Grab the content from the "dojo.xd.js" layer.