Closed Bug 584140 Opened 16 years ago Closed 16 years ago

Need way for an ABC to find its disk location

Categories

(Tamarin Graveyard :: Virtual Machine, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: stejohns, Assigned: stejohns)

Details

Attachments

(1 file)

Some acceptance tests (eg, everything related to DomainClass) would be much easier to write if we could detect the ABC's path at runtime; currently, there's no guarantee that the current working directory matches the currently-executing ABC's directory, so loading relative paths isn't workable.
Attached patch PatchSplinter Review
Here's a quick-n-dirty, but functional, approach. Sample usage: package { import avmplus.System print("I am " + System.evaluatingFile); } This is a bare-bones approach, but suitable for my needs.
Assignee: nobody → stejohns
Attachment #462448 - Flags: superreview?(edwsmith)
Attachment #462448 - Flags: review?(cpeyer)
Comment on attachment 462448 [details] [diff] [review] Patch fine with me, just keep the commenting good so we can build on this incrementally without too much pain. small vote for "currentFilename()" as the api, but.. meh.
Attachment #462448 - Flags: superreview?(edwsmith) → superreview+
I think I can probably do this just as easily using the avm_args functionaity (https://developer.mozilla.org/En/Tamarin/Creating_Tamarin_Tests#testname.as.avm_args) so I may skip this if that works out.
I think the avm_args approach will be adequate, so I'm withdrawing this.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Attachment #462448 - Flags: review?(cpeyer)
bulk verifying resolved !fixed issues
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: