Skip to content

Commit b1ff1d7

Browse files
authored
Merge pull request #480 from ChinthakaJ98/fix-ls-issues-04
2 parents b240e97 + 86fccca commit b1ff1d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/customservice/synapse/parser/IntegrationProjectDownloadManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.io.File;
2525
import java.io.IOException;
2626
import java.io.InputStream;
27+
import java.nio.file.Files;
2728
import java.nio.file.Path;
2829
import java.util.ArrayList;
2930
import java.util.HashSet;
@@ -153,6 +154,7 @@ static void fetchDependencyRecursively(DependencyDetails dependency, File downlo
153154
try {
154155
transitiveDependencies = parseDescriptorFile(carFile, isVersionedDeploymentEnabled);
155156
} catch (Exception e) {
157+
Files.deleteIfExists(carFile.toPath());
156158
throw e;
157159
}
158160

0 commit comments

Comments
 (0)