diff --git a/src/main/java/hudson/plugins/rake/RvmUtil.java b/src/main/java/hudson/plugins/rake/RvmUtil.java index 5a9ec01..c51d5c8 100644 --- a/src/main/java/hudson/plugins/rake/RvmUtil.java +++ b/src/main/java/hudson/plugins/rake/RvmUtil.java @@ -105,7 +105,7 @@ private static String buildGemPath(String currentGem, FilePath global, Collectio for (FilePath gem : candidateGems) { File gemFile = new File(gem.toURI()); String canonicalPath = gemFile.getCanonicalPath(); - if ((canonicalPath.startsWith(currentGem + "@") && gem.child("specifications").exists())) { + if ((gemFile.getCanonicalFile().toPath().startsWith(currentGem + "@") && gem.child("specifications").exists())) { paths.add(canonicalPath); } }