Re: Command-line indentation tool for Java

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've tried indent on Java code. It doesn't look good and gives a lot of 
irrelevant error messages. A text editor can do indentation, but suppose 
the indentation of a whole block and its contained blocks changes during 
the course of development. That looks like manual work to me.

What I am looking for is something like

jindent javafile

that applies standard Java indentation rules. The amount of indentation 
between levelss should be variable to accomodate different preferences. 
I prefer an indentation of two spaces, so things don't run off my 
braille display too much.

Google did bring up a lot of choices, but none seemed to be what I want. 
I also want it to be written in Java and Open Source. And of course a 
command-line application.

Thanks,
John

On Sat, Sep 24, 2011 at 08:51:03PM -0400, Trevor Saunders wrote:
> On Sat, Sep 24, 2011 at 06:55:33PM -0500, John J. Boyer wrote:
> > Is there anything like the Gnu indent program for Java? I write my Java 
> > code ulsing a text editor and build using Ant. The only thing lacking is 
> > a command-line indentation tool. mannual indentation is tedious and 
> > unrealiable, and the indentation of a block may change in the course of 
> > development.
> 
> well, reasonable text editors will generally get the indentation mostly
>  java is close enough to C/C++ that indent  works well enough, but
>  reasonable text editors will usually get indentation right for you with
>  out any manuel work.
> 
>  Trev
> 
> > 
> > Thanks,
> > If such a tool does not exist, how time-consuming would developing one 
> > be?
> > 
> > John
> > 
> > -- 
> > John J. Boyer; President, Chief Software Developer
> > Abilitiessoft, Inc.
> > http://www.abilitiessoft.com
> > Madison, Wisconsin USA
> > Developing software for people with disabilities
> > 
> > _______________________________________________
> > Blinux-list mailing list
> > Blinux-list@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/blinux-list



> _______________________________________________
> Blinux-list mailing list
> Blinux-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/blinux-list

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list


[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]