Ant and JUnit may be the two most popular development tools used in the world ... yet, there are problems using them together! What a world..
So, if this problem occurs and you'll see:
PAT's Ant script tries to do this automatically. If your system is "not prepared" then it will kindly do magic and ask for rerun script again.
Running simply from "Ant view" doesn't work. Even after my "magic".
So, fix it manually:
The same problem like with Eclipse :(.
Fix it manually:
If something won't work, check if value of `repository.dir' is OK. If you have write permissions to the directory or/and if it's valid directory.
PAT writes information about used directory for its database when starting:
Set this variable in the Ant's build.properties:
Tests may fail on Windows OS. This is independent of me.
Problem is related to File.delete()
method which works properly
only after System.gc()
is executed.
So I do System.gc()
(this is not guaranteed to work at all), and
it helped to work at least on Windows ME.