I am beginning to think something very weird is happening deep in the bowels of Gradle/Groovy/Java/Bash.
If I issue the gradlew command from the command line, the Gradle build
works fine. If I put the gradlew command in a shell script or subshell,
then I get the
> > :compile
> > org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
> > failed,
> > /home/users/russel/Repositories/Bazaar/Subversion/GradleCore/Trunk/src/main/groovy/org/gradle/api/internal/file/CopySpecImpl.groovy:
> > 62: The return type of org.gradle.api.file.CopySpec
> > from([Ljava.lang.Object;) in org.gradle.api.internal.file.CopySpecImpl is
> > incompatible with org.gradle.api.file.CopySourceSpec
> > from([Ljava.lang.Object;) in org.gradle.api.file.CopySourceSpec.
> > Node: org.codehaus.groovy.ast.MethodNode. At [62:5] @ line 62, column 5.
> > CopySpec from(Object... sourcePaths) {
> > ^
error. I checked the java command issued to do the compilation and it
appears to be identical. This is where the weirdness happens: if the
java command issued is the same how can the resulting groovyc execution
do the right thing from a shell and the wrong thing from a subshell?
--
Russel.
=============================================================================
Dr Russel Winder Partner
xmpp: [email protected]
Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road, f: +44 8700 516 084 voip: sip:[email protected]
London SW11 1EN, UK m: +44 7770 465 077 skype: russel_winder
signature.asc
Description: This is a digitally signed message part
