Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-2223

1.0-rc1 breaks GWT unit test framework

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Fixed
  • Affects Version/s: 1.0-rc-1
  • Fix Version/s: 1.0-rc-2

Description

The RC1 release of gradle, with its change to the test classpath, has broken the GWT unit test framework. Deep inside the GWT framework, it uses the URLClassloader when searching for resources and classes for testing. In the RC1 release notes, it suggests to check the classpath in the manifest of the jar it generates, but this cannot be easily done without rewriting large parts of the GWT test framework. I imaging this change could cause various problems in other frameworks as well, as it is a bit non-standard.

Perhaps an alternative to the current jar manifest approach would be to copy the jars to a directory, and then use a wildcard for the classpath (e.g. java -cp mydir/*)? This would only work with JDK 1.6 however. How does Ant handle this problem?

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    stack.txt
    11/Apr/12 5:38 PM
    4 kB
    Bryan

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Hide
Permalink
Adam Murdoch added a comment - 11/Apr/12 5:27 PM

Do you have a stack trace for the test failures?

Show
Adam Murdoch added a comment - 11/Apr/12 5:27 PM Do you have a stack trace for the test failures?
Hide
Permalink
Bryan added a comment - 11/Apr/12 5:38 PM

I've attached one of the stack traces. Basically a class isn't found which eventually leads to an NPE.

Show
Bryan added a comment - 11/Apr/12 5:38 PM I've attached one of the stack traces. Basically a class isn't found which eventually leads to an NPE.
Bryan made changes - 11/Apr/12 5:38 PM
Field Original Value New Value
Attachment stack.txt [ 10593 ]
Hide
Permalink
Bryan Keller added a comment - 12/Apr/12 11:54 AM

Perhaps this new behavior could be made optional, so non-Windows platforms that don't have the command line length limit won't be affected

Show
Bryan Keller added a comment - 12/Apr/12 11:54 AM Perhaps this new behavior could be made optional, so non-Windows platforms that don't have the command line length limit won't be affected
Pivotal Tracker Integration made changes - 13/Apr/12 6:05 PM
Status Open [ 1 ] In Progress [ 3 ]
Adam Murdoch made changes - 13/Apr/12 6:05 PM
Fix Version/s 1.0 [ 10051 ]
Adam Murdoch made changes - 13/Apr/12 6:29 PM
Fix Version/s 1.0 [ 10051 ]
Fix Version/s 1.0-rc-2 [ 10460 ]
Pivotal Tracker Integration made changes - 18/Apr/12 3:19 PM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Hide
Permalink
Adam Murdoch added a comment - 18/Apr/12 7:45 PM

Could you try out the fix, and let us know how you go: http://gradle.org/release-candidate

Show
Adam Murdoch added a comment - 18/Apr/12 7:45 PM Could you try out the fix, and let us know how you go: http://gradle.org/release-candidate
Hide
Permalink
Bryan Keller added a comment - 19/Apr/12 10:23 AM

The fix works. I tried out the RC2 nightly and my GWT tests are running again.

Show
Bryan Keller added a comment - 19/Apr/12 10:23 AM The fix works. I tried out the RC2 nightly and my GWT tests are running again.
Pivotal Tracker Integration made changes - 23/Apr/12 3:05 PM
Status Resolved [ 5 ] Closed [ 6 ]
Luke Daley made changes - 03/Jan/13 5:09 AM
Workflow jira with pivotal tracker [ 15574 ] jira with pivotal tracker (no resolved, only closed) [ 18211 ]
Luke Daley made changes - 04/Jan/13 5:10 AM
Status Closed [ 6 ] Resolved [ 5 ]
Workflow jira with pivotal tracker (no resolved, only closed) [ 18211 ] Copy of jira with pivotal tracker (no closed, only resolved) [ 20822 ]
Unable to get TeamCity builds: No active plugin license is found! Please visit http://stiltsoft.com/teamcity for details

People

  • Assignee:
    Unassigned
    Reporter:
    Bryan
Vote (0)
Watch (0)

Dates

  • Created:
    11/Apr/12 5:20 PM
    Updated:
    04/Jan/13 5:10 AM
    Resolved:
    18/Apr/12 3:19 PM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.