Closed GoogleCodeExporter closed 8 years ago
somehow you are right but in the JUnit context I don't know anything about my
maven environment. If I run the test in my IDE I don't have any Maven
environment.
I added a FileChannel#close to make sure Windows users can delete files.
Could you please update and try again?
Original comment by Sebastian.Annies
on 25 Jun 2012 at 3:01
yes, fixed the problem.
You can use this to calculate the directory from which the class was loaded:
URL classesRootDir =
getClass().getProtectionDomain().getCodeSource().getLocation();
for JUnit in either IDE (intelliJ?) or maven it should work just fine.
Original comment by osborn.j...@gmail.com
on 25 Jun 2012 at 4:14
That is in deed a workaround I could try. Thank you for pointing me there.
Original comment by Sebastian.Annies
on 26 Jun 2012 at 6:43
Original issue reported on code.google.com by
osborn.j...@gmail.com
on 25 Jun 2012 at 2:24