Den 15-08-2011 09:28, Johan Stuyts skrev:
As I said, there is not actual directory for the babel project and
needn't be according to this:

http://gradle.1045684.n5.nabble.com/Configuring-repeating-groups-of-
subprojects-td4641372.html

It is a figment of the settings file.
In that case it looks like there is something wrong with the task definitions for the "babel" project:

* What went wrong:
Task 'jar' not found in project ':b-one-crm:babel'.
I guess "jar" is actually missing instead of that it cannot be found/reached by Gradle.
The jar task is not missing because I can run it if I give the aboslut path.

  gradle :b-one-crm:babel:ejb:imp:jar

for examle. But for some reason gradle isn't reaching it.

I created the simplest possible test case that demonstrates this:

----------------------
09:45:58-tk@tk:~/workspace/Tasks/src/task/once/gradlebug>  ls -lR
.:
totalt 12
drwxr-xr-x 3 tk tk 4096 2011-08-15 09:45 a
-rw-r--r-- 1 tk tk   79 2011-08-15 09:11 build.gradle
-rw-r--r-- 1 tk tk   75 2011-08-15 09:02 settings.gradle

./a:
totalt 4
drwxr-xr-x 2 tk tk 4096 2011-08-15 09:45 c

./a/c:
totalt 0
09:46:02-tk@tk:~/workspace/Tasks/src/task/once/gradlebug>  cat settings.gradle
include 'b:c'

project(':b:c').projectDir = "${settingsDir}/a/c" as File


09:46:09-tk@tk:~/workspace/Tasks/src/task/once/gradlebug>  cat build.gradle
configure([project(':b:c')]) {
    task tsk << {
        println "tsk"
    }
}
09:46:14-tk@tk:~/workspace/Tasks/src/task/once/gradlebug>  gradle tsk
:b:c:tsk
tsk

BUILD SUCCESSFUL

Total time: 1.516 secs
09:46:23-tk@tk:~/workspace/Tasks/src/task/once/gradlebug>  gradle :b:c:tsk
:b:c:tsk
tsk

BUILD SUCCESSFUL

Total time: 1.591 secs
09:46:37-tk@tk:~/workspace/Tasks/src/task/once/gradlebug>  gradle :b:tsk

FAILURE: Could not determine which tasks to execute.

* What went wrong:
Task 'tsk' not found in project ':b'.

* Try:
Run gradle tasks to get a list of available tasks.

BUILD FAILED

Total time: 1.586 secs
09:46:55-tk@tk:~/workspace/Tasks/src/task/once/gradlebug> 
----------------------



Regards, Johan




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to