Development: xsyncDescriptionExtended synchronize task. Synchronizes files and/or directories and is (in a very limited way) aware of timestamps and revisioning keywords. ParametersThis task supports the following parameters.
Nested ElementsThis task supports the following nested elements. textmodeThe textmode element specifies a single file pattern that is used to determine if a file is to be processed in textmode.
For files processed in textmode the line ending style is ignored and the file comparison is done line by line. In addition files processed in textmode may contain magic strings that cause a complete line to be ignored. The following patterns are build-in:
Files not explicitly enabled for textmode are processed in binary mode, which means that a CRC-32 is calculated over the two files to determine if the contents has changed. ignoreThe ignore element specifies a single file pattern that is used to determine if a file should be completely ignored.
ExamplesThe following syncs a single file in textmode: <xsync source="foo/readme.txt" destination="bar/readme.txt"> <textmode pattern="*.txt"/> </xsync> The following statement syncs two directories, processing all HTML, XML, text files and stylesheets in text mode and ignores all files (or folders) called CVS: <xsync source="build/doc" destination="doc"> <textmode pattern="*.html"/> <textmode pattern="*.xml"/> <textmode pattern="*.txt"/> <textmode pattern="*.css"/> <ignore pattern="CVS"/> </xsync> |