looks like it was all a directory structure issue. Had to get the directory structure EXACTLY right.
On Tue, Mar 9, 2010 at 12:48 AM, Peter Ledbrook <[email protected]> wrote: > Some things to try: > >> I am trying to pull Config.groovy into my main build.gradle. >> >> Here is config.groovy: >> >> class Config{ >> def static getConfig(fileName){ >> return "BLAH" >> } >> } > > Remove the 'def'. Also, I strongly recommend putting Config in a package. > >> --------- >> here is my build.gradle file: >> >> import Config >> a = Config.getConfig("blah") >> println a > > The import is unnecessary. It should still work, but I think classes > in packages are far more reliable. > > Cheers, > > Peter > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
