ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee, Michael.M" <Michael.M....@westgroup.com>
Subject RE: replaceregexp
Date Tue, 04 Mar 2003 15:14:48 GMT
I have one more question.

So far, I have been replacing left white space with perl.  the code on the
bottom is the one i used.

but is there any way to change it to replaceregexp ?

What i am trying to do is replace double or more spaces into one single
space and all left, "only left" white spaces to a single space.

Thanks for your attention!!

code starts here:

<target name="removespace04" depends="removespace03">
  <echo
message="*************************************************************" />
  <echo message="**   This will remove left whitespaces and
**" />
  <echo message="**   change double spaces to single spaces
**" />
  <echo message="**   Compacting xsl files
**" />
  <echo
message="*************************************************************" />
  
  <apply executable="perl" parallel="true">
    <arg value="-p0i.bak"/>
    <arg value="-e"/>
    <arg value="y/ //s"/>
    <srcfile/>
  	  <fileset dir="${working_folder}" includes="**/*.xsl" />
  </apply>
</target>


-----Original Message-----
From: Lee, Michael.M [mailto:Michael.M.Lee@westgroup.com]
Sent: Tuesday, March 04, 2003 9:07 AM
To: 'Ant Users List'
Subject: RE: replaceregexp


nevermind!  it worked!!!

Thanks guys!!!!


-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Tuesday, March 04, 2003 9:00 AM
To: user@ant.apache.org
Subject: AW: replaceregexp


try <replaceregexp flags="g" ... >


Jan Matèrne

-----Ursprüngliche Nachricht-----
Von: Lee, Michael.M [mailto:Michael.M.Lee@westgroup.com]
Gesendet am: Dienstag, 4. März 2003 15:51
An: 'Ant Users List'
Betreff: RE: replaceregexp

YES, it works now!

but I don't know why it worked before.  I used filename and it was working
until yesterday.

but here is another question.

When I do this, it only replace single tabs.  when it has multiple tabs
continuously, it only changes one tab and leave the rest.

How can I tell ANT to remove consecutive tabs?

Thanks guys!



-----Original Message-----
From: Mike McNally [mailto:m5@works.com]
Sent: Tuesday, March 04, 2003 8:46 AM
To: Ant Users List
Subject: Re: replaceregexp


> could anyone please help me out?

Don't you want to be using "<include>" tags inside your fileset
instead of "<filename>"?


--
[ you are my main foo ] Mike McNally -- m5@works.com

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

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

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

Mime
View raw message