java ee – list files in resources folder
in my Java ee project (war
file) I have scripts stored under /src/main/resources/sql/admin
. These scripts are named with a certain syntax. I am trying to determine all the scripts in the folder, sort them according to the syntax and then execute them if necessary. Unfortunately, it is not possible for me to determine a list of all scripts (*.sql
) from the said folder.