ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject RE: Task to strip comments
Date Mon, 14 Apr 2003 14:27:39 GMT
Stefan & Jan, thanks!

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Monday, April 14, 2003 12:32 AM
To: user@ant.apache.org
Subject: AW: Task to strip comments


You can use <filterchain>s.
For example

<copy file="unedited" tofile="edited">
    <filterchain>
        <stripjavacomments/>
    </filterchain>
</copy>

That will copy the "unedited" file to "edited" and remove all java comments.
Because java comments and javascript comments have the same syntax (I think)
this should work for javascript, also.


Jan Matèrne

> -----Urspr√ľngliche Nachricht-----
> Von: Lopez, William [mailto:william.lopez@eds.com]
> Gesendet am: Sonntag, 13. April 2003 01:40
> An: user@ant.apache.org
> Betreff: Task to strip comments
> 
> Hello:
> 
> Does any one know of a task that can edit a file, particular
> strip comments
> from a javascript file?
> 
> Thanks
> 
> -Will
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
View raw message