Hi Hynek,
Ehm what important part am I missing when I say, that it's regular
Java
code which gets compiled by IDEA before being copied?
RIFE separates the implementation of your elements from your regular
Java code. Of course you can just compile it all yourself and have
the classes available in the classpath, but if RIFE has access to the
source code of your element implementations, it is able to compile
them by itself when needed.
This is very convenient because you can continue developing without
having to restart your servlet container. If the hotswap
functionality of Java would be fully functional, this feature
wouldn't be needed. However, as it is, hot swap is unable to replace
classes when methods have been added or when annotations have
changed. Also, since the RIFE's continuations mechanism kicks in at
class loading time, it doesn't work well with bare bones hotswap.
But again: Is there a way to tell RIFE where to find the sources?
Yes, put them in the class path when RIFE is running.
Ok, so extending Resin's classpath should do, right?
It should, yes.
You still haven't answered my question though ... why do you
insist in
using IDEA in a way that it copies the files to an 'exploded'
directory?
It's clean...I don't like directories clobbered with `.java' and
`.class'.
You're mixing things, there is no problem to just compile your Java
code into a dedicated directory and only have your compiled classes
living there. Your classpath can contain any number of paths so you
simply have to ensure that the one that contains your sources is
present in it.
Also, doesn't the appserver get confused by project files etc?
I simply consider it awkward to edit the `live system'...
What does it give you that you would lose otherwise?
Well...it's clean. ;) I can do a `rm -rf exploded' and can be sure to
have the latest classes/files etc. It's simply concise. I still
hope to
get backup from other timezones. ;)
Well, it's even simpler when you have no other files at all. Just
your sources.
Best regards,
Geert
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users