You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ivan Ivanov <ra...@yahoo.com> on 2004/06/02 19:02:38 UTC
Code cleaning tasks
Dear Colleagues,
can you point me a tool with ant tasks, which can
review Java source files and clean their code, i.e.
1) organize imports - if there are imports like
import java.util.*;
the tool change it to
import java.util.Vector;
import java.util.HashMap;
... and so on
2) corrects the identation of the code
3) removes all non-javadoc comments - people often
tend comment non-working or unneeded blocks of code.
Soon the code gets polluted with comments like
//Too drunk to fix it :))
Third one is most important for us since any decent
IDE can do the 1) and 2).
Thank you very much in advance
Ivan
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Code cleaning tasks
Posted by Jon Schewe <jp...@mtu.net>.
XEmacs, http://www.xemacs.org, with JDEE do 1 and 2 very nicely.
On Wed, 2004-06-02 at 12:02, Ivan Ivanov wrote:
> Dear Colleagues,
>
> can you point me a tool with ant tasks, which can
> review Java source files and clean their code, i.e.
> 1) organize imports - if there are imports like
> import java.util.*;
>
> the tool change it to
> import java.util.Vector;
> import java.util.HashMap;
> ... and so on
>
> 2) corrects the identation of the code
> 3) removes all non-javadoc comments - people often
> tend comment non-working or unneeded blocks of code.
> Soon the code gets polluted with comments like
> //Too drunk to fix it :))
>
> Third one is most important for us since any decent
> IDE can do the 1) and 2).
>
> Thank you very much in advance
>
> Ivan
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
--
Jon Schewe | http://mtu.net/~jpschewe
GPG signature at http://mtu.net/~jpschewe/gpg.sig.html
For I am convinced that neither death nor life, neither angels
nor demons, neither the present nor the future, nor any
powers, neither height nor depth, nor anything else in all
creation, will be able to separate us from the love of God that
is in Christ Jesus our Lord. - Romans 8:38-39