# Compile Ruby source into Java class with AntBuilder

**URL:** <https://www.ruby-forum.com/t/compile-ruby-source-into-java-class-with-antbuilder/140409>\
**Category:** JRuby\
**Created:** [June 13, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/compile-ruby-source-into-java-class-with-antbuilder/140409 "2008-06-13T17:25:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PartogiS\_Joshua](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/df705f/32.png) [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Post date:** [June 13, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/compile-ruby-source-into-java-class-with-antbuilder/140409/1 "2008-06-13T17:25:08Z")

</div>

Dear all,

Is it possible to compile Ruby source into java class with AntBuilder?  
And  
also build a war file with it? Has anyone done this before and give me a  
hint on how to do it?

Thanks in advance

IMPORTANT NOTICE:  
The information in this email (and any attachments) is confidential. If  
you are not the intended recipient, you must not use or disseminate the  
information. If you have received this email in error, please  
immediately notify me by “Reply” command and permanently delete the  
original and any copies or printouts thereof. Although this email and  
any attachments are believed to be free of any virus or other defect  
that might affect any computer system into which it is received and  
opened, it is the responsibility of the recipient to ensure that it is  
virus free and no responsibility is accepted by American International  
Group, Inc. or its subsidiaries or affiliates either jointly or  
severally, for any loss or damage arising in any way from its use.

---

<div class="post-metadata">

**Author:** ![PartogiS\_Joshua](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/df705f/32.png) [@PartogiS\_Joshua](https://www.ruby-forum.com/u/PartogiS_Joshua)\
**Post date:** [June 14, 2008, 4:11am UTC](https://www.ruby-forum.com/t/compile-ruby-source-into-java-class-with-antbuilder/140409/2 "2008-06-14T04:11:06Z")

</div>

Partogi, Joshua wrote:

> Dear all,
> 
> Is it possible to compile Ruby source into java class with AntBuilder?  
> And also build a war file with it? Has anyone done this before and give  
> me a hint on how to do it?

I would love to have an ant task written for this, but nobody has  
tackled it yet. Your other option would be to launch the “jrubyc” script  
with JRuby from within the antbuilder script.

- Charlie

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```
