Author: bodewig Date: Thu Jun 10 09:28:46 2010 New Revision: 953261 URL: http://svn.apache.org/viewvc?rev=953261&view=rev Log: provide file name when you fail to delete the temporary file. PR 49419
Modified: ant/core/trunk/WHATSNEW ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java Modified: ant/core/trunk/WHATSNEW URL: http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=953261&r1=953260&r2=953261&view=diff ============================================================================== --- ant/core/trunk/WHATSNEW (original) +++ ant/core/trunk/WHATSNEW Thu Jun 10 09:28:46 2010 @@ -41,6 +41,10 @@ Fixed bugs: certain circumstances. Bugzilla Report 49296. + * <junit> will now produce better diagnostics when it fails to delete + a temporary file. + Bugzilla Report 49419. + Other changes: -------------- Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java?rev=953261&r1=953260&r2=953261&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java Thu Jun 10 09:28:46 2010 @@ -1055,7 +1055,8 @@ public class JUnitTask extends Task { if (!FILE_UTILS.tryHardToDelete(propsFile)) { throw new BuildException("Could not delete temporary " - + "properties file."); + + "properties file '" + + propsFile.getAbsolutePath() + "'."); } }