I suggest using 4-spaces everywhere: XML, Java, HTML (in JUnit tests).

Another discussion is the line length. SUN convention is 80 line length but it 
seems very short for me, especially for XML/HTML files where I really dislike 
word-wrapping. What's your opinion about this?
I'm personnaly in favor for 120 in Java source and no limit in XML/HTML.

You can of course include Eclipse configuration file (I think latest Maven 
eclipse plugin have the ability to automatically configure Eclipse coding 
style). See 
http://maven.apache.org/plugins/maven-eclipse-plugin/examples/load-code-styles.html

According to me, encoding in source files should be UTF-8, without any non 
ASCII char. Only some JUnit tests should contains different encodings to 
validate everything works fine for localized Web pages.

I you plan to contribute to JWebUnit, I can add you to the project team list. 
Is it ok for you?

Regards,

Julien



----- Message d'origine ----
De : Mirko Friedenhagen <[EMAIL PROTECTED]>
À : JWebUnit Development mail list <[email protected]>
Envoyé le : Lundi, 17 Novembre 2008, 12h56mn 43s
Objet : Re: [JWebUnit-development] Re :  Standard formatting for IDEs, 
templates for files

Julien HENRY wrote:
> Unfortunatly there is no strict checkstyle for JWebUnit. The non official 
> rules are basically sun coding style with 4-space indentation (no tabs). One 
> possible contribution would be to define such a rules, setup checkstyle 
> configuration then fix the code ;)

Should we use this for XML-files as well? Right now the POMs have tabs, 
but I would suggest 4 spaces as well.

Do you mind me including templates for Eclipse as well?

Another one: What about the encoding of the source (You know: 4/5 of all 
  CS engineers would be unemployed if the world standardized on English 
and US-ASCII ;-)).

With newer versions of Maven there are some standard properties for this:
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>


Regards
Mirko

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development



      


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to