stevel 02/04/11 20:22:28 Modified: docs/manual/CoreTasks concat.html Log: using concat everywhere Revision Changes Path 1.3 +24 -20 jakarta-ant/docs/manual/CoreTasks/concat.html Index: concat.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/concat.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- concat.html 10 Apr 2002 15:33:09 -0000 1.2 +++ concat.html 12 Apr 2002 03:22:28 -0000 1.3 @@ -1,14 +1,13 @@ - - + - Ant User Manual + Concat -

Concat

+

Concat

Description

@@ -41,10 +40,10 @@ destfile The destination file for the concatenated stream. + If not specified the console will be used instead. - No, the console will be used as the destination for the - stream in the absence of this attribute. + No, @@ -61,7 +60,8 @@ encoding Specifies the encoding for the input files. Please see http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html + href="http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html"> + http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html for a list of possible values. Defaults to the platform's default character encoding. @@ -93,35 +93,39 @@

Examples

-

Cat a string to a file:

+

Concatenate a string to a file:

  -  <cat tofile="README">Hello, World!</cat>
  +  <concat tofile="README">Hello, World!</concat>
         
-

Cat a series of files to the console:

+

Concatenate a series of files to the console:

  -  <cat>
  +  <concat>
       <fileset dir="messages" includes="*important*" />
  -  </cat>
  +  </concat>
         
-

Cat a single file, appending if the destination file exists:

+

Concatenate a single file, appending if the destination file exists:

  -  <cat tofile="NOTES" append="true">
  +  <concat tofile="NOTES" append="true">
       <filelist dir="notes" files="note.txt" />
  -  </cat>
  +  </concat>
         
-

Cat a series of files, overwriting if the destination file exists:

+

Concatenate a series of files, overwriting if the + destination file exists:

  -  <cat tofile="${docbook.dir}/all-sections.xml">
  -    <filelist dir="${docbook.dir}/sections" files="introduction.xml,overview.xml" />
  -    <fileset dir="${docbook.dir}" includes="sections/*.xml" excludes="introduction.xml,overview.xml" />
  -  </cat>
  +  <concat tofile="${docbook.dir}/all-sections.xml">
  +    <filelist dir="${docbook.dir}/sections" 
  +         files="introduction.xml,overview.xml" />
  +    <fileset dir="${docbook.dir}" 
  +         includes="sections/*.xml" 
  +         excludes="introduction.xml,overview.xml" />
  +  </concat>
         

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