Skip to content

Instantly share code, notes, and snippets.

@purplefox
Created August 1, 2012 07:59
Show Gist options
  • Save purplefox/3224773 to your computer and use it in GitHub Desktop.
Save purplefox/3224773 to your computer and use it in GitHub Desktop.
test {
classpath 'build/classes/main'
systemProperty 'vertx.test.timeout', 15
systemProperty 'vertx.mods', "$projectDir/build/tmp/mod-test"
systemProperty 'vertx.version', "$project.version"
testLogging.showStandardStreams = true
}
Gives error:
* What went wrong:
A problem occurred evaluating root project 'mod-redis'.
> Could not find method classpath() for arguments [build/classes/main] on root project 'mod-redis'.
In the docs it says classpath is a 'FileCollection' but doesn't tell me how to represent that textually in a task, nor give any examples.
@purplefox
Copy link
Author

Thanks, Peter already suggested that, but it doesn't work (see above)

@pledbrook
Copy link

Are you sure you have the 's'? files() returns a FileCollection, file() returns a File.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment