#### 44.6.5 Understanding which files are copied from where

If WrapPath has a value other than the project directory when you run a conversion, by default DITA2Go does the following:

- If the directory designated by WrapPath already exists, and EmptyWrapPath=Yes (the default), DITA2Go deletes the prior contents; otherwise DITA2Go creates the directory.
- After converting your document, DITA2Go copies necessary files from the project directory to the WrapPath directory (and to subdirectories, if appropriate). Table 44-2 lists the files that are copied by default.

For example, to have DITA2Go copy to the WrapPath directory only HTML files and just one particular JavaScript file from the project directory, and all other JavaScript files from another directory:

    [Automation]
    WrapAndShip=Yes
    WrapPath=.\Done
    WrapCopyFiles = *.htm justone.js ..\jsfiles\*.js

With these settings, DITA2Go also copies graphics files and CSS files from the project directory, unless you specify otherwise; see §44.7 Placing graphics files for distribution and §44.8 Placing CSS or XSL files for assembly.

Table 44-2 Files copied by default to the wrap directory

Output type | Files copied by default to the wrap directory, via:
WrapCopyFiles | GraphCopyFiles | CssCopyFiles
* Second group of files is copied to the HTML subdirectory. See §20.3.6 Creating a directory structure for JavaHelp / Oracle Help. ** For OmniHelp, additional files are copied from a viewer directory; see §19.13 Assembling OmniHelp files for viewing.
HTML, XHTML, XML |
    *.htm *.html *.xml *.dtd
    *.mod *.ent *.txt *.xsd
    *.js
    *.gif *.jpg *.png
    *.css *.xsl
DITA |
    *.dita *.ditamap *.bookmap
    *.dtd *.mod *.ent *.xsd
    *.gif *.jpg *.png
    *.css *.xsl
HTML Help |
    *.htm *.hh? *.h *.js
    *.gif *.jpg *.png
    *.css *.xsl
Eclipse Help |
    *.htm *.js *.xml
    *.gif *.jpg *.png
    *.css *.xsl
JavaHelp, Oracle Help * |
    *.xml *.hs *.jhm
    *.htm *.js
    *.gif *.jpg *.png
    *.css *.xsl
OmniHelp ** |
    *.htm *.oh?
    *.gif *.jpg *.png
    *.css *.xsl
WinHelp |
    *.rtf *.hpj *.cnt *.h
    *.bmp *.wmf
| Not applicable
Word |
    *.rtf
    *.bmp *.wmf
| Not applicable

For all output types, files specified by GraphCopyFiles (default *.gif, *.jpg, *.png, and *.svg for HTML, or *.bmp and *.wmf for RTF) are copied from the project directory to the GraphPath directory; or to a subdirectory, for JavaHelp and Oracle Help; see §44.7.1 Copying referenced graphics to a distribution directory.

For all HTML output types, files specified by CssCopyFiles (default *.css and *.xsl) are copied from the project directory to the CssPath directory; see §44.8 Placing CSS or XSL files for assembly.

Previous Topic: 44.6.4 Understanding when to use other file copy settings

Next Topic: 44.6.6 Listing extracurricular files to put in the wrap directory

Parent Topic: 44.6 Assembling files for distribution

Sibling Topics:

44.6.1 Specifying a wrap directory

44.6.2 Emptying the wrap directory before copying

44.6.3 Listing files to copy to the wrap directory

44.6.4 Understanding when to use other file copy settings

44.6.6 Listing extracurricular files to put in the wrap directory

Table of Contents • Index