On 2002.02.12 11:48:33 -0500 Dain Sundstrom wrote:
> Hi all,
>
> I wrote the JBossCMP code before I was aware the JBoss Code Style Guide,
> so I now I want to run a beautifier to correct my code. Does any one
> use a free beautifier that they have setup for JBoss?
>
> I found one called jacobe which seems to do the trick, but I have some
> questions about the style guide.
>
> In class or interface declarations should I put a line terminator before
> extends and implements as in the example code?
>
> Should I put a space between if and the open parenthesis? (There is not
> one in the sample.)
>
> Should I put a space between catch and the open parenthesis? (There is
> one in the sample.)
>
> Should I put a space between for and the open parenthesis? (There is one
> in the sample.)
>
>
> I'm not going to update the code until after DR1 in case it introduces
> errors.
>
> thanks
> -dain
>
>
In cvs there is JavaStyle, and in build/etc/.refactory there is a template
for it. I think this formats according to jboss style.
I've put a task for this into several build.xml files but others keep
taking it out. Here's an example
<!-- ==================================================================
-->
<!-- Pretty -->
<!-- ================================================================== -->
<!--
| Pretty print everything.
|
| This uses the jedit JavaStyle plugin via the ejbdoclet pretty ant
task.
| cvs="true" only pretties files you have already modified.
| cvs="false" pretties all files.
-->
<target name="pretty" depends="init">
<taskdef name="pretty" classname="pretty.Pretty"/>
<pretty settingsDir="${project.config}/etc" cvs="true">
<fileset dir="${source.java}">
<include name="**/*.java"/>
</fileset>
</pretty>
</target>
This is from jbosscx/connector build.xml version 1.7
david jencks
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
>
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development