Errors when running "ant test"

33 views
Skip to first unread message

Axel

unread,
Sep 21, 2022, 7:07:13 AM9/21/22
to GWT Users
I'm trying to build GWT locally from sources (c32238861c4d58bc559d303ab44f91ddd4e10685). https://www.gwtproject.org/makinggwtbetter.html#testing suggests to run "ant" and "ant test". When I do, I'm seeing error messages in the XML file produced, such as

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/concurrent/TimeUnit.java">
<error line="21" column="35" severity="warning" message="&apos;{&apos; should have line break after." source="com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck"/>

or

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/function/BinaryOperator.java">
<error line="20" severity="warning" message="Import statement is in the wrong order. Should be in the &apos;STATIC&apos; group." source="com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck"/>

or

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/logging/Logger.java">
<error line="334" severity="warning" message="Line is longer than 100 characters (found 105)." source="com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck"/>

The ant command then fails as follows:

checkstyle-source:
[checkstyle] Running Checkstyle 6.0 on 6159 files

BUILD FAILED
/usr/local/src/gwt/trunk/build.xml:119: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/build.xml:27: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/build.xml:70: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/user/build.xml:209: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/common.ant.xml:361: Checkstyle errors exist, and are reported at /usr/local/src/gwt/trunk/build/out/user/checkstyle_log.xml

Is this to be expected, or did I make some mistake during cloning or building? I haven't modified those files in which style errors are flagged.

Axel

unread,
Sep 24, 2022, 4:17:19 AM9/24/22
to GWT Users
I found out what the problem was. There were a few small diffs compared to the master/main branch, and those provoked severity="error" issues in the checkstyle run. I was confused by various other "error" items that also occur on the master/main branch, but issues only seem to let the build fail if the severity is "error" (which it isn't for any of the "error" items on the master/main branch).
Reply all
Reply to author
Forward
0 new messages