trifork / erjang

A JVM-based Erlang VM
http://www.erjang.org
Apache License 2.0
726 stars 62 forks source link

Otp jar #51

Closed jetztgradnet closed 13 years ago

jetztgradnet commented 13 years ago

I'm currently working on ewarp, a WAR packager for Erlang apps based on Erjang, so they can be run in any Servlet container, e.g. on Tomcat running in the cloud (Amazon Elastic Beanstalk, CloudFoundry, ...). It's in the very early stages, see https://github.com/jetztgradnet/ewarp for details.

In order to package both Erjang and a OTP runtime, Krestens recent support for embedding OTP into the Erjang jar is great. These two commits change the ant build.xml to exclude some more files and add another task to create a jar file, which contains only OTP, no Erjang.

I switched Ant target names, so "otpjar" is the jar with only OTP and "alljar" is a new target, which creates a jar containing both Erjang and OTP. I also changed the name of this jar file to contain both the Erjang version as well as the OTP version.