ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <sflo...@nc.rr.com>
Subject Re: Regular expression for deleting new lines with Ant
Date Thu, 19 Nov 2009 18:28:57 GMT

If I remember correctly, someone had a similar question...  To get around 
the issue they used one of the Java built in properties like 
${line.separator} instead of \n for example...


On Thu, 19 Nov 2009, christoforever wrote:

>
> I'm trying to remove all the new lines and/or lines full of tabs or white
> space from a file ... its not working however... I've used the following
> code.
>
> 					<replaceregexp file="${outputFile}"
> 									match="^[ \t\n]+$"
> 									replace=""
> 									byline="true"/>
>
>
> but I've got nothing. I originally posted on the coderanch forums
> (http://www.coderanch.com/t/471737/Ant-Maven-Other-Build-Tools/Regular-expression-deleting-new-lines)
> and have gotten no reply so I've come here for help... any ideas?
> -- 
> View this message in context: http://old.nabble.com/Regular-expression-for-deleting-new-lines-with-Ant-tp26421426p26421426.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

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


Mime
View raw message