#139 - Copy task for EPub and PDF now works for multi-module projects.

The copy task is now set up to be lenient so that it doesn’t fail the builds for multi-module builds as they of course don’t have the files to copy in every module.

Also we switched to ${project.root} as copy target so that the assembly plugin picks up the generated documents for multi-module builds.
This commit is contained in:
Oliver Gierke
2015-01-29 14:08:57 +01:00
parent 6f799361f6
commit 4a649202f9

View File

@@ -266,8 +266,8 @@
<phase>process-resources</phase>
<configuration>
<target>
<copy file="${project.build.directory}/generated-docs/index.pdf" tofile="${project.basedir}/target/site/reference/pdf/${dist.id}-reference.pdf"/>
<copy file="${project.build.directory}/generated-docs/index.epub" tofile="${project.basedir}/target/site/reference/epub/${dist.id}-reference.epub"/>
<copy file="${project.build.directory}/generated-docs/index.pdf" tofile="${project.root}/target/site/reference/pdf/${dist.id}-reference.pdf" failonerror="false" />
<copy file="${project.build.directory}/generated-docs/index.epub" tofile="${project.root}/target/site/reference/epub/${dist.id}-reference.epub" failonerror="false" />
</target>
</configuration>
<goals>