:reread-system-defs
Gary King <[email protected]>
| Newsgroups | gmane.lisp.cclan.general |
|---|---|
| Message-ID | <[email protected]> |
Occasionally I find that I want to force asdf to reread system definitions. This may happen because I forget to push a feature or because I've downloaded an update. AFAIK, the only way to do this is by evaluating (clrhash asdf::*defined-systems). What do people think about adding :reread-system-defs to operate? The patch looks like > (defgeneric traverse (operation component)) > (defmethod traverse ((operation operation) (c component)) > (%traverse operation c)) > > (defmethod traverse :around ((operation operation) (c system)) > (let* ((args (copy-list (operation-original-initargs operation)))) > (when (getf args :reread-system-defs) > (print "Reread system defs") > (clrhash *defined-systems*)) > (call-next-method))) > > (defgeneric %traverse (operation component)) > (defmethod %traverse ((operation operation) (c component)) <snip -- the rest of the current traverse method> thoughts? opinions? flames? thanks, -- Gary Warren King metabang.com [http://www.metabang.com/] (413) 885 9127 * (206) 338-4052 [Fax] gwking on #lisp (occasionally) ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642