Menu

#10 Emulator process working dir should be exec dir

v2.0.0
pending-accepted
nobody
Emulator (4)
7
2012-04-12
2012-02-28
Bram Lohman
No

The emulator processes are started in temporarily generated subdirectories in the ./exec dir (set in the properties file). However, the working directory of the emulation process is the root directory of the Emulation Framework (i.e. the directory where the EFCore.jar is located). This means that any files changed/written by the emulator process will appear in this directory, and not in the emulator's execution directory.
Not only does this represent a security risk but also a problem when cleaning up the emulator directory and files.

Discussion

  • Bram Lohman

    Bram Lohman - 2012-02-28

    This is a known issue. A good example is the JavaCPC emulator which generates several libraries it needs in the EF root directory.
    However, this has been set because starting external processes (such as emulators), must be done using absolute paths, and references to the required digital objects (which may live elsewhere), do not seem to work when using relative paths.
    A resolution must be found which changes the working directory of emulators but doesn't break the path references to attached digital objects.

     
  • Bram Lohman

    Bram Lohman - 2012-02-28
    • status: open --> open-accepted
     
  • Bram Lohman

    Bram Lohman - 2012-04-12
    • status: open-accepted --> pending-accepted
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.