]> source.dussan.org Git - sonarqube.git/blob
1e4dfcc540332c6bc7533c25f2825f1194645f96
[sonarqube.git] /
1 tried_gem = false
2 begin
3   require "jdbc/sqlite3"
4 rescue LoadError
5   unless tried_gem
6     require 'rubygems'
7     gem "jdbc-sqlite3"
8     tried_gem = true
9     retry
10   end
11   # trust that the sqlite jar is already present
12 end
13 require 'active_record/connection_adapters/jdbc_adapter'