Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate compilation of java, class, jar files #19

Closed
rahulmutt opened this issue Sep 6, 2016 · 0 comments
Closed

Integrate compilation of java, class, jar files #19

rahulmutt opened this issue Sep 6, 2016 · 0 comments

Comments

@rahulmutt
Copy link
Member

rahulmutt commented Sep 6, 2016

ghcvm --make SomeClass.class SomeOtherClass.java SomeJar.jar SomePure.hs

Should convert all the given files to class files accordingly and properly put them in the resulting jar. Currently, it's partially implemented (should work in batch mode -c) but needs to be tweaked for --make mode. In particular, we need to make sure we set the -classpath flag of javac properly, taking into account references to the module closures compiled in the same batch.

Implementation Sketch:
Separate out .java files and compile them only after all other compilation units and include all the compiled .jars as dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant