intermine.properties and default.intermine.properties
Purpose
These files contain property settings that are needed to access external resources (such as databases) while integrating/loading data and while running a webapp. The actual names of the files are determined by the project.xml file for a mine.
- default.intermine.properties contains the properties that are needed by all users. For example in FlyMine we have:
db.ensembl-anopheles.datasource.class=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
which specifies that the Ensembl Anopheles data will use Mysql
- intermine.properties contains user specific properties such as database host names, user names and passwords
Copying of intermine.properties and default.intermine.properties
The intermine.properties and default.intermine.properties files are copied to the classpath by the build scripts when they are needed - before running tests, running most tasks or when producing a production webapp.
Unit test projects that need [default.]intermine.properties must copy the files to the test classpath themselves (see intermine and integrate test build.xml files). Project types that always require the two files (dbmodel and production webapp) always copy the files and you must set the name/location of the files to use in project.properties.
Which intermine.properties file to copy is determined by the intermine.properties.file property in the project.properties file. Which default.intermine.properties file to use is determined by the default.intermine.properties.file property. Note that the value of the default.intermine.properties.file property is a path relative to the project.
