Excluding Dotfiles
In all ePublisher formats that automatically publish files from the "Files" folder, it is often desired to disable the publishing of "Dotfiles" or files that have a period as the first character. Examples are ".svn" and ".cvs".
This tip provides a simple way for ePublisher formats based on the 9.2.2 release to disable this behavior by simply overriding the file: Formats/Shared/common/files/copy.xsl.
Steps
- Copy the file:
<ePublisher Pro Installation Directory>/Formats/Shared/common/files/copy.xsl
to your project's equivalent at:<Master Project>/Formats/<Format Name>/Shared/common/files/copy.xsl
- Change line 87 from:
<xsl:variable name="VarIgnore" select="wwfilesystem:CopyFile($VarSourcePath, $VarDestinationPath)" />
to:<!-- Override to not copy files with \. in their filename --> <xsl:if test="contains($VarSourcePath, '\.') = false()"> <xsl:variable name="VarIgnore" select="wwfilesystem:CopyFile($VarSourcePath, $VarDestinationPath)" /> </xsl:if>
- Close and re-open project. Re-deploy stationery and regenerate projects.