Where can I find generated .java and .class files for .gs files?

140 views
Skip to first unread message

Sreeram Ediga

unread,
Feb 15, 2018, 11:37:40 AM2/15/18
to gosu-lang
Hello,

I am trying to package the .class files that get generated for the .gs files, and use it as an external JAR in a Java project.
For this, I am looking for the generated .java or .class files. I am using Gosu in IntelliJ.
I looked at "build" folder for .class files, and, "generated" folder for .java files. But, I don't find equivalent classes for the .gs classes that I have developed.

Help!

Kyle Moore

unread,
Feb 15, 2018, 12:26:20 PM2/15/18
to gosu-lang
Hi Sreeram and thanks for your interest in Gosu.

I'm guessing from your later post that you've figured out by now that Gosu can be dynamically compiled from source at runtime :)

However if you do want to package Gosu sources into a JAR, you can do this as long as the JAR has a special attribute in META-INF/MANIFEST.MF:

Contains-Sources: gs,gsx

This will work whether or not you decide to statically compile the classes and include them in the JAR as well.

- Kyle
Reply all
Reply to author
Forward
0 new messages