dotCMS/dotCMS — pull request #380 by mastrogiovanni (2012-05-18 07:59:30+00:00)
Title: Issue 313 time machine publisher

1) Added JNA library in order to manage hard links.
2) Duplicated in FileUtils methods to mirror file and directories using hard links
3) Duplicated method BundlerUtil.objectToXML in order to remove file before its creation (in order to work fine with hard links)

4) Added 'destination bundle' property to PublisherConfig
5) Added DirectoryMirrorBundler and TimeMachinePublisher:

this publisher will use FileAssetBundler, StaticHTMLBundler, URLMapBundler to produce an incremental static version of site that is than copied in a time machine snapshot

Fixed old bundlers to work with hard links: now each file before creation is removed if exists