use of org.finos.waltz.jobs.tools.importers.licence.spdx.SpdxLicenceImporter in project waltz by khartec.
the class LicenceGenerator method create.
@Override
public Map<String, Integer> create(ApplicationContext ctx) {
try {
DSLContext dsl = getDsl(ctx);
LicenceDao licenceDao = ctx.getBean(LicenceDao.class);
SpdxLicenceImporter spdxLicenceImporter = new SpdxLicenceImporter(dsl, licenceDao);
FinosLicenceComplianceImporter finosImporter = new FinosLicenceComplianceImporter(dsl, licenceDao);
spdxLicenceImporter.doImport();
finosImporter.doImport();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
Aggregations