Changeset 13903
- Timestamp:
- 04/01/12 19:15:39 (9 years ago)
- Location:
- trunk/abcl/contrib/abcl-asdf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/contrib/abcl-asdf/abcl-asdf.lisp
r13902 r13903 24 24 ;;; We intercept compilation to ensure that load-op will succeed 25 25 (defmethod perform ((op compile-op) (c mvn)) 26 ( maybe-parse-mvn c)26 (ensure-parsed-mvn c) 27 27 (abcl-asdf:resolve c)) 28 28 29 29 (defmethod perform ((operation load-op) (c mvn)) 30 ( maybe-parse-mvn c)30 (ensure-parsed-mvn c) 31 31 (java:add-to-classpath 32 32 (abcl-asdf:as-classpath … … 35 35 ;;; A Maven URI has the form "mvn:group-id/artifact-id/version" 36 36 ;;; 37 ;;; Sometimes people write "group-id:artifact-id:version" to refer to 38 ;;; Maven artifacts. One can use ABCL-ASDF:RESOLVE directly for 39 ;;; serialized references to artifacts of this form. 40 ;;; 37 41 ;;; Currently we "stuff" the group-id/artifact-id into the 'name' and 38 42 ;;; use the component 'version' for the version. Parts of ASDF 39 43 ;;; *reallY* want ASDF:VERSION to be a triple of intergers, and never 40 44 ;;; anything more, so that is part of the motivation behind this effort. 41 ;;; ??? rename me to ENSURE-MVN-PARSE ?? 42 (defun maybe-parse-mvn (component) 45 (defparameter *mvn-repositories* nil 46 "A list of all Maven repositories encountered in the lifetime of this instance of the implementation.") 47 48 (defun ensure-parsed-mvn (component) 43 49 (with-slots (name group-id artifact-id 44 version schema path )50 version schema path repository) 45 51 component 46 52 (when (null asdf::artifact-id) … … 64 70 name version))) 65 71 (setf schema "mvn") 72 (pushnew repository *mvn-repositories*) 66 73 ;;; Always normalized path "on the way out" to contain group-id/artifact-id/version 67 74 (setf path (format nil "~A/~A/~A" group-id artifact-id version)))))) -
trunk/abcl/contrib/abcl-asdf/packages.lisp
r13865 r13903 13 13 14 14 #:init 15 16 ;;; ASDF 17 ;;; #:iri #:mvn 18 ;;; #:ensure-parsed-mvn 15 19 16 20 ;;; "Internal" API
Note: See TracChangeset
for help on using the changeset viewer.