Revision 65cd1f1f
Added by Patrick Plitzner about 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/plantglossary/PlantGlossaryActivator.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; |
... | ... | |
41 | 40 |
public static void main(String[] args) { |
42 | 41 |
PlantGlossaryActivator activator = new PlantGlossaryActivator(); |
43 | 42 |
try { |
44 |
ICdmDataSource dataSource = CdmDestinations.makeDestination(DatabaseTypeEnum.MySQL, "127.0.0.1", "empty", 3306, "root", null); |
|
43 |
// ICdmDataSource dataSource = CdmDestinations.makeDestination(DatabaseTypeEnum.MySQL, "127.0.0.1", "empty", 3306, "root", null); |
|
44 |
ICdmDataSource dataSource = CdmDestinations.cdm_additivity_ontology(); |
|
45 | 45 |
activator.doImport(dataSource); |
46 | 46 |
} catch (IOException e) { |
47 | 47 |
e.printStackTrace(); |
Also available in: Unified diff
Add additivity_ontology to plant glossary and KEW import