Revision 65cd1f1f
Added by Patrick Plitzner about 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/plantglossary/kew/KewPlantGlossaryActivator.java | ||
---|---|---|
6 | 6 |
import org.apache.log4j.Logger; |
7 | 7 |
|
8 | 8 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
9 |
import eu.etaxonomy.cdm.database.DatabaseTypeEnum; |
|
10 | 9 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
11 | 10 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
12 | 11 |
import eu.etaxonomy.cdm.io.common.CdmDefaultImport; |
... | ... | |
44 | 43 |
public static void main(String[] args) { |
45 | 44 |
KewPlantGlossaryActivator activator = new KewPlantGlossaryActivator(); |
46 | 45 |
try { |
47 |
ICdmDataSource dataSource = CdmDestinations.makeDestination(DatabaseTypeEnum.MySQL, "127.0.0.1", "empty", 3306, "root", null); |
|
46 |
// ICdmDataSource dataSource = CdmDestinations.makeDestination(DatabaseTypeEnum.MySQL, "127.0.0.1", "empty", 3306, "root", null); |
|
47 |
ICdmDataSource dataSource = CdmDestinations.cdm_additivity_ontology(); |
|
48 | 48 |
activator.doImport(dataSource); |
49 | 49 |
} catch (IOException e) { |
50 | 50 |
e.printStackTrace(); |
Also available in: Unified diff
Add additivity_ontology to plant glossary and KEW import