On May 6, 2009, at 9:47 AM, tog wrote:
It says (which is correct):
#Mon Apr 06 12:34:41 SGT 2009
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
distributionVersion=0.5
zipStorePath=wrapper/dists
urlRoot=http\://dist.codehaus.org/gradle
distributionName=gradle
distributionClassifier=bin
When I change
createTask('wrapper', type: Wrapper).configure{
gradleVersion=0.5.2
}
I got:
org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed, build_gradle: 159: unexpected token: 2 @ line 159,
column 23.
1 error
Exception is:
org.gradle.api.GradleException:
org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed, build_gradle: 159: unexpected token: 2 @ line 159,
column 23.
1 error
You therefore have to put
createTask('wrapper', type: Wrapper).configure{
gradleVersion="0.5.2"
}
which is from my point of view a defect ;)
In particular as 0.5 is accepted ;). I remember there was some
discussion on the Groovy mailing-list where people complained about
the number2string autoconversion. This is definitely an example where
autoconversion causes confusion.
- Hans
Cheers
Guillaume
On Wed, May 6, 2009 at 3:27 PM, Hans Dockter <[email protected]> wrote:
On May 6, 2009, at 9:18 AM, tog wrote:
Hi Hans
I already have this in my build.gradle and this is how my gradlew
(wraper) was generated. The fact is I can not specify 0.5.2 as a
version therefore it looks like
the wrapper download 0.5 which is apparently buggy (i.e not creating
the build dirs).
Either:
- one should be able to specify a full version number (0.5.2)
That is the way it is supposed to work. The version number is
treated as a
String.
If you look at: gradle-wrapper.jar!org/gradle/wrapper/
wrapper.properties
What does this say?
- Hans
or
- the wrapper should download the highest minor version number in
a set
Am I missing something ?
Best Regards'
Guillaume
On Wed, May 6, 2009 at 2:31 PM, Hans Dockter <[email protected]>
wrote:
Hi Guillaume,
On May 6, 2009, at 8:12 AM, tog wrote:
Hi
In that case I am using the wrapper which is giving this:
ls ~/.gradle/wrapper/dists/gradle-0.5/lib/
ant-1.7.0.jar commons-codec-1.2.jar
gradle-wrapper-0.5.jar jetty-naming-6.1.14.jar
logback-core-0.9.9.jar
ant-junit-1.7.0.jar commons-httpclient-3.0.jar
groovy-all-1.5.6.jar jetty-plus-6.1.14.jar
maven-ant-tasks-2.0.9.jar
ant-launcher-1.7.0.jar commons-io-1.4.jar
ivy-2.0.0-rc2.jar jetty-util-6.1.14.jar
servlet-api-2.5.jar
ant-nodeps-1.7.0.jar commons-lang-2.3.jar
jaxen-1.1.jar
jopt-simple-2.4.1.jar slf4j-api-1.5.3.jar
ant-trax-1.7.0.jar dom4j-1.6.1.jar
jcl-over-slf4j-1.5.3.jar junit-4.4.jar
webdavlib-2.0.jar
bndlib-0.0.255.jar gradle-0.5.jar
jetty-6.1.14.jar logback-classic-0.9.9.jar
and more specifically:
-rw-r--r-- 1 alleon alleon 865350 May 6 11:00 gradle-0.5.jar
which is different from my usual 0.5.2:
-rw-r--r-- 1 alleon admin 872505 Jan 8 22:24 gradle-0.5.2.jar
My gradlew was generated from 0.5.2.
Looks like it is downloading the wrong version ... is that on my
side ?
From http://svn.codehaus.org/gmod/groovyws/trunk/build.gradle
//Use this build script without installing gradle
createTask('wrapper', type: Wrapper).configure{
gradleVersion=0.5
}
You have to change it to the version you want to use and then run
'gradle
wrapper' again and submit the new files to svn. In 0.6 we have
improved
the
wrapper. For pure version changes you just have to edit a
properties file
without the need to rerun gradle wrapper.
- Hans
Best Regards
Guillaume
On Wed, May 6, 2009 at 1:44 PM, Adam Murdoch
<[email protected]>
wrote:
Hi,
Which version of Gradle are you using? There was a bug in 0.5
which
would
cause a failure like the one you're seeing, when you use the
groovy
plugin
and have java source in src/main/java. It was fixed in 0.5.1.
tog wrote:
Hi
Looks like the groovy plugin does not create the build and
build/classes directories when the compile task is called:
oggy:~/Documents/groovy/groovyws alleon$ ./gradlew
java 5
:clean
:init
:resources
:compile
Build failed with an exception.
Run with -s or -d option to get more details. Run with -f
option to
get the full (very verbose) stacktrace.
Build file '/Users/alleon/Documents/groovy/groovyws/
build.gradle'
Execution failed for task :compile.
Cause: destination directory
"/Users/alleon/Documents/groovy/groovyws/build/classes" does
not exist
or is not a directory
BUILD FAILED
Total time: 4.425 secs
Am I doing something wrong ?
Cheers
Guillaume
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
PGP KeyID: 1024D/47172155
FingerPrint: C739 8B3C 5ABF 127F CCFA 5835 F673 370B 4717 2155
http://cheztog.blogspot.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
PGP KeyID: 1024D/47172155
FingerPrint: C739 8B3C 5ABF 127F CCFA 5835 F673 370B 4717 2155
http://cheztog.blogspot.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
PGP KeyID: 1024D/47172155
FingerPrint: C739 8B3C 5ABF 127F CCFA 5835 F673 370B 4717 2155
http://cheztog.blogspot.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email