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