ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36879] - concat task doesnt seem to work on linux installation of ant
Date Fri, 30 Sep 2005 17:19:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36879>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36879





------- Additional Comments From peterreilly@apache.org  2005-09-30 19:19 -------
You need to put the new line in the embedded text.
Use:
<concat destfile="${anthome.dir}/DeploymentHistory.log" 
append="yes">WEB Build ${treeLabel}    deployed on    ${Machine}     at     
${DEP_DATETIME}${line.separator}</concat>
so for example:
<project default="c">
  <target name="c">
    <delete quiet="yes" file="c.out"/>
    <concat destfile="c.out" append="yes">Hello world${line.separator}</concat>
    <concat destfile="c.out" append="yes">Hello world${line.separator}</concat>
    <concat destfile="c.out" append="yes">Hello world${line.separator}</concat>
    <concat destfile="c.out" append="yes">Hello world${line.separator}</concat>
    <concat destfile="c.out" append="yes">Hello world${line.separator}</concat>
    <concat destfile="c.out" append="yes">Hello world${line.separator}</concat>
    <concat><fileset file="c.out"/>
    </concat>
  </target>
</project>
outputs:
c:
Deleting: /home/preilly/learning/a/concat/c.out
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world

BUILD SUCCESSFUL
Total time: 0 seconds

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message