Loading local settings file

13 views
Skip to first unread message

Arjun Sanyal

unread,
Oct 4, 2010, 1:34:28 PM10/4/10
to FuncUnit

Hello,

I couldn't have a local settings.js file read without this change to
the:

diff --git a/scripts/run.js b/scripts/run.js
index 9d817b7..2562851 100644
--- a/scripts/run.js
+++ b/scripts/run.js
@@ -18,10 +18,11 @@ var foundSettings = true;
try {
readUrl(settingsPath)
} catch(e){
- foundSettings = false;
-}
-if(foundSettings){
- load(settingsPath)
+ try {
+ load(settingsPath)
+ } catch(e) {
+ foundSettings = false;
+ }
}

I think the rhino readUrl call is not what we want here if we're only
dealing with local files. Thoughts?

Brian Moschel

unread,
Oct 4, 2010, 1:39:24 PM10/4/10
to func...@googlegroups.com
Hmm, that would make sense.  I'm not sure how the other way was working, but I thought it was tested.  I'll make that fix and test it shortly.

- Brian
--
Brian Moschel

Jupiter Consulting
\Development\Training\Support
847-727-1609
brian....@gmail.com

Arjun Sanyal

unread,
Oct 4, 2010, 1:50:07 PM10/4/10
to FuncUnit
Thanks Brian!

Justin Meyer

unread,
Oct 4, 2010, 3:58:58 PM10/4/10
to func...@googlegroups.com
It needs to work from both. What if the person's page is a URL?

On Monday, October 4, 2010, Arjun Sanyal
<arjun....@childrens.harvard.edu> wrote:
> Thanks Brian!
>

--
Justin Meyer

Jupiter Consulting
\Development\Training\Support

847-924-6039
justin...@gmail.com

Reply all
Reply to author
Forward
0 new messages