You can load and execute a Groovy File by doing something like this:
http://groovy.codehaus.org/api/groovy/lang/GroovyClassLoader.htmlClass c = new GroovyClassLoader().parseClass(new File(...))
((Script)c).run()
--
Hamlet D'Arcy
hamletdrc@...
On Mon, Oct 26, 2009 at 10:15 PM, Mauro Zallocco <
mzallocco@...> wrote:
> I am in the process of converting a number of dos batch files into groovy
> scripts.
> My approach is to create a groovy equivalent for each dos batch file which
> executes with the same functionality.
> Now the dos batch files call other batch files sometimes in other
> directories.
>
> So I have something like the following:
> file1.bat
> echo "hello world"
> pushd ..\..\build
> call file2.bat
> popd
> echo "done"
>
> file1.groovy
> println "hello world"
> ?????
> println "done"
>
> Any suggestions would be appreciated.
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email--
Hamlet D'Arcy