GradleFx/GradleFx — Issue #14: copyresources task is broken. needs a slash between projectDir & resourceDir
Author: tombray
Created: 2011-12-26 20:16:45+00:00
State: open

Running the copyresources task with --debug shows the following:

//
12:08:57.634 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':copyresources'.
12:08:57.643 [INFO] [org.gradle.api.Task] from /Projects/zero/zerojs-ace-demosrc/main/resources to /Projects/zero/zerojs-ace-demo/build
//

Notice that there needs to be a slash between the projectDir and the resourceDir.

The workaround is to manually set the resourceDirs manually with a slash at the front:

resourceDirs = ['/src/main/resources'];