开发者

Groovy, App Engine, and the 3000 file limit

开发者 https://www.devze.com 2023-01-15 21:47 出处:网络
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 Te

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

精彩评论

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