Changeset 14696


Ignore:
Timestamp:
04/27/14 07:46:08 (9 years ago)
Author:
Mark Evenson
Message:

Patch the Maven locator code to probe "/usr/local/maven/lib/".

From a patch for OpenBSD provided by Timo Myyrä.

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

Legend:

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

    r14615 r14696  
    33(asdf:defsystem :abcl-asdf
    44  :author "Mark Evenson"
    5   :version "1.3.0"
    6   :description "<> asdf:defsystem <urn:abcl.org/release/1.3.0/contrib/abcl-asdf#1.1.0>"
     5  :version "1.3.1"
     6  :description "<> asdf:defsystem <urn:abcl.org/release/1.3.0/contrib/abcl-asdf#1.3.1>"
    77  :depends-on (jss)
    88  :components
  • trunk/abcl/contrib/abcl-asdf/maven-embedder.lisp

    r14575 r14696  
    108108
    109109(defun find-mvn-libs ()
    110   (let ((mvn (find-mvn)))
    111     (unless mvn
    112       (warn "Failed to find Maven3 libraries.")
    113       (return-from find-mvn-libs nil))
    114     (truename (make-pathname
    115                :defaults (merge-pathnames "../lib/" mvn)
    116                :name nil :type nil))))
    117 
     110  (unless (find-mvn)
     111    (warn "Failed to find Maven executable to determine Aether library location."))
     112  (some
     113   (lambda (d)
     114     (when (directory (merge-pathnames "maven-core-*.jar" d))
     115       (truename d)))
     116   (list (make-pathname :defaults (merge-pathnames "../lib/" (find-mvn))
     117                        :name nil :type nil)
     118         #p"/usr/local/maven/lib/"))) ;; OpenBSD location suggested by Timo MyyrÀ
     119                                 
    118120(defparameter *mvn-libs-directory*
    119121  nil
     
    159161
    160162(defun init (&optional &key (force nil))
    161  "Run the initialization strategy to bootstrap a Maven dependency node."
     163 "Run the initialization strategy to bootstrap a Maven dependency node.
     164
     165Set *MVN-LIBS-DIRECTORY* to an explicit value before running this
     166function in order to bypass the dynamic introspection of the location
     167of the mvn executable with an explicit value."
    162168 (unless (or force *mvn-libs-directory*)
    163169   (setf *mvn-libs-directory* (find-mvn-libs)))
Note: See TracChangeset for help on using the changeset viewer.