Project

General

Profile

Revision d0834e21

IDd0834e214ae06e4753712e1dd7ee3d97788f3431
Parent 2b987624
Child aea90ab7

Added by Andreas Müller over 2 years ago

ref #6524 add reporting to FaunaEuropaea import

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/faueu/FaunaEuropaeaDistributionUpdateActivator.java
9 9
package eu.etaxonomy.cdm.app.faueu;
10 10

  
11 11
import java.net.URI;
12
import java.util.List;
13 12
import java.util.UUID;
14 13

  
15 14
import org.apache.log4j.Logger;
......
58 57
        config.setDbSchemaValidation(DbSchemaValidation.VALIDATE);
59 58
        config.setCheck(check);
60 59
        config.setNomenclaturalCode(NomenclaturalCode.ICZN);
60
//        config.setCreateNewDistribution(false);
61 61

  
62 62
        try {
63 63
            ImportResult result = new CdmDefaultImport<ExcelDistributionUpdateConfigurator>().invoke(config);
64
            List<byte[]> reports = result.getReports();
64
            String report = result.createReport().toString();
65
            System.out.print(report);
65 66
        } catch (Exception e) {
66 67
            e.printStackTrace();
67 68
        }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)