Skip to content

Commit

Permalink
trace FFILibraryFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Mar 22, 2024
1 parent 08107a2 commit 02cfa6c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/PharoLauncher-Tests-Functional/FFILibraryFinder.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Extension { #name : #FFILibraryFinder }

{ #category : #'*PharoLauncher-Tests-Functional' }
FFILibraryFinder >> findAnyLibrary: aCollection [

self traceCr: '[FFILibraryFinder] Smalltalk imageDirectory fullName = ', Smalltalk imageDirectory fullName.
self traceCr: '[FFILibraryFinder] Smalltalk vm directory = ', Smalltalk vm directory.
aCollection do: [ :eachName |
self paths do: [ :each | | path |
path := each / eachName.
self traceCr: '[FFILibraryFinder] searching ', path fullName.
path exists
ifTrue: [ self traceCr: '[FFILibraryFinder] searching ', path fullName. ^ path fullName ] ] ].
self traceCr: 'flush'.
self error: ('Cannot locate any of {1}. Please check if it installed on your system' format: { aCollection asString })
]

0 comments on commit 02cfa6c

Please sign in to comment.