mavenのテストが通るように変更

This commit is contained in:
sada 2015-10-07 16:52:14 +09:00
parent 3259fa35cd
commit 5a500a238a
2 changed files with 20 additions and 17 deletions

View file

@ -8,7 +8,9 @@ mkdir -p $TMPDIR/petclinic
unzip /tmp/petclinic.war -d $TMPDIR/petclinic unzip /tmp/petclinic.war -d $TMPDIR/petclinic
sed -e "s/\${HOSTNAME}/$1/g" \ sed -e "/# HSQL/,/# MySQL/ s/^/#/g" \
-e "/# MySQL/,$ s/^#\([jh]\)/\1/g" \
-e "s/\${HOSTNAME}/$1/g" \
-e "s/\${SERNAME}/$2/g" \ -e "s/\${SERNAME}/$2/g" \
-e "s/\${PASSWORD}/$3/g" $PROPFILE > /tmp/jdbc.tmp$$ -e "s/\${PASSWORD}/$3/g" $PROPFILE > /tmp/jdbc.tmp$$

View file

@ -7,35 +7,36 @@
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# HSQL Settings # HSQL Settings
#jdbc.driverClassName=org.hsqldb.jdbcDriver jdbc.driverClassName=org.hsqldb.jdbcDriver
#jdbc.url=jdbc:hsqldb:mem:petclinic jdbc.url=jdbc:hsqldb:mem:petclinic
#jdbc.username=sa jdbc.username=sa
#jdbc.password= jdbc.password=
# Properties that control the population of schema and data for a new data source # Properties that control the population of schema and data for a new data source
#jdbc.initLocation=classpath:db/hsqldb/initDB.sql jdbc.initLocation=classpath:db/hsqldb/initDB.sql
#jdbc.dataLocation=classpath:db/hsqldb/populateDB.sql jdbc.dataLocation=classpath:db/hsqldb/populateDB.sql
# Property that determines which database to use with an AbstractJpaVendorAdapter # Property that determines which database to use with an AbstractJpaVendorAdapter
#jpa.database=HSQL jpa.database=HSQL
#jpa.showSql=true jpa.showSql=true
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# MySQL Settings # MySQL Settings
jdbc.driverClassName=com.mysql.jdbc.Driver #jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://${HOSTNAME}:3306/petclinic #jdbc.url=jdbc:mysql://${HOSTNAME}:3306/petclinic
jdbc.username=${USERNAME} #jdbc.username=${USERNAME}
jdbc.password=${PASSWORD} #jdbc.password=${PASSWORD}
# Properties that control the population of schema and data for a new data source # Properties that control the population of schema and data for a new data source
jdbc.initLocation=classpath:db/mysql/initDB.sql #jdbc.initLocation=classpath:db/mysql/initDB.sql
jdbc.dataLocation=classpath:db/mysql/populateDB.sql #jdbc.dataLocation=classpath:db/mysql/populateDB.sql
# Property that determines which Hibernate dialect to use # Property that determines which Hibernate dialect to use
# (only applied with "applicationContext-hibernate.xml") # (only applied with "applicationContext-hibernate.xml")
hibernate.dialect=org.hibernate.dialect.MySQLDialect #hibernate.dialect=org.hibernate.dialect.MySQLDialect
# Property that determines which database to use with an AbstractJpaVendorAdapter # Property that determines which database to use with an AbstractJpaVendorAdapter
jpa.database=MYSQL #jpa.database=MYSQL
# END