Changeset 13867
- Timestamp:
- 02/08/12 08:21:35 (11 years ago)
- Location:
- trunk/abcl/contrib/abcl-asdf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/contrib/abcl-asdf/README.markdown
r13865 r13867 22 22 23 23 (defsystem log4j 24 :components ((:mvn "log4j/log4j/1. 4.9")))24 :components ((:mvn "log4j/log4j/1.2.13"))) 25 25 26 26 After issuing … … 32 32 33 33 (let ((logger (#"getLogger" 'log4j.Logger (symbol-name (gensym))))) 34 (#"trace" logger "Kilroy wuz here.")) )34 (#"trace" logger "Kilroy wuz here.")) 35 35 36 36 output the message "Kilroy wuz here" to the log4j logging system. 37 37 38 38 … … 41 41 42 42 We define an API within the ASDF package consisting of the following 43 ASDF classes :43 ASDF classes derived from ASDF:COMPONENT: 44 44 45 45 JAR-DIRECTORY, JAR-FILE, and CLASS-FILE-DIRECTORY for JVM artifacts 46 that have a currently valid pathname representation 46 that have a currently valid pathname representation (i.e. they exist 47 on the local filesystem). 47 48 48 And theMVN and IRI classes descend from ASDF-COMPONENT, but do not49 And we define MVN and IRI classes descend from ASDF-COMPONENT, but do not 49 50 directly have a filesystem location. 50 51 … … 52 53 ABCL-ASDF:RESOLVE which locates, downloads, caches, and then loads 53 54 into the currently executing JVM process all recursive dependencies 54 annotated in the Maven pom.xml graph.55 annotated in the ditributed Maven pom.xml graph. 55 56 56 57 One can muffle the verbosity of the Maven Aether resolver by setting … … 75 76 76 77 CL-USER> (java:add-to-classpath (abcl-asdf:as-classpath (abcl-asdf:resolve "com.google.gwt:gwt-user"))) 77 78 79 78 80 79 Example 3 … … 142 141 Plausibly work under MSFT operating systems. 143 142 144 Working with maven-3.0.4 and working in more places.143 Working with maven-3.0.4. 145 144 146 145 ### 0.5.0 2012-01-22 -
trunk/abcl/contrib/abcl-asdf/abcl-asdf.lisp
r13865 r13867 32 32 (defun maybe-parse-mvn (component) 33 33 (with-slots (asdf::name asdf::group-id asdf::artifact-id 34 asdf::version asdf::schema asdf::path) component 34 asdf::version asdf::schema asdf::path) 35 component 35 36 (when (null asdf::artifact-id) 36 (let ((slash (search "/" name))) 37 (unless (and (integerp slash) 38 asdf::version) 37 (let ((parsed (abcl-asdf::split-string name "/"))) 38 (unless (or (= (length parsed) 3) 39 (and (= (length parsed) 2) 40 asdf::version)) 39 41 (error "Failed to construct a mvn reference from name '~A' and version '~A'" 40 asdf::name asdf::version)) 41 (setf asdf::group-id (subseq asdf::name 0 slash) 42 asdf::artifact-id (subseq asdf::name (1+ slash)) 43 asdf::schema "mvn" 44 asdf::version (if (eq asdf::version :latest) 45 "LATEST" 46 asdf::version) 47 asdf::path (format nil "~A/~A" asdf::name asdf::version)))))) 42 asdf::name 43 (if asdf::version 44 asdf::version 45 "UNSPECIFED"))) 46 (setf asdf::group-id (first parsed) 47 asdf::artifact-id (second parsed) 48 asdf::schema "mvn" 49 asdf::version (if (third parsed) 50 (third parsed) 51 "LATEST")) 52 (setf asdf::path (format nil "~A/~A" asdf::name asdf::version)))))) 48 53 49 54 (defmethod source-file-type ((component iri) (system system)) -
trunk/abcl/contrib/abcl-asdf/tests/log4j.asd
r13550 r13867 5 5 :components 6 6 ((:module log4j.jar :components 7 ((:mvn "log4j/log4j " :version "1.2.15")))7 ((:mvn "log4j/log4j/1.2.15"))) 8 8 (:module source :pathname "" :components 9 9 ((:file "example"))
Note: See TracChangeset
for help on using the changeset viewer.