File tree 3 files changed +3
-2
lines changed
testng-core/src/main/java/org/testng
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ z_build
26
26
.DS_Store
27
27
outputDir /
28
28
** /Version.java
29
+ ** /bin /
Original file line number Diff line number Diff line change 1
1
Current
2
+ Fixed: GITHUB-2825: JarFileUtils.delete(File f) throw actual exception (instead of FileNotFound) when file cannot be deleted (Steven Jubb)
2
3
Fixed: GITHUB2818: Add configuration key for callback discrepancy behavior (Krishnan Mahadevan)
3
4
Fixed: GITHUB-2819: Ability to retry a data provider in case of failures (Krishnan Mahadevan)
4
5
Fixed: GITHUB-2308: StringIndexOutOfBoundsException in findClassesInPackage - Surefire/Maven - JDK 11 fails (Krishnan Mahadevan)
Original file line number Diff line number Diff line change 1
1
package org .testng ;
2
2
3
3
import java .io .File ;
4
- import java .io .FileNotFoundException ;
5
4
import java .io .IOException ;
6
5
import java .io .InputStream ;
7
6
import java .nio .file .Files ;
@@ -112,7 +111,7 @@ private void delete(File f) throws IOException {
112
111
if (f .isDirectory ()) {
113
112
for (File c : Objects .requireNonNull (f .listFiles ())) delete (c );
114
113
}
115
- if (! f . delete ()) throw new FileNotFoundException ( "Failed to delete file: " + f );
114
+ Files . deleteIfExists ( f . toPath () );
116
115
}
117
116
118
117
private boolean matchesXmlPathInJar (JarEntry je ) {
You can’t perform that action at this time.
0 commit comments