2 * Copyright (C) 2008 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
7 package eu
.etaxonomy
.cdm
.app
.excelImport
.distribution
;
11 import org
.apache
.log4j
.Logger
;
13 import eu
.etaxonomy
.cdm
.app
.common
.CdmDestinations
;
14 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
15 import eu
.etaxonomy
.cdm
.io
.common
.CdmDefaultImport
;
16 import eu
.etaxonomy
.cdm
.io
.excel
.distribution
.DistributionImportConfigurator
;
20 * @author a.babadshanjan
23 public class CichorieaeDistributionActivator
{
25 private static String fileName
= new String( System
.getProperty("user.home") + File
.separator
+ "Africa plus x.xls");
26 private static final String dbName
= "cdm_test_jaxb2";
28 private static final ICdmDataSource destinationDb
= CdmDestinations
.CDM_DB(dbName
);
29 private static final Logger logger
= Logger
.getLogger(CichorieaeDistributionActivator
.class);
31 public static void main(String
[] args
) {
33 DistributionImportConfigurator distributionImportConfigurator
=
34 DistributionImportConfigurator
.NewInstance(fileName
, destinationDb
);
36 CdmDefaultImport
<DistributionImportConfigurator
> distributionImport
=
37 new CdmDefaultImport
<DistributionImportConfigurator
>();
40 distributionImport
.invoke(distributionImportConfigurator
);