Revision 31e57990
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; |
|
9 | 10 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
10 | 11 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
11 | 12 |
import eu.etaxonomy.cdm.io.common.CdmDefaultImport; |
... | ... | |
43 | 44 |
public static void main(String[] args) { |
44 | 45 |
KewPlantGlossaryActivator activator = new KewPlantGlossaryActivator(); |
45 | 46 |
try { |
46 |
// ICdmDataSource dataSource = CdmDestinations.makeDestination(DatabaseTypeEnum.MySQL, "127.0.0.1", "empty", 3306, "root", null);
|
|
47 |
ICdmDataSource dataSource = CdmDestinations.cdm_additivity_ontology(); |
|
47 |
ICdmDataSource dataSource = CdmDestinations.makeDestination(DatabaseTypeEnum.MySQL, "127.0.0.1", "empty", 3306, "root", null); |
|
48 |
// ICdmDataSource dataSource = CdmDestinations.cdm_additivity_ontology();
|
|
48 | 49 |
activator.doImport(dataSource); |
49 | 50 |
} catch (IOException e) { |
50 | 51 |
e.printStackTrace(); |
Also available in: Unified diff
Adapt imports to tem model changes