开发者

Groovy, App Engine, and the 3000 file limit

Firstly, I'm new to groovy as of yesterday, so what I say could be incorrect.

开发者_如何学编程In groovy, every time you create a closure in your code, it creates a separate .class file like this Test$_closure1.class. I could easily have 3000 different closures throughout my project, which would thus push me over the 3000 file limit on App Engine.

It only creates the class files if I actually compile my Groovy files, which I want to do because I have existing Java classes that I want to be able to call Groovy classes from.

Is there a way I can lessen the number of files it will need?


You can try creating a library out of those classes -> essentially making a jar file. Once you have a jar (a zip for all classes) its treated as one file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜