Hello

I have a requirement where I load all my groovy files into a remote
database. I then have to pull them down to compile and I am wondering what
is the best way to do this. Right now I do this

* I pull down the names of all files (not the actual file)
* I then use a GroovyClassLoader to load each one of them (turning off
script compile). If I hit a classNotFound error, I then catch that and try
to parse a file with that name from my repository

The problem I run into is my file name matching logic. I use the full class
name to locate a file in my remote repository with that name. The issue
with this is that my class names now have to match my file name. How do I
preserve the goodness of groovy's flexibility of defining class names that
dont match file names, and even define multiple classes in the same file

regards
Saravanan

Reply via email to