Closed darinwilson closed 9 years ago
woah :cat:
Can you write Java files and then just include them in app.files
like that?
@jamonholmgren Yep - if you have a .java file next to a .rb file of the same name, the contents of the .java file are dumped into the Java class that RM creates for your Ruby class.
This is a necessary evil for cases where bridgesupport does the wrong thing, or if you have to override constructors.
For a moment there, I thought this was the ability to include raw .java. Yes I remember this... it's a necessary evil.
I spoke with Joffrey recently, and he'll be working in a way to include .java files via gradle soon.
That's interesting, @darinwilson . You can also include other methods, not just constructors?
Yep - it can be anything. It's just copied wholesale into the generated Java class.
So, who do you have to know to get a merge around this place? ;)
Sorry Darin.
We wouldn't want to lose our lovely Java hacks in the generated gem file...