logo       

RE: Newbie question ;): msg#00179

lang.groovy.user

Subject: RE: Newbie question ;)

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