Suppose I've got a bunch of JavaScript files that build funcs something like:
me.add ([
panel1: [{
url: 'https://localhost:8888/MyProj-0.0.1/resources/html/dir1/page1.html'
}, {
url: 'https://localhost:8888/MyProj-0.0.1/resources/html/dir2/page5.html'
}]);
How can I use a property file to manage the front parts of all of these refs? ie, I'd like to change all 60+ of my JavaScript files that have functions like the above to be something like:
me.add ([
panel1: [{
url: '($MagicGoesHere)/resources/html/dir1/page1.html'
}, {
url: '($MagicGoesHere)/resources/html/dir2/page5.html'
}]);
so that I can read in a single property from a file in my project that defines the MagicGoesHere root for all of these references.
Note, I only want to do this as part of building my project; I do not need to read in a property and expose is on the webserver. (ie, when I deploy the WAR that gets built, all of the refs will have been expanded during the build)
My goal is to make it easy to update the refs when releasing MyProj-0.0.2
TIA,