I am writing some code which needs to store data about the current namespace. My code is generating an ontology, and I need to assign URIs that need to persist between clojure invocations. These URIs are automatically generated, so it's not just a case of the code authors writing them.
I thought to use a similar mechanism to the way Emacs stores data; by generating some lisp forms and saving them in a file. These can then be evaluated when clojure starts and everyone is happy. The problem when using tools like leningen, these files will end up in the root directory.
I can build against standard directory conventions, but I'd prefer to get the data straight from clojure; I know the compiler adds source location data to clojure; is there a way that I can access this myself?