Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/wp6/cichorieae/CichorieaeImageActivator.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.cdm.app.wp6.cichorieae; |
11 | 11 |
|
12 |
import java.io.File; |
|
13 | 12 |
import java.util.UUID; |
14 | 13 |
|
15 | 14 |
import org.apache.log4j.Logger; |
... | ... | |
30 | 29 |
@SuppressWarnings("unused") |
31 | 30 |
private static final Logger logger = Logger.getLogger(CichorieaeImageActivator.class); |
32 | 31 |
|
33 |
public static final File sourceFolder = new File("\\\\media\\editwp6\\photos"); |
|
34 |
// private static final File sourceFile = new File("src/main/resources/images/images_cich.xls"); |
|
32 |
// private static final File sourceFile = new File("src/main/resources/images/images_cich.xls"); |
|
35 | 33 |
private static final ICdmDataSource cdmDestination = CdmDestinations.localH2Cichorieae(); |
36 | 34 |
// private static final ICdmDataSource cdmDestination = CdmDestinations.cdm_import_cichorieae(); |
37 | 35 |
|
... | ... | |
40 | 38 |
static final UUID treeUuid = UUID.fromString("534e190f-3339-49ba-95d9-fa27d5493e3e"); |
41 | 39 |
|
42 | 40 |
public static void main (String[] cowabunga){ |
41 |
|
|
43 | 42 |
ICdmDataSource destination = CdmDestinations.chooseDestination(cowabunga) != null ? CdmDestinations.chooseDestination(cowabunga) : cdmDestination; |
44 | 43 |
|
45 | 44 |
ImageImportConfigurator imageConfigurator = ImageImportConfigurator.NewInstance( |
46 |
sourceFolder, destination, CichorieaeImageImport.class);
|
|
45 |
CichorieaeActivator.imageFolder, destination, CichorieaeImageImport.class);
|
|
47 | 46 |
imageConfigurator.setSecUuid(secUuid); |
48 | 47 |
imageConfigurator.setTaxonomicTreeUuid(treeUuid); |
49 | 48 |
|
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk