Updated test setup script with logging info, media library.
This commit is contained in:
parent
c84092b37e
commit
778b63494b
@ -2,12 +2,23 @@ import groovy.grape.Grape
|
|||||||
import groovy.sql.Sql
|
import groovy.sql.Sql
|
||||||
Grape.grab(group: 'com.zaxxer', module: 'HikariCP', version: '2.4.3')
|
Grape.grab(group: 'com.zaxxer', module: 'HikariCP', version: '2.4.3')
|
||||||
Grape.grab(group: 'org.postgresql', module: 'postgresql', version: '9.4.1207.jre7')
|
Grape.grab(group: 'org.postgresql', module: 'postgresql', version: '9.4.1207.jre7')
|
||||||
|
Grape.grab(group: 'commons-codec', module: 'commons-codec', version: '1.10')
|
||||||
|
|
||||||
|
import com.jdbernard.wdiwtlt.MediaLibrary
|
||||||
import com.jdbernard.wdiwtlt.db.ORM
|
import com.jdbernard.wdiwtlt.db.ORM
|
||||||
import com.jdbernard.wdiwtlt.db.models.*
|
import com.jdbernard.wdiwtlt.db.models.*
|
||||||
import com.zaxxer.hikari.*
|
import com.zaxxer.hikari.*
|
||||||
import org.jaudiotagger.audio.*
|
import org.jaudiotagger.audio.*
|
||||||
import org.jaudiotagger.tag.*
|
import org.jaudiotagger.tag.*
|
||||||
|
import ch.qos.logback.classic.Level
|
||||||
|
import ch.qos.logback.classic.Logger
|
||||||
|
import org.slf4j.LoggerFactory
|
||||||
|
|
||||||
|
rootLogger = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME)
|
||||||
|
rootLogger.level = Level.INFO
|
||||||
|
|
||||||
|
// myLogger = (Logger) LoggerFactory.getLogger("com.jdbernard.wdiwtlt")
|
||||||
|
// myLogger.level = Level.DEBUG
|
||||||
|
|
||||||
config = new Properties()
|
config = new Properties()
|
||||||
config.dataSourceClassName = "org.postgresql.ds.PGSimpleDataSource"
|
config.dataSourceClassName = "org.postgresql.ds.PGSimpleDataSource"
|
||||||
@ -21,3 +32,4 @@ hds = new HikariDataSource(hcfg)
|
|||||||
db = new ORM(hds)
|
db = new ORM(hds)
|
||||||
|
|
||||||
musicDir = new File('/Users/jonathan/Music')
|
musicDir = new File('/Users/jonathan/Music')
|
||||||
|
library = new MediaLibrary(db, musicDir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user