Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1144689 - Generate a resurce metadata file for preloaded hosted a…
Browse files Browse the repository at this point in the history
…pps with appcache
  • Loading branch information
Antonio M. Amaya authored and rvandermeulen committed Apr 15, 2015
1 parent 16e948b commit 0b2e2f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/copy-build-stage-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ function moveExternalApp(webapp, source, destination) {
' file.';
}

// If it has a cache, it should also have a resources_metadata.json file
let resourcesMetadata = utils.getFile(source.path,
'resources_metadata.json');
if (!resourcesMetadata.exists()) {
throw 'External webapp `' + webapp.domain +
'` has a cache directory without an associated `resources.metadata`' +
' file.';
}

utils.copyFileTo(resourcesMetadata, destination,
'resources_metadata.json');

// Copy recursively the whole cache folder to webapp folder
let targetCacheFolder = destination.clone();
targetCacheFolder.append('cache');
Expand Down

0 comments on commit 0b2e2f7

Please sign in to comment.