logo       

Environment variables: msg#00074

lang.groovy.user

Subject: Environment variables

I have some old-ish Groovy scripts that worked with a version of Groovy from
March. I downloaded beta 7 and two things stopped working. The first is
access to environment variables. I have a script that looks like this:

ant.copy(toDir: "${SYSTEMROOT}", file: "scripts\\mysql\\my.ini",
overwrite:true) {
filterset() {
filter(token: "DIR", value: "${mysqlhomedir}")
}
}

In the 'March' groovy this works, in beta 7 it fails with an
IncompatibleClassChangeError (is this the only error Groovy throws :) ) at
getGroovyObjectProperty. SYSTEMROOT is set by Windows to reference the dir
that windows is installed. I'll mention the other problem in another email,

Kevin Jones
http://kevinj.develop.com




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise