ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <>
Subject RE: Removing whitespace in the code
Date Thu, 27 Feb 2003 16:26:01 GMT
You can use "s/^[ \t]+//sm". But this task should be up to <replaceregexp>.

- Alexey.

{   } Alexey N. Solofnenko
Pleasant Hill, CA (GMT-8 usually)

-----Original Message-----
From: Lee, Michael.M [] 
Sent: Thursday, February 27, 2003 7:41 AM
To: 'Ant Users List'
Subject: RE: Removing whitespace in the code

The code below was very good at compacting the html files.  but when i tried
to compact js or jsp files, it was having a problem.  So i was trying to get
rid of the whitespace on the left side only.
this is what i used.

<apply executable="perl" parallel="true">
  <arg value="-p0i.bak"/>
  <arg value="-e"/>
  <arg value="y/ //s"/>
  <fileset dir="${working_folder}/webroot/jsp" includes="**/*.js"/>

However, it only gets rid of space on the left side, but not tabs.  is there
any way to get rid of tabs too?

Thanks for your attention.


View raw message