Share

DITA Open Toolkit

Tracker: Feature Requests

3 Artifact output name - ID: 1534886
Last Update: Settings changed ( imagiczhang )

Is it possible to specify the artifact output name?
Using ant, I can specify the output directory but I
haven't come across documentation that indicates how
to specify the output filename (for PDF and CHM
artifacts for example.) If necessary, I could change
the name of the ditamap filename passed to the
toolkit; however, there are instances where a
parameter would be preferred. So in addition
to 'output.dir' could there be a 'output.name'
parameter ?


William Byrne ( williambyrne ) - 2006-08-05 01:18

3

Closed

None

Wu Han Si

None

None

Public


Comments ( 4 )

Date: 2006-08-10 15:59
Sender: williambyrne

Logged In: YES
user_id=174984

Thank you for the good ideas! Another approach could
involve creating a temporary input ditamap file that bears
the desired file name prior to tasking the toolkit;
however, I was hoping to eliminate the need for such
pre/post DITA ops. I can certainly work with what's
currently available.


Date: 2006-08-10 08:29
Sender: liujinmarshall

Logged In: YES
user_id=1552856

For CHM generation, you can modify
the 'build_dita2htmlhelp.xml' as following:
target: compile.HTML.Help
Add
<move file="${dita.map.output.dir}${file.separator}
${dita.map.filename.root}.hhp"
tofile="${dita.map.output.dir}${file.separator}
${output.name}.chm"/>
at the end of the target.

For PDF, modify the build_dita2pdf.xml.
Target: topic2pdf, map2pdf
Replace the output param with
${dita.map.output.dir}${file.separator}${output.name}.pdf

And you can specify the output name using output.name in
the ant parameters.


Date: 2006-08-08 14:17
Sender: williambyrne

Logged In: YES
user_id=174984

Using <move> would require my tooling to know exactly what
the name and path of the generated output articat is;
however, I'm sure that can be determined in advanced for
most cases. Despite the work-around, I believe having the
option to specify the artifact's primary output name will
prove useful.


Date: 2006-08-08 06:25
Sender: imagiczhangProject Admin

Logged In: YES
user_id=1151532

I think that by simply use the <move> in ANT can help you
get the output file renamed.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2007-07-31 07:50 imagiczhang
close_date - 2007-07-31 07:50 imagiczhang
priority 5 2006-08-08 08:06 imagiczhang
assigned_to imagiczhang 2006-08-08 08:06 imagiczhang
assigned_to nobody 2006-08-08 06:25 imagiczhang