Groovy Installation

Installation:

    1)    Go to http://groovy.codehaus.org, and click the Download link
           GIT : http://groovy.codehaus.org/Git

        OR
    2)    Instructions    http://gvmtool.net/

Test installed properly or not

—————————————————————-
Ritviks-MacBook-Pro:groovy ritvikpandya$ pwd
/Users/ritvikpandya/groovy
Ritviks-MacBook-Pro:groovy ritvikpandya$ groovysh
Groovy Shell (2.2.1, JVM: 1.6.0_65)
Type 'help' or '\h' for help.
-------------------------------------------------------------------------------
groovy:000> println 'Hello Ritvik'
Hello Ritvik
===> null
groovy:000> Math.sqrt(36)
===> 6.0
groovy:000>

——————————————————————————-

Starting Console

 Ritviks-MacBook-Pro:groovy ritvikpandya$ groovyConsole



Running Groovy Program :

// create file with groovy ext., write command in it.
//println "Hi Everyone !!!”
// run using groovy command .


Ritviks-MacBook-Pro:groovy ritvikpandya$ cat HiAll.groovy
println "Hi Everyone !!!"
Ritviks-MacBook-Pro:groovy ritvikpandya$ groovy HiAll.groovy
Hi Everyone !!!

 

 

 IDE Support ???

    Plugins are available for different IDEs

No comments:

Post a Comment