logo       

Re: Newbie question ;): msg#00181

lang.groovy.user

Subject: Re: Newbie question ;)


What is the roadmap for Groovy in this regards? It will be great if groovy's syntax has more support for files and directories. Using java syntax is quite cumbersome, and like you said currently it is very java-ish.

Best Regards,

On 25-Nov-04, at PM 04:47, Laforge Guillaume wrote:

Hello Foxmask,

Groovy's more java-ish than perl-ish :-)
So perhaps it gonna be a bit more complicated to do in Groovy.
You can do different things, like:

"ls -la".execute()

Or you can also use Java's file management APIs, through
f = new File("myDirectory")
f.mkdir()

Explore the Java APIs!

--
Guillaume Laforge
http://glaforge.free.fr/weblog


-----Message d'origine-----
De : foxmask [mailto:foxmask-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx]
Envoyé : jeudi 25 novembre 2004 09:28
À : user-i9PBDF1N6cxnkHa44VUL00B+6BGkLq7r@xxxxxxxxxxxxxxxx
Objet : [groovy-user] Newbie question ;)


I've made a perl script that read an ant.properties (-like) file and
permit to download a tarball
by a wget ; and then create directorties and untar the tarball and
apply the correct rights on directories/files.

Now i would like to know if i can do the same with groovy.
Is it easy to manipulate files/directories etc... like perl does ?

regards.

--
Founder Member of Phpfr.Org
http://phpfr.org




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

News | FAQ | advertise