I am trying to implement automatic code reloading for Clojure code
running in dev_appserver.  My goal is to edit and save the source
files in the source directory (sibling of the web archive directory)
and hit refresh in the browser to run the new code.

Clojure looks for source files on the Java class path using
ClassLoader.getResource(s).  Here are some things that I have tried
using the --jvm_flag=-D--enable_all_permissions=true command line flag
to dev_appserver.

1) Create symbolic links in war/WEB-INF/classes to the source
directories.  Fails with security exception.

2) Create my own class loader with findResource(s) implementation that
searches ../src/*.  Fails with security exception.

3) Edit dev_appserver.sh to add my source directory to the class
path.  The additional class path is ignored.

Is there a way to add a directory outside of the web archive directory
to the dev_appserver class path?

Is the source for dev_appserver available so I see what it's doing
with class loaders and security managers?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to