Skip to content

Commit 33813bb

Browse files
committed
ADd debug Option
1 parent f942f0d commit 33813bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/com/inet/gradle/setup/util/TempPath.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ private void clearTemporaryFolder() throws Exception {
144144
*/
145145
public static void clearTemporaryFolder( Path tmp ) throws Exception {
146146
// Remove temporary folder and content.
147+
if ( Logging.DEBUG_LOG ) {
148+
Logging.sysout( "Will not remove path due to debugging: " + tmp.toString() );
149+
return;
150+
}
151+
147152
Files.walkFileTree( tmp, new SimpleFileVisitor<Path>() {
148153
@Override
149154
public FileVisitResult visitFile( Path file, BasicFileAttributes attrs ) throws IOException {

0 commit comments

Comments
 (0)