Joshua Marinacci wrote:
>I was wondering if anyone knows where the PersistenceService for Java Web
>Start actually saves the files? I'm testing for the existence of a set
>cookie (muffin?) and I'd like to manually delete the entry so I can test
>that my code is working properly.
I don't know, but see if Spotlight does.
Set the cookie to a distinctive value, such as "xyzzy-plugh-plover",
persist it, then ask Spotlight to search for "xyzzy-plugh-plover". If it
finds nothing, give it a minute and try again. If still nothing, try a
modified-date strategy.
Set the cookie to any value, persist it, then ask Spotlight for any files
modified in the last 2 minutes. Two minutes later, persist the the value
again, and ask Spotlight for files modified in the past 3 minutes. The
conjunction should contain the persistence file.
Something that would prevent either of these from working is if Spotlight
has been told to not index the directory where the data is stored, or if
Spotlight doesn't have an importer for the stored files.
If Spotlight returns nothing, then you could persist several multi-MB
values, then use 'find' to find files above a certain size and modified
later than a couple of minutes ago.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden