ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
Subject Re: concatonating scripts
Date Thu, 01 Apr 2004 15:36:58 GMT
the fixlastline attribute of the  concat task does not apply to nested 
text of the task. (most
likely this is an error).
As a work-around, use

  <concat destfile="${PARENT}" append="true">DEFINE SPDATE= '${SPDATE}'${line.separator}</concat>

Peter wrote:

>I am using the following target code and I need to have a new line placed
>after each of the concats.  It seems to work fine when I add the text files
>but when I just add the text, I get one line instead of two.
>I get
>I want
>DEFINE SPDATE= '04012004'
>  <target name="generateSQL" >
>                <concat destfile="${PARENT}" >
>                 <filelist dir="${builds}" files="parent1.txt"/>
>                </concat>
>                <concat destfile="${PARENT}" append="true" fixlastline="yes"
>eol="dos">DEFINE SPDATE= '${SPDATE}'</concat>
>                <concat destfile="${PARENT}" append="true">DEFINE CHILDFILE=
>                <concat destfile="${PARENT}" append="true" >
>                 <filelist dir="${builds}" files="parent2.txt"/>
>                </concat>
>          </target>
>How do I do this?
> WARNING:  The information contained in this message and any attachments is
>intended only for the use of the individual or entity to which it is
>addressed.  This message may contain information that is privileged,
>confidential and exempt from disclosure under applicable law.  It may also
>contain trade secrets and other proprietary information for which you and
>your employer may be held liable for disclosing.  You are hereby notified
>that any unauthorized dissemination, distribution or copying of this
>communication is strictly prohibited.  If you have received this
>communication in error,  please notify by E-Mail and then
>destroy this communication in a manner appropriate for privileged
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message