diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultArtifactDescriptor.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultArtifactDescriptor.java index 3c0fc4c62f..ad27d20265 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultArtifactDescriptor.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/DefaultArtifactDescriptor.java @@ -68,10 +68,13 @@ public File getLocation(boolean fetch) { if (projectLocation != null) { return projectLocation; } - if (fetch && locationSupplier != null && (location == null || !location.exists())) { + if (fetch && locationSupplier != null && location == null) { File file = locationSupplier.apply(this); if (file != null) { location = ArtifactCollection.normalizeLocation(file); + if (!location.exists()) { + location = null; + } } } return location;