|
ConcatDescriptionConcatenates a file, or a series of files, to a single file or the console. The destination file will be created if it does not exist, though the the append attribute may be used to alter this behavior. FileSets and/or FileLists are used to select which files are to be concatenated. There is no singular 'file' attribute to specify a single file to cat -- a fileset or filelist must also be used in these cases. Parameters
Parameters specified as nested elementsfilesetFileSets are used to select files to be concatenated. Note that the order in which the files selected from a fileset are concatenated is not guaranteed. If this is an issue, use multiple filesets or consider using filelists. filelistFileLists are used to select files to be concatenated. The file ordering in the files attribute will be the same order in which the files are concatenated. ExamplesConcatenate a string to a file: <concat destfile="README">Hello, World!</concat> Concatenate a series of files to the console: <concat> <fileset dir="messages" includes="*important*"/> </concat> Concatenate a single file, appending if the destination file exists: <concat destfile="NOTES" append="true"> <filelist dir="notes" files="note.txt"/> </concat> Concatenate a series of files, overwriting if the destination file exists: <filelist dir="${docbook.dir}/sections" <fileset dir="${docbook.dir}" </concat> Copyright © 2002 Apache Software Foundation. All Rights Reserved. |