Hi Leon,
Leon Wang wrote:
> Hi Dear XWiki Devs,
>
> When I try to compile the same Wysiwyg module from Eclipse or from Windows
> command line, I get different errors. One
> is org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile error,
> one is checkstyle error. Could you please give some clue what is wrong?
Regarding compiling from Eclipse. The WYSIWYG pom declares a test
dependency on xwiki-gwt-user:
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-web-gwt-user</artifactId>
<classifier>tests</classifier>
<version>${pom.version}</version>
<scope>test</scope>
</dependency>
m2eclipse plugin should be able to resolve this dependency. From your
compilation errors it seems that the xwiki-web-gwt-user-x.x-tests.jar is
not in the classpath when compiling the WYSIWYG tests.
Note that I don't recommend building from Eclipse. You should build from
command line, using -Phosted parameter and modifying WysiwygDev.gwt.xml
file for your needs.
Regarding the Checkstyle errors, you should start by using the XWiki
Java code style (
http://dev.xwiki.org/xwiki/bin/view/Community/JavaCodeStyle ). Then
install the Checkstyle plugin for Eclipse and enable it for the WYSIWYG
project. This way you will see the checkstyle error when you edit a Java
source file. Fix the code style by formatting (Ctrl+Shift+F) and fix the
Checkstyle errors by modifying you code accordingly.
Of course, you can skip Checkstyle by modifying the pom.
Hope this helps,
Marius
>
> From Eclispe I will get this error:
>
> "[INFO] [compiler:testCompile]
> [INFO] Compiling 37 source files to C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\target\test-classes
> [INFO]
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> ------------------------------------------------------------------------
> [INFO] XWiki Platform - Web - Parent POM ..................... SUCCESS
> [0.922s]
> [INFO] XWiki Platform - Web - GWT API ........................ SUCCESS
> [11.515s]
> [INFO] XWiki Platform - Web - GWT - DOM API .................. SUCCESS
> [3.766s]
> [INFO] XWiki Platform - Web - GWT - User ..................... SUCCESS
> [3.437s]
> [INFO] XWiki Platform - Web - WYSIWYG ........................ FAILED
> [13.563s]
> [INFO] XWiki Platform - Web - Standard ....................... NOT BUILT
> [INFO]
> ------------------------------------------------------------------------
> [ERROR]
>
> Mojo:
>
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile
>
> FAILED for project:
>
> com.xpn.xwiki.platform:xwiki-web-wysiwyg:war:2.1.1
>
> Reason:
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\RichTextAreaTestCase.java:[22,39]
> cannot find symbol
> symbol : class AbstractRichTextAreaTestCase
> location: package org.xwiki.gwt.user.client.ui.rta
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\RichTextAreaTestCase.java:[29,42]
> cannot find symbol
> symbol: class AbstractRichTextAreaTestCase
> public class RichTextAreaTestCase extends AbstractRichTextAreaTestCase
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\syntax\internal\DefaultValidationRuleTest.java:[24,52]
> cannot find symbol
> symbol : class MockCommandManager
> location: package org.xwiki.gwt.user.client.ui.rta.cmd.internal
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[47,13]
> cannot find symbol
> symbol : method gwtSetUp()
> location: class com.xpn.xwiki.wysiwyg.client.RichTextAreaTestCase
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[64,16]
> cannot find symbol
> symbol: variable rta
> rta.setHTML("<ul><li>one</li><li>two</li></ul>");
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[66,30]
> cannot find symbol
> symbol: variable rta
> Range range = rta.getDocument().createRange();
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[67,31]
> cannot find symbol
> symbol: method getBody()
>
>
> range.setStart(getBody().getFirstChild().getChildNodes().getItem(1).getFirstChild(),
> 0);
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[69,16]
> cannot find symbol
> symbol: method select(org.xwiki.gwt.dom.client.Range)
> select(range);
>
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[141,16]
> cannot find symbol
> symbol: variable rta
> rta.setHTML(rtaInnerHTML);
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[143,30]
> cannot find symbol
> symbol: variable rta
> Range range = rta.getDocument().createRange();
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[144,31]
> cannot find symbol
> symbol: method getBody()
>
>
> range.setStart(getBody().getChildNodes().getItem(0).getChildNodes().getItem(0),
> 0);
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[145,29]
> cannot find symbol
> symbol: method getBody()
>
> range.setEnd(getBody().getChildNodes().getItem(0).getChildNodes().getItem(0),
> 4);
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[146,16]
> cannot find symbol
> symbol: method select(org.xwiki.gwt.dom.client.Range)
> select(range);
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[149,49]
> cannot find symbol
> symbol: variable rta
> assertFalse(executable.isEnabled(rta));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[151,47]
> cannot find symbol
> symbol: variable rta
> assertFalse(executable.execute(rta, null));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[223,73]
> cannot find symbol
> symbol: variable rta
> assertEquals(rtaInnerHTML,
> removeNonBreakingSpaces(clean(rta.getHTML())));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[205,8]
> cannot find symbol
> symbol : method deferTest(<anonymous com.google.gwt.user.client.Command>)
> location: class
> com.xpn.xwiki.wysiwyg.client.plugin.indent.exec.IndentExecutableTest
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[265,30]
> cannot find symbol
> symbol: variable rta
> Range range = rta.getDocument().createRange();
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[266,31]
> cannot find symbol
> symbol: method getBody()
>
>
> range.setStart(getBody().getFirstChild().getChildNodes().getItem(1).getFirstChild(),
> 0);
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[267,29]
> cannot find symbol
> symbol: method getBody()
>
>
> range.setEnd(getBody().getFirstChild().getChildNodes().getItem(1).getChildNodes().getItem(1)
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[270,16]
> cannot find symbol
> symbol: method select(org.xwiki.gwt.dom.client.Range)
> select(range);
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[272,48]
> cannot find symbol
> symbol: variable rta
> assertTrue(executable.isEnabled(rta));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[273,46]
> cannot find symbol
> symbol: variable rta
> assertTrue(executable.execute(rta, null));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[275,50]
> cannot find symbol
> symbol: variable rta
> removeNonBreakingSpaces(clean(rta.getHTML())));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[259,8]
> cannot find symbol
> symbol : method deferTest(<anonymous com.google.gwt.user.client.Command>)
> location: class
> com.xpn.xwiki.wysiwyg.client.plugin.indent.exec.IndentExecutableTest
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[291,16]
> cannot find symbol
> symbol: variable rta
> rta.setHTML("<ul><li>one<ul><li>one plus
> one</li></ul></li><li>two</li></ul>");
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[293,30]
> cannot find symbol
> symbol: variable rta
> Range range = rta.getDocument().createRange();
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[294,31]
> cannot find symbol
> symbol: method getBody()
>
>
> range.setStart(getBody().getFirstChild().getChildNodes().getItem(1).getFirstChild(),
> 0);
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[296,16]
> cannot find symbol
> symbol: method select(org.xwiki.gwt.dom.client.Range)
> select(range);
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[298,48]
> cannot find symbol
> symbol: variable rta
> assertTrue(executable.isEnabled(rta));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[299,46]
> cannot find symbol
> symbol: variable rta
> assertTrue(executable.execute(rta, null));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[301,50]
> cannot find symbol
> symbol: variable rta
> removeNonBreakingSpaces(clean(rta.getHTML())));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[287,8]
> cannot find symbol
> symbol : method deferTest(<anonymous com.google.gwt.user.client.Command>)
> location: class
> com.xpn.xwiki.wysiwyg.client.plugin.indent.exec.IndentExecutableTest
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[316,16]
> cannot find symbol
> symbol: variable rta
>
> rta.setHTML("<ol><li>one</li><li>two</li><li>three</li><li>four</li></ol>");
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[318,30]
> cannot find symbol
> symbol: variable rta
> Range range = rta.getDocument().createRange();
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[352,46]
> cannot find symbol
> symbol: variable rta
> assertTrue(executable.execute(rta, null));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[355,79]
> cannot find symbol
> symbol: variable rta
> + "</li><li>four</li></ol>",
> removeNonBreakingSpaces(clean(rta.getHTML())));
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[339,8]
> cannot find symbol
> symbol : method deferTest(<anonymous com.google.gwt.user.client.Command>)
> location: class
> com.xpn.xwiki.wysiwyg.client.plugin.indent.exec.IndentExecutableTest
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[372,16]
> cannot find symbol
> symbol: variable rta
>
>
> rta.setHTML("<ol><li>one<ul><li>under</li></ul></li><li>two</li><li>three</li>"
> + "<li>four</li></ol>");
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[374,30]
> cannot find symbol
> symbol: variable rta
> Range range = rta.getDocument().createRange();
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[376,31]
> cannot find symbol
> symbol: method getBody()
>
>
> range.setStart(getBody().getFirstChild().getFirstChild().getChildNodes().getItem(1).getFirstChild()
>
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-web\wysiwyg\src\test\java\com\xpn\xwiki\wysiwyg\client\plugin\indent\exec\IndentExecutableTest.java:[378,29]
> cannot find symbol
> symbol: method getBody()
>
>
> range.setEnd(getBody().getFirstChild().getChildNodes().getItem(1).getFirstChild(),
> 3); "
> _____________________________________________________________________________________________________________________
>
> While I use mvn install to compile for the same code from Windows command
> line I get this error:
>
> _____________________________________________________________________________________________________________________
>
> ig.java:30:8: Unused import - org.xwiki.gwt.dom.client.JavaScriptObject.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\LinkConf
> ig.java:32:8: Unused import - com.google.gwt.core.client.JsArrayString.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\LinkConf
> ig.java:132:5: Static variable definition in wrong order.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\LinkConf
> ig.java:137: warning: Comment matches to-do format 'FIXME'.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\LinkConf
> ig.java:138: warning: Comment matches to-do format 'TODO'.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\LinkConf
> ig.java:142:5: Missing a Javadoc comment.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\LinkConf
> ig.java:144:7: Line contains a tab character.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\LinkConf
> ig.java:145:5: Line contains a tab character.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:22: Missing a Javadoc comment.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:22:76: '{' is not preceded with whitespace.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:22:76: '{' should be on a new line.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:23:1: Line contains a tab character.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:24:1: Line contains a tab character.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:48:96: The String "Alternative" appears 2 times in the file.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:49:93: The String "Argument" appears 2 times in the file.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:50:98: The String "Assumption" appears 2 times in the file.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:51:92: The String "Claim" appears 2 times in the file.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:52:93: The String "Decision" appears 2 times in the file.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:53:96: The String "Requirement" appears 2 times in the file.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:64: warning: Comment matches to-do format 'TODO'.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:107:15: 'if' is not followed by whitespace.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:107:33: '==' is not preceded with whitespace.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:107:33: Literal Strings should be compared using equals(), not
> '=='
> .
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:107:35: '==' is not followed by whitespace.
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web\wysiwyg\src\main\java\com\xpn\xwiki\wysiwyg\client\plugin\rationale\Rational
> ePlugin.java:109:13: Line contains a tab character.
>
> Audit done.
>
> [INFO] There are 71 checkstyle errors.
> [WARNING] Unable to locate Source XRef to link to - DISABLED
> [INFO] [checkstyle:check {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] You have 71 Checkstyle violations.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 59 seconds
> [INFO] Finished at: Mon Jan 25 16:14:16 EST 2010
> [INFO] Final Memory: 55M/63M
> [INFO]
> ------------------------------------------------------------------------
> C:\Documents and
> Settings\Leon\workspace_xwiki_eclipse-jee-ganymede\2.1.1\xwiki-
> web>
>
> Thank you for your help!
>
> Leon
>
>
>
>
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs