Menu

Relative script path not set before load

Developers
Opeongo
2005-01-22
2013-05-20
  • Opeongo

    Opeongo - 2005-01-22

    I think there is a bug in the initializer for abbot.script.Script, around line 115.

    The load() method is called before the relative path is set.  As a result, scripts that are located relative to the parent, and are not in the default 'user.dir' directory will not get loaded correctly.

    I tried moving the call to setRelativeTo() to be after setFile, and before load(), and it seems to have fixed the this problem.  I don't know if it causes others.

            setFile(file);
            if (parent != null) {
                setRelativeTo(parent.getDirectory());
            }
            try {
                load();
            }

    I looked in the CVS and it seems that this bug was introduced in commint 1.97, Aug 10, 2004.

     
    • KIRAN

      KIRAN - 2007-03-09

      Hi Tom. Can you please check up the problem I am having titled "Problem launching script" and confirm whether it is the same which you faced ? So, I will come to know whether I have to do the change you have done forthe script path.

       

Log in to post a comment.

Monday.com Logo