ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Jaggard <>
Subject [Newbie] Nice way of concatenating files
Date Mon, 19 Jul 2010 15:00:28 GMT
   Sorry for the newbie question. I have written a task to concatenate
files but want to do it better (in a more platform independent way) as
it currently relies on "cat" being an available executable. Can anyone
tell me how to do this using the <concat> task or anything?

	<target name="-pre-compile">
		<apply executable="cat">
			<arg value="${web.docbase.dir}/header.html "/>
			<arg value="${web.docbase.dir}/footer.html "/>
			<fileset dir="${web.docbase.dir}/" includes="*.html.part" excludes="" />
			<mapper type="glob" from="*.html.part" to="*.html"/>
				<outputmapper id="out" type="glob" from="*.html.part"

Many thanks,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message