Changeset 13862


Ignore:
Timestamp:
02/06/12 18:20:25 (9 years ago)
Author:
Mark Evenson
Message:

Make ABCL-ASDF:SATISFY a generic function, override it to interpret mvn artifact streams.

Now something like

(satisfy "logj:log4j")

will return the necessary classpath entries to add these dependencies
specified by the Maven pom.xml graph in the hosting JVM process.

Location:
trunk/abcl/contrib/abcl-asdf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/contrib/abcl-asdf/abcl-asdf.lisp

    r13861 r13862  
    1515  component)
    1616
    17 ;;; We interpret compilation to ensure that load-op will succeed
     17;;; We intercept compilation to ensure that load-op will succeed
    1818(defmethod perform ((op compile-op) (c mvn))
    1919  (maybe-parse-mvn c)
     
    5555(in-package #:abcl-asdf)
    5656
    57 (defun satisfy (mvn-component)
     57(defgeneric satisfy (something)
     58 :documentation "Returns a string in JVM CLASSPATH format as entries delimited by classpath separator string."
     59
     60(defmethod satisfy ((mvn-component asdf::mvn))
    5861  "Resolve all runtime dependencies of MVN-COMPONENT.
    5962
  • trunk/abcl/contrib/abcl-asdf/maven-embedder.lisp

    r13860 r13862  
    369369
    370370         
     371;;; "log4j:log4j:1.9.2" or "log4j:log4j"
     372(defmethod satisfy ((string t))
     373  (let ((result (split-string string ":")))
     374    (cond
     375      ((<= 2 (length result) 3)
     376       (apply #'resolve-dependencies result)))))
     377 
Note: See TracChangeset for help on using the changeset viewer.