Navigation Menu

Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Let ClassBytesRepository ignore invalid classpath entries #1039

Merged
merged 2 commits into from Aug 14, 2018

Conversation

eskatos
Copy link
Member

@eskatos eskatos commented Aug 14, 2018

In order to prevent unexpected failures when the classpath contains invalid entries that should be ignored.

See #1021

Signed-off-by: Paul Merlin <paul@gradle.com>
@eskatos eskatos added this to the 1.0.0 milestone Aug 14, 2018
@eskatos eskatos self-assigned this Aug 14, 2018
@eskatos eskatos requested a review from bamboo August 14, 2018 09:57
*/
private
val File.isClassPathArchive
get() = extension.equals("jar", ignoreCase = true) || extension.equals("zip", ignoreCase = true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Compute extension only once with extension.run { equals(...) || equals(...) }

@eskatos eskatos modified the milestones: 1.0.0, 1.0-RC4 Aug 14, 2018
by computing classpath entry file extension once

Signed-off-by: Paul Merlin <paul@gradle.com>
@bamboo bamboo merged commit 301c444 into develop Aug 14, 2018
@eskatos eskatos deleted the eskatos/classbytes-repo/invalid-entries branch August 14, 2018 16:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants