Skip to content

Commit 0e3f7c9

Browse files
committed
Merge pull request ccw-ide#848 from noncom/master
make java-resource-paths file find strategy ignore folders
2 parents 713702e + 4fa3023 commit 0e3f7c9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ChangeLog.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Laurent Petit <laurent dot petit at gmail dot com>
1818
=== REPL
1919
- The REPL View is now visible in all Perspectives, not only the perspective where it was opened. Fix #686
2020

21+
=== Issues
22+
- The `java-resource-paths` file finding strategy was considering folders as correct results which was wrong. Fix #847
2123

2224
== Counterclockwise 0.34.0
2325

ccw.core/src/clj/ccw/eclipse.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@
489489
(-> root-path (.append path))
490490
(-> root-path (.append package-path) (.append path)))
491491
search (workspace-resource path)]
492-
:when search]
492+
:when (and search (= IResource/FILE (.getType search)))]
493493
(.toOSString (.getLocation search)))))
494494

495495
(defn project-relative-path

0 commit comments

Comments
 (0)