Revision d54b2adc
Added by Andreas Müller almost 12 years ago
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/EfloraSources.java | ||
---|---|---|
75 | 75 |
return URI.create("file:C:/localCopy/Data/eflora/floraMalesiana/ser2_vol2/ser2vol2final1.xml"); |
76 | 76 |
} |
77 | 77 |
|
78 |
//Flora Malesiana Vol 13-1
|
|
79 |
public static URI fg_sample(){ |
|
78 |
//Flore du Gabon sample
|
|
79 |
public static URI fdg_sample(){
|
|
80 | 80 |
return URI.create("file:/E:/opt/data/floreGabon/sample.xml"); |
81 | 81 |
} |
82 | 82 |
|
83 |
//Flore du Gabon vol 1 |
|
84 |
public static URI fdg_1(){ |
|
85 |
return URI.create("file:/E:/opt/data/floreGabon/fdgvol1_9.xml"); |
|
86 |
} |
|
87 |
|
|
88 |
|
|
83 | 89 |
} |
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/FloreGabonActivator.java | ||
---|---|---|
46 | 46 |
|
47 | 47 |
//database validation status (create, update, validate ...) |
48 | 48 |
static DbSchemaValidation hbm2dll = DbSchemaValidation.CREATE; |
49 |
static final URI fg_sample = EfloraSources.fg_sample(); |
|
49 |
// static final URI source = EfloraSources.fdg_sample(); |
|
50 |
static final URI fdg1 = EfloraSources.fdg_1(); |
|
50 | 51 |
|
51 | 52 |
|
52 | 53 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_flore_gabon_preview(); |
... | ... | |
70 | 71 |
//taxa |
71 | 72 |
static final boolean doTaxa = true; |
72 | 73 |
|
73 |
private boolean includeFgSample = true;
|
|
74 |
private boolean includeFdg1 = true;
|
|
74 | 75 |
|
75 | 76 |
|
76 | 77 |
|
... | ... | |
86 | 87 |
check = CHECK.CHECK_ONLY; |
87 | 88 |
} |
88 | 89 |
|
89 |
//make Source
|
|
90 |
URI source = fg_sample;
|
|
90 |
//make config
|
|
91 |
URI source = fdg1;
|
|
91 | 92 |
MarkupImportConfigurator markupConfig= MarkupImportConfigurator.NewInstance(source, cdmDestination); |
92 | 93 |
markupConfig.setClassificationUuid(classificationUuid); |
93 | 94 |
markupConfig.setDoTaxa(doTaxa); |
... | ... | |
102 | 103 |
|
103 | 104 |
CdmDefaultImport<MarkupImportConfigurator> myImport = new CdmDefaultImport<MarkupImportConfigurator>(); |
104 | 105 |
|
105 |
//Vol13_2
|
|
106 |
if (includeFgSample){
|
|
107 |
System.out.println("\nStart import from ("+ fg_sample.toString() + ") ...");
|
|
108 |
source = fg_sample;
|
|
106 |
//Vol1 |
|
107 |
if (includeFdg1){
|
|
108 |
System.out.println("\nStart import from ("+ fdg1.toString() + ") ...");
|
|
109 |
source = fdg1;
|
|
109 | 110 |
markupConfig.setSource(source); |
110 | 111 |
myImport.invoke(markupConfig); |
111 |
System.out.println("End import from ("+ fg_sample.toString() + ")...");
|
|
112 |
System.out.println("End import from ("+ fdg1.toString() + ")...");
|
|
112 | 113 |
} |
113 | 114 |
|
114 | 115 |
|
Also available in: Unified diff
minor updates for FdG