return super.provide(testPack, inputDirectories, outputDirectory);
}
@Override
protected <T> long serialize(File outputDirectory, Class<T> type, String name, Reader reader) {
Environment global = JAXB.unmarshal(
reader,
Environment.class
);
for (File file : environmentXml) {
try {
Environment environment = JAXB.unmarshal(file, Environment.class);
merge(global, environment);
} catch (Exception e) {
logger.error(format("Can't unmarshal environment file %s to environment bean.", file), e);
}
}