logo       

Re: Environment variables: msg#00080

lang.groovy.user

Subject: Re: Environment variables

On 6 Oct 2004, at 18:19, Kevin Jones wrote:
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,

Incidentally are you using the same JVM - its not a bug introduced by switching to Java 5 or anything like that is it?

I didn't know we ever supported environment variables in scripts :)

James
-------
http://radio.weblogs.com/0112098/




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

News | FAQ | advertise