On 11/6/06, Shatzer, Larry <[EMAIL PROTECTED]> wrote:
Decomment is not a core ant task, you will have to ask the author of that
task for help.
http://andariel.uworks.net/
I noticed this comment in the javadoc
Warning!! The decomment process uses regular expressions. There's not a
syntactic analysis, so there might be unexpected results if there are quoted
comment symbols. Never overwrite your original source code without making a
backup first!
The stripjavacomments filter may work better for this env.
It should work for javascript files as the comments are the same
and it does take into account strings.
<copy destdir="stripped">
<fileset dir="src" includes="**/*.js"/>
<filterchain>
<stripjavacomments/>
</filterchain>
</copy>
Peter
> -----Original Message-----
> From: Venkatesh Babu [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 06, 2006 5:17 AM
> To: [email protected]
> Subject: Ant decomment task problem
>
>
> Hello All,
>
> I'm using the decomment task, to decomment my JavaScript
> files. There seems to be problem in that: it is removing //
> characters present inside strings. For ex: I have a function
> where I'm constructing URL:
>
> function f1() {
> var url = "http://" ....;
> }
>
> the decomment task is removing the // present after "http:" string!
>
> Can anybody tell me about how to overcome this problem.
>
> Thank you,
> Venkatesh
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]