ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Change in text output from 1.5 to 1.6
Date Mon, 11 Apr 2005 22:05:38 GMT
Looks like you may want to try setting fixlastline to
true on concat.

-Matt

--- Michele Brissette <MBrissette@lgc.com> wrote:
> I have the following code that keeps a log of my
> builds.  When I
> upgraded to Ant 1.6 from 1.5, the output of the
> following code changed.
>  
> 
> 	<!--   append info from the lastbuild files to a
> running log -->
> 	
> 
> 	<target name="append-to-history-log">
> 	    <concat destfile="${history.file}"
> append="true">
> 	 
> 	---------------------------</concat>
> 	    <concat destfile="${history.file}"
> append="true">
> 	        <filelist dir="${lastbuild.files.dir}"
> files="${lastbuild.buildno.filename}"/>
> 	     </concat>
> 	     <concat destfile="${history.file}"
> append="true">.</concat>
> <!-- Line break -->
> 	     <concat destfile="${history.file}"
> append="true">
> 	         <filelist dir="${lastbuild.files.dir}"
>
files="${lastbuild.date.filename},${lastbuild.time.filename}"/>
> 	     </concat>
> 	     <concat destfile="${history.file}"
> append="true">
> 	        <filelist dir="${lastbuild.files.dir}"
> files="${lastbuild.user.filename}"/>
> 	     </concat>
> 	</target>
> 
>  
> Ant 1.5 produced the following output:
> 
> 	
> 	---------------------------
> 	2003.14.0.0.4106.
> 	2004.10.2609:27hbl4529
> 	
> 	---------------------------
> 	2003.14.0.0.4107.
> 	2004.10.2613:25hbl4529
> 	
> 	---------------------------
> 	2003.14.0.0.4108.
> 	2004.10.2617:24hbl4529
> 	 
> 
> Ant 1.6 produced this output:
> 
> 	
>
---------------------------2003.14.0.0.4188.2004.11.1921:01hbl4529
> 	
> 	
>
---------------------------2003.14.0.0.4189.2004.11.2009:29hbl4529
> 	
> 	
>
---------------------------2003.14.0.0.4190.2004.11.2013:31hbl4529
> 	
> 	
>
---------------------------2003.14.0.0.4191.2004.11.2017:31hbl4529
> 
>  
> How can I correct this output to be more readable? 
> What was changed in
> 1.6 that effected output?
>  
>  
> I can get it working again by using multiple text
> files but it seems
> like a messy solution. 
>  
> If I create a header file
> (build-history-log.starttemplate) and a file
> for a space (space.tmp),  I can get it to work with
> the following code:
> 
> 	<target name="append-to-history-log">
> 	     <concat destfile="${history.file}"
> append="true">
> 	          <filelist dir="${lastbuild.files.dir}"
> files="build-history-log.starttemplate"/>
> 	     </concat>
> 	     <concat destfile="${history.file}"
> append="true"
> eol="crlf">
> 	          <filelist dir="${lastbuild.files.dir}"
> files="${lastbuild.buildno.filename}"/>
> 	     </concat>
> 	     <concat destfile="${history.file}"
> append="true"
> eol="crlf">
> 	          <filelist dir="${lastbuild.files.dir}"
> files="return.tmp"/>
> 	     </concat>
> 	     <concat destfile="${history.file}"
> append="true"
> eol="crlf">
> 	          <filelist dir="${lastbuild.files.dir}"
>
files="${lastbuild.date.filename},space.tmp,${lastbuild.time.filename},s
> pace.tmp,${lastbuild.user.filename}"/>
> 	     </concat>
> 	</target>
> 
> I'd rather not rely on outside files but if there
> aren't any other
> suggestions I'll use my fix.
>  
>  
>  
> Michele Brissette
>  
> Software Developer
> Landmark Graphics Canada, Inc.
> Direct: (403) 218-2227  (x8227)
> Email:  mbrissette@lgc.com
> <http://www.lgc.com/> 
>  
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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


Mime
View raw message