반응형
홈페이지 : http://groovy.codehaus.org/
다운로드 : http://dist.groovy.codehaus.org/distributions/
※ 설치
# cd /share/apps
# wget http://dist.groovy.codehaus.org/distributions/groovy-binary-2.0.6.zip
# unzip groovy-binary-2.0.6.zip
※ 테스트
# cd /tmp
# cat > hello.groovy
println "hello, world"
for (arg in this.args ) {
println "Argument:" + arg;
}
# /share/apps/groovy-2.0.6/bin/groovy hello.groovy
hello, world
# /share/apps/groovy-2.0.6/bin/groovy hello.groovy test1 test2 test3
hello, world
Argument:test1
Argument:test2
Argument:test3
반응형
최근댓글