[GRADLE-820] JUnit related issue Created: 12/Feb/10  Updated: 04/Jan/13  Resolved: 22/Feb/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: None

Type: Bug
Reporter: Russel Winder Assignee: Hans Dockter
Resolution: Won't Fix Votes: 0


 Description   

The Gant Gradle build works fine with Gradle Wrapper 0.9-20100121145940+1100. However, with Gradle Trunk as at 2010-02-12 09:40+00:00, I get:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/users/russel/Repositories/Bazaar/Masters/Gant/Trunk_Development/build.gradle' line: 157

* What went wrong:
A problem occurred evaluating root project 'Trunk_Development'.
Cause: 
            Property systemProperties could not be found in the options of the JUnit test framework.

            Make sure the correct TestFramework is in use. 
            - Call useJUnit(), useTestNG() or useTestFramework(<your own TestFramework implementation class&gt;) as first statement in the test { } block. 
            - Set the test.framework.default property in a gradle.properties file

Line 157 is:

 options.systemProperties['buildFrameworkIdentifier'] = 'Gradle'

which is in a test

{ . . . }

specification and which used to be the way of passing information to a spawned Ant instance. (One of the Gant unit tests is actually a system test and spawns a real Ant instance.)

I may be missing it, but I don't see anything in the 0.9 breaking changes page that helps me.



 Comments   
Comment by Hans Dockter [ 22/Feb/10 ]

The following will work now:

test {
    ...
    systemProperties['jar.path'] = jar.archivePath
}

This is described in the breaking changes.

Generated at Wed Jun 30 11:39:45 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.