Skip to content

Commit

Permalink
Bug 1102972 - Rebuild if PROFILE_DIR is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricky Chien committed Apr 14, 2015
1 parent 4854df6 commit ad404b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build/rebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ exports.execute = function(options) {
dirChanged(previous[sharedPath] || {}, current[sharedPath], sharedPath);
let configChanged =
buildConfigChanged(record.build_config, options);
let webappDir = utils.joinPath(options.PROFILE_DIR, 'webapps');
let webappsExist = utils.fileExists(webappDir);

// Rebuild everything if any BUILD_CONFIG attribute changed or if any
// shared/ file changed
if (configChanged || sharedChanged) {
// Rebuild everything if any BUILD_CONFIG attribute / shared file changed or
// PROFILE_DIR/webapps does not exist
if (configChanged || sharedChanged || !webappsExist) {
rebuildAppDirs = scanningDirs;
}
// Rebuild any app that has any of its source file modified or external app
Expand Down

0 comments on commit ad404b7

Please sign in to comment.