ivan_ivanovich_ivanoff ivan_ivanovich_ivanoff - 1 year ago 103
Java Question

Is there something like JET (Java Emitter Templates) but without Eclipse-dependencies?

I wanted to use JET (Java Emitter Templates)
in my Netbeans projects, but had to find out that JET
heavily depends on Eclipse libraries.

Is there something similar to JET, but as a standalone project?

Something which is open source and well maintained?

Futhermore, is "code generation" the common term for such tools?

Answer Source

I ended up using ERB (Ruby's template engine).

Works great in Netbeans!

I define custom ant task which generates source files by calling ERB (whose results are placed inside a non-versioned special directory).

The ant task is overriding Netbeans' "-pre-compile" task.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download