ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject groovy and ant
Date Fri, 12 Dec 2003 15:54:23 GMT
Goovy is a new language. It looks like they have a nice
ant builder class:

        ant = *new* AntBuilder()

        /// lets just call one task
/        ant.echo(*"hello"*)
        
        /// here"s an example of a block of Ant inside GroovyMarkup
/        ant.sequential {
            echo(*"inside sequential"*)
            
            myDir = *"target/AntTest/"*
            
            mkdir(dir:myDir) 
            copy(todir:myDir) {
                fileset(dir:*"src/test"*) {
                    include(name:*"**/*.groovy"*)
                }
            }
            
            echo(*"done"*)
        }

from:
http://cvs.groovy.codehaus.org/viewcvs.cgi/groovy/groovy-core/src/test/groovy/util/AntTest.groovy?rev=HEAD&view=auto

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message