Jrubyc question

Hi-

I have a project where I have some ruby files under say, c:\project\src
and
c:\project\src\subdir

Is there a good way to compile everything under the c:\project\src
directory, including subdirectories, and output a jar file?

I’ve tried to use jrubyc, and I’ve even tried writing a quick ruby
script to
wrap JRubyCompiler::compile_argv($files_to_compile), building
$files_to_compile with all of the files (full paths) under
c:\project\src I
want to compile.

When I do the second part, it puts all of the .class files into the src
&
src\subdir directories, which isn’t quite what I’m looking for.

Any ideas?

Thanks!

On Fri, Dec 18, 2009 at 3:30 PM, Mark Buckingham
[email protected] wrote:

src\subdir directories, which isn’t quite what I’m looking for.
jrubyc is a pretty primitive tool right now, and I’ve always been
hoping people would pick it up and work on improving it. Specifying
lots of files to compile, for example, is a little cumbersome at the
moment.

You’re on the right track…and honestly I’d recommend you keep
exploring how to hack the jrubyc path-related code to do what you want
and report back. There haven’t been a lot of consumers of jrubyc,
which means it hasn’t really evolved to support the features users
want, which means users don’t bother using it. It can certainly be
improved…

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Mon, Dec 21, 2009 at 4:40 AM, Charles Oliver N.
[email protected]wrote:

want, which means users don’t bother using it. It can certainly be
improved…

  • Charlie

Hacking jrubyc sounds like fun, actually… I’ll mess around with it,
and
let you know how it goes.