Project

General

Profile

« Previous | Next » 

Revision 2eee7850

Added by Andreas Müller over 4 years ago

ref #1444 minor fixes for ErmsImportActivator

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/app/pesi/ErmsImportActivator.java
45 45

  
46 46
	static final boolean includeExport2PESI = false;
47 47
	static final Source pesiDestination = !includeExport2PESI ? null :
48
	        cdmDestination.equals(CdmDestinations.cdm_test_local_mysql_erms())?
48
	        cdmDestination.getDatabase().equals(CdmDestinations.cdm_test_local_mysql_erms().getDatabase())?
49 49
	                PesiDestinations.pesi_test_local_CDM_ERMS2PESI():
50 50
	                PesiDestinations.pesi_test_local_CDM_ERMS2PESI_2()    ;
51 51

  
......
64 64
	static final boolean doRelTaxa = doTaxa; //should always run with doTaxa because dependent on state from doTaxa
65 65
	static final boolean doSourceUse = true;
66 66
	static final boolean doCommonNames = true;
67
    static final boolean doNotes = true;
67
	static final boolean doNotes = true;
68 68
	static final boolean doDistributions = true;
69 69
	static final boolean doLinks = true;
70 70
	static final boolean doImages = true;
......
77 77
//
78 78
//	static final boolean doSourceUse = false;
79 79
//	static final boolean doCommonNames = false;
80
//    static final boolean doNotes = false;
81
//    static final boolean doDistributions = false;
80
//  static final boolean doNotes = false;
81
//  static final boolean doDistributions = false;
82 82
//	static final boolean doLinks = false;
83 83
//	static final boolean doImages = false;
84 84

  
......
130 130
		ErmsImportActivator ermsImport = new ErmsImportActivator();
131 131
		ermsImport.doImport(ermsSource, cdmDB, hbm2dll);
132 132

  
133
		if (includeExport2PESI){
133
		if (includeExport2PESI && check != CHECK.CHECK_ONLY){
134 134
			PesiExportActivatorERMS ermsExport = new PesiExportActivatorERMS();
135 135
			ermsExport.doTaxa = doTaxa;
136 136
			ermsExport.doTreeIndex = doTaxa;

Also available in: Unified diff