Revision 7e5e67b1
Added by Andreas Kohlbecker over 16 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/BerlinModelImportActivator.java | ||
---|---|---|
32 | 32 |
//static final Source berlinModelSource = BerlinModelSources.EDIT_Diptera(); |
33 | 33 |
static final Source berlinModelSource = BerlinModelSources.editWP6(); |
34 | 34 |
//static final ICdmDataSource cdmDestination = CdmDestinations.cdm_edit_diptera(); |
35 |
static final ICdmDataSource cdmDestination = CdmDestinations.cdm_portal_test(); |
|
35 |
static final ICdmDataSource cdmDestination = CdmDestinations.cdm_portal_test_localhost();
|
|
36 | 36 |
|
37 | 37 |
//authors |
38 | 38 |
static final boolean doAuthors = true; |
39 | 39 |
//references |
40 | 40 |
static final DO_REFERENCES doReferences = DO_REFERENCES.ALL; |
41 |
static final CHECK check = CHECK.CHECK_ONLY;
|
|
41 |
static final CHECK check = CHECK.CHECK_AND_IMPORT;
|
|
42 | 42 |
//names |
43 | 43 |
static final boolean doTaxonNames = true; |
44 | 44 |
static final boolean doRelNames = true; |
... | ... | |
78 | 78 |
// invoke import |
79 | 79 |
BerlinModelImport bmImport = new BerlinModelImport(); |
80 | 80 |
bmImport.doCheck(bmImportConfigurator); |
81 |
//bmImport.doImport(bmImportConfigurator);
|
|
81 |
bmImport.doImport(bmImportConfigurator); |
|
82 | 82 |
|
83 | 83 |
System.out.println("End import from BerlinModel ("+ source.getDatabase() + ")..."); |
84 | 84 |
} |
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/CdmDestinations.java | ||
---|---|---|
79 | 79 |
return makeDestination(cdmServer, cdmDB, -1, cdmUserName, null); |
80 | 80 |
} |
81 | 81 |
|
82 |
public static ICdmDataSource cdm_portal_test_localhost(){ |
|
83 |
DatabaseTypeEnum dbType = DatabaseTypeEnum.MySQL; |
|
84 |
String cdmServer = "127.0.0.1"; |
|
85 |
String cdmDB = "cdm_portal_test"; |
|
86 |
String cdmUserName = "edit"; |
|
87 |
return makeDestination(cdmServer, cdmDB, -1, cdmUserName, null); |
|
88 |
} |
|
89 |
|
|
82 | 90 |
public static ICdmDataSource cdm_edit_cichorieae(){ |
83 | 91 |
DatabaseTypeEnum dbType = DatabaseTypeEnum.MySQL; |
84 | 92 |
String cdmServer = "192.168.2.10"; |
Also available in: Unified diff