Need to be able to output PDF with different file names from single book and pom.xml file combo

Bug #1013217 reported by Anne Gentle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Wishlist
Anne Gentle

Bug Description

I'm debugging the install guide again, this time to get the PDF file name link correct for both outputs. Is there any way to either insert the processing instruction at build time with a variable in the pom.xml file or can I make two processing instructions in the book file, one for each output (apt and yum)?

The guide contains:
<?rax pdf.url="../openstack-install-guide-essex.pdf" subtitle.font.size="20px"?>

The link will be wrong for either build, since the pom.xml file contains:

<move failonerror="false"
                                    file="${basedir}/target/docbkx/pdf/bk_openstackinstallguide.pdf"
                                    tofile="${basedir}/target/docbkx/webhelp/${release.path.name}/openstack-compute/install/${operating.system}/openstack-install-guide-${release.path.name}-${operating.system}.pdf"/>

So I'll change the pom file for the quick fix to get the links correct, but I'm wondering if there's a way to ensure I know which PDF is which for web analytics tracking?

Tom Fifield (fifieldt)
Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Anne Gentle (annegentle) wrote :

From David Cramer:

you can just set <pdfUrl> in your pom instead of in the processing instruction.

Set it to a different value in each <execution>. I'm not sure which
would win if you do it both in the PI and in the pom. I suspect the pom
would win.

Changed in openstack-manuals:
assignee: nobody → Anne Gentle (annegentle)
Revision history for this message
Anne Gentle (annegentle) wrote :
Changed in openstack-manuals:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.