Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Creating a unique ajSandbox root directory


There is currently a nasty gotcha if you run the compiler tests in two workspaces at the same time: the tests fail. This is because the "ajcTestNNNN.tmp" names can clash and the contents or the whole directory can be deleted by the other workspace (I noticed this while running a release build in the background which can take an hour). A simple solution would be to add the current workspace name (appropriately sanitized not use spaces or slashes etc) which would result in names like "c:\temp\ajSandox\c__workspaces_org.aspectj\ajcTest49469.tmp". I know the names are a little longer but this way you can have results left from running tests in 2 workspaces. If there are no objections I will make the necessary changes in Ajc.createEmptySandbox().

Cheers

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx

http://w3.hursley.ibm.com/~websterm/

Back to the top