Re: Ant test: class file for org.apache.tools.ant.Task not found

102 views
Skip to first unread message

Ajax

unread,
Dec 11, 2012, 8:39:29 AM12/11/12
to google-we...@googlegroups.com
+1 on this problem.

Tried w/ ant 1.8.2 and 1.7.1, on ubuntu 12.10

Thomas Broyer

unread,
Dec 11, 2012, 9:37:14 AM12/11/12
to google-we...@googlegroups.com
A workaround is to not use "ant test" in the root folder (run it in user/ or dev/, actually, you might want to use test.dev.htmlunit and/or test.web.htmlunit in user/, and/or set the gwt.junit.testcase.includes property to only run a subset of the test suite), or to edit the build.xml and comment the line that runs the tests in "buildtools".

On Tuesday, September 11, 2012 1:51:27 PM UTC+2, Marko wrote:
Hi!

I downloaded the latest GWT sources (trunk and tools) and compiled it successfully with ant. But when I run "ant test" I get the following error:

compile.tests:
    [mkdir] Created dir: C:\work-gwt-test\trunk\build\out\build-tools\ant-gwt\bin-test
[gwt.javac] Compiling 2 source files to C:\work-gwt-test\trunk\build\out\build-tools\ant-gwt\bin-test
[gwt.javac] C:\work-gwt-test\trunk\build-tools\ant-gwt\test\com\google\gwt\ant\taskdefs\SvnInfoTest.java:53: error: cannot access Task
[gwt.javac]       gitSvnInfo = SvnInfo.getGitSvnInfo(dir);
[gwt.javac]                           ^
[gwt.javac]   class file for org.apache.tools.ant.Task not found
[gwt.javac] 1 error

BUILD FAILED
C:\work-gwt-test\trunk\build.xml:137: The following error occurred while executing this line:
C:\work-gwt-test\trunk\build.xml:27: The following error occurred while executing this line:
C:\work-gwt-test\trunk\build.xml:110: The following error occurred while executing this line:
C:\work-gwt-test\trunk\build-tools\build.xml:36: The following error occurred while executing this line:
C:\work-gwt-test\trunk\build-tools\build.xml:10: The following error occurred while executing this line:
C:\work-gwt-test\trunk\build-tools\ant-gwt\build.xml:20: Compile failed; see the compiler error output for details.


What do I need to do in order to get this running? (I am using Windows 7.)

Thank you!

Marko
Reply all
Reply to author
Forward
0 new messages