Skip to content
Snippets Groups Projects
Commit 730fa91d authored by Thorsten Vitt's avatar Thorsten Vitt
Browse files

Adjust target file name if we use a transformation

parent 8409ce0a
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
<properties>
<commons-io-version>2.4</commons-io-version>
<link-rewriter-version>0.4.0-SNAPSHOT</link-rewriter-version>
<link-rewriter-version>0.4.1-SNAPSHOT</link-rewriter-version>
<saxon-version>9.5.1-5</saxon-version> <!-- XXX mind dependency from epubcheck -->
<cxf-version>2.7.11</cxf-version>
<confclient-version>1.4.0</confclient-version>
......
......@@ -268,6 +268,8 @@ private void addToMapping(final ImportMapping mapping,
final AggregationEntry entry) {
final String format = ((AggregationEntry) entry).getFormat();
if (!onlySomeFormats || isAllowedFormat(format)) {
if (transformation.isPresent() && "text/xml".equals(entry.getFormat()))
entry.setTransformedFormat(transformation.get().targetFormat);
final ImportEntry importObject = new ImportEntry(
(AggregationEntry) entry);
importObject.setLocalData(policy.getFilename(entry).toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment