I have JAVA project which contains some *.sql files and on deploy if there is no database cleated yet I can run some classes which applies those *.sql files on database. But I have to make JAVA Jar file out of it in order to deploy. I do know how to run any class from jar, but how to add and access my *.sql in the Jar if I do not want extract the files.
The *sql files that I need is being used the following way:
mysql -uroot -ppassword < databaseStructure.sql
that creates me database. somehow I need access that file out of jar when necessary.