Guys, I'd like to apply the following change:
=============== %< ================ Index: core/src/test/java/org/apache/commons/AbstractVfsTestCase.java =================================================================== --- core/src/test/java/org/apache/commons/AbstractVfsTestCase.java (revision 805676) +++ core/src/test/java/org/apache/commons/AbstractVfsTestCase.java (working copy) @@ -116,13 +116,15 @@ public static String getTestDirectory() { - return System.getProperty("test.basedir"); + String testDirectory = System.getProperty("test.basedir"); + return testDirectory == null ? "target/test-classes/test-data" : testDirectory; } - public static String getResourceTestDirectory() - { - return System.getProperty("test.basedir.res"); - } + public static String getResourceTestDirectory() + { + String testResourceDirectory = System.getProperty("test.basedir.res"); + return testResourceDirectory == null ? "test-data" : testResourceDirectory; + } /** * Locates a test directory, creating it if it does not exist. =============== %< ================ This allows a much easier invoking of the unit tests in Eclipse without removing the possibility to use the system properties to overwrite the defaults. Additionally you can drop any property settings in the POM's profiles, since they all use these defaults. Also I wonder, what effect this peace of code really has: =============== %< ================ // force the SoftRefFilesCache to free all files System.err.println("."); System.gc(); Thread.sleep(1000); System.err.println("."); System.gc(); Thread.sleep(1000); System.err.println("."); System.gc(); Thread.sleep(1000); System.err.println("."); System.gc(); Thread.sleep(1000); manager.freeUnusedResources(); =============== %< ================ SoftReferences are triggered by low memory, but not by number of gc calls. AFAICS this simply slows down the tests tremendously, but have no real effect. - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org