0 Replies Latest reply: Apr 27, 2010 12:08 PM by 800326 RSS

    Junit working directory

      In my Java program, I need to run an OS script. in Junit test, I specified the directory for the script.
      The problem now is that the Junit testing could be run from diffrent ways such as:
      -- from IDE (Jeveloper)
      -- from Ant build
      -- Cruise Control
      -- build.xml called from another build.xml in another directory

      Therefore, the diffrent working directory would not be able to locate my script correctly

      How can I specify the Junit working directory to ensure no matter where the caller working directory?