Ticket #9323 (closed enhancement: fixed)
make build.js less dependent on home directory
| Reported by: | maulin | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4 |
| Component: | BuildTools | Version: | 1.3.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I create a "parallel" directory for my builds. I write my own build.js for some of my own tasks, then call load(../../util/buildsripts/build.js). And it ALMOST works. There are just a few places in the build.js file that could use some "prefixing" with buildscriptsPath + 'file.js'. then just don't clobber buildscripsPath on entry, with a line at the top of the file to the effect of:
buildscriptsPath = buildscriptsPath
then I can set buildscriptsPath before my load of it, and everything else just works automagically.
thanks. patch attached